API Upgrade to SilverStripe\CMS namespace

This commit is contained in:
Damian Mooyman 2016-07-25 10:20:06 +12:00
parent afdae4937e
commit c7387ff45f
4 changed files with 6 additions and 2 deletions

View File

@ -7,6 +7,7 @@ use Injector;
use ClassInfo; use ClassInfo;
use Convert; use Convert;
use Object; use Object;
use SilverStripe\ORM\Connect\SS_Query;
use SilverStripe\ORM\Queries\SQLConditionGroup; use SilverStripe\ORM\Queries\SQLConditionGroup;
use SilverStripe\ORM\Queries\SQLSelect; use SilverStripe\ORM\Queries\SQLSelect;

View File

@ -1,5 +1,6 @@
<?php <?php
use SilverStripe\CMS\Model\SiteTree;
use SilverStripe\ORM\DataModel; use SilverStripe\ORM\DataModel;
use SilverStripe\ORM\Versioning\Versioned; use SilverStripe\ORM\Versioning\Versioned;
/** /**
@ -467,7 +468,7 @@ class Director implements TemplateGlobalProvider {
* Return the {@link SiteTree} object that is currently being viewed. If there is no SiteTree * Return the {@link SiteTree} object that is currently being viewed. If there is no SiteTree
* object to return, then this will return the current controller. * object to return, then this will return the current controller.
* *
* @return SiteTree * @return SiteTree|Controller
*/ */
public static function get_current_page() { public static function get_current_page() {
return self::$current_page ? self::$current_page : Controller::curr(); return self::$current_page ? self::$current_page : Controller::curr();

View File

@ -57,6 +57,7 @@
* `Folder_UnusedAssetsField` is removed. * `Folder_UnusedAssetsField` is removed.
* `UpgradeSiteTreePermissionSchemaTask` is removed. * `UpgradeSiteTreePermissionSchemaTask` is removed.
* `$action` parameter to `Controller::Link()` method is standardised. * `$action` parameter to `Controller::Link()` method is standardised.
* Removed `UpgradeSiteTreePermissionSchemaTask`
## New API ## New API

View File

@ -1,6 +1,7 @@
<?php <?php
use SilverStripe\ORM\FieldType\DBField; use SilverStripe\ORM\FieldType\DBField;
use SilverStripe\ORM\FieldType\DBHTMLText;
/** /**
* A ViewableData object is any object that can be rendered into a template/view. * A ViewableData object is any object that can be rendered into a template/view.