mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API Upgrade to SilverStripe\CMS namespace
This commit is contained in:
parent
afdae4937e
commit
c7387ff45f
@ -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;
|
||||||
|
|
||||||
|
@ -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();
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user