mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-02 06:09:00 +02:00
API CHANGE Removed deprecated function SiteTree::get_by_url(), please use SiteTree::get_by_link() instead! (from r100492)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@105578 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
93d405c4a3
commit
046dd623be
@ -1573,25 +1573,6 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
|||||||
return ($liveRecord) ? $liveRecord->URLSegment : null;
|
return ($liveRecord) ? $liveRecord->URLSegment : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Return the SiteTree object with the given URL segment.
|
|
||||||
*
|
|
||||||
* @deprecated 2.4 Use {@link SiteTree::get_by_link()}.
|
|
||||||
*
|
|
||||||
* @param string $urlSegment The URL segment, eg 'home'
|
|
||||||
* @param string $extraFilter
|
|
||||||
* @param boolean $cache
|
|
||||||
* @param string $orderby
|
|
||||||
* @return SiteTree The object with the given URL segment
|
|
||||||
*/
|
|
||||||
public static function get_by_url($link) {
|
|
||||||
user_error (
|
|
||||||
'SiteTree::get_by_url() is deprecated, please use SiteTree::get_by_link()', E_USER_NOTICE
|
|
||||||
);
|
|
||||||
|
|
||||||
return self::get_by_link($link);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Rewrite a file URL on this page, after its been renamed.
|
* Rewrite a file URL on this page, after its been renamed.
|
||||||
* Triggers the onRenameLinkedAsset action on extensions.
|
* Triggers the onRenameLinkedAsset action on extensions.
|
||||||
|
@ -749,7 +749,7 @@ class Translatable extends DataObjectDecorator implements PermissionProvider {
|
|||||||
* but this involves complicated special cases in AllChildrenIncludingDeleted().
|
* but this involves complicated special cases in AllChildrenIncludingDeleted().
|
||||||
*
|
*
|
||||||
* {@link SiteTree->onBeforeWrite()} will ensure that each translation will get
|
* {@link SiteTree->onBeforeWrite()} will ensure that each translation will get
|
||||||
* a unique URL across languages, by means of {@link SiteTree::get_by_url()}
|
* a unique URL across languages, by means of {@link SiteTree::get_by_link()}
|
||||||
* and {@link Translatable->alternateGetByURL()}.
|
* and {@link Translatable->alternateGetByURL()}.
|
||||||
*/
|
*/
|
||||||
function onBeforeWrite() {
|
function onBeforeWrite() {
|
||||||
|
Loading…
Reference in New Issue
Block a user