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

44 lines
644 B
PHP
Raw Normal View History

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