silverstripe-blog/code/compat/pages/BlogTree.php
Christopher Pitt 787c02a19d Clean up
2015-05-11 10:11:21 +12:00

44 lines
644 B
PHP

<?php
/**
* @deprecated since version 2.0
*/
class BlogTree extends Page implements MigratableObject {
/**
* @var string
*/
private static $hide_ancestor = 'BlogTree';
/**
* @var array
*/
private static $db = array(
'Name' => 'Varchar(255)',
'LandingPageFreshness' => 'Varchar',
);
/**
* {@inheritdoc}
*/
public function canCreate($member = null) {
return false;
}
/**
* {@inheritdoc}
*/
public function up() {
if($this->ClassName === 'BlogTree') {
$this->ClassName = 'Page';
$this->write();
}
}
}
/**
* @deprecated since version 2.0
*/
class BlogTree_Controller extends Page_Controller {
}