silverstripe-blog/code/compat/pages/BlogHolder.php
2015-03-05 14:14:34 +13:00

37 lines
635 B
PHP

<?php
/**
* @deprecated since version 2.0
*/
class BlogHolder extends BlogTree implements MigratableObject {
private static $hide_ancestor = 'BlogHolder';
private static $db = array(
'AllowCustomAuthors' => 'Boolean',
'ShowFullEntry' => 'Boolean',
);
private static $has_one = array(
'Owner' => 'Member',
);
public function canCreate($member = null) {
// Deprecated
return false;
}
public function up() {
if($this->ClassName === 'BlogHolder') {
$this->ClassName = 'Blog';
$this->write();
}
}
}
/**
* @deprecated since version 2.0
*/
class BlogHolder_Controller extends BlogTree_Controller {
}