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:
Ingo Schommer 2010-05-25 03:57:46 +00:00
parent 93d405c4a3
commit 046dd623be
2 changed files with 1 additions and 20 deletions

View File

@ -1573,25 +1573,6 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
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.
* Triggers the onRenameLinkedAsset action on extensions.

View File

@ -749,7 +749,7 @@ class Translatable extends DataObjectDecorator implements PermissionProvider {
* but this involves complicated special cases in AllChildrenIncludingDeleted().
*
* {@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()}.
*/
function onBeforeWrite() {