silverstripe-blog/code/compat/pages/BlogTree.php

32 lines
552 B
PHP
Raw Normal View History

2015-02-08 08:03:55 +01:00
<?php
/**
* @deprecated since version 2.0
*/
class BlogTree extends Blog implements MigratableObject {
private static $hide_ancestor = 'BlogTree';
private static $db = array(
'Name' => 'Varchar(255)',
'LandingPageFreshness' => 'Varchar',
);
public function canCreate($member = null) {
// Deprecated
return false;
}
public function up() {
if($this->ClassName === 'BlogTree') {
$this->ClassName = 'Blog';
$this->write();
}
}
}
/**
* @deprecated since version 2.0
*/
class BlogTree_Controller extends Blog_Controller {
}