mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
API CHANGE Deprecated TreeTitle(), use getTreeTitle() (in SiteTree, File, Group)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@115119 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
f056abc818
commit
1c34d8f1b4
@ -2373,6 +2373,13 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
||||
$this->setField("MenuTitle", $value);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated 3.0 Use getTreeTitle()
|
||||
*/
|
||||
function TreeTitle() {
|
||||
return $this->getTreeTitle();
|
||||
}
|
||||
|
||||
/**
|
||||
* TitleWithStatus will return the title in an <ins>, <del> or
|
||||
|
@ -167,7 +167,17 @@ class File extends DataObject {
|
||||
function RelativeLink($action = null){
|
||||
return $this->Filename;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated 3.0 Use getTreeTitle()
|
||||
*/
|
||||
function TreeTitle() {
|
||||
return $this->getTreeTitle();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
function getTreeTitle() {
|
||||
return $this->Title;
|
||||
}
|
||||
|
@ -299,7 +299,14 @@ class Group extends DataObject {
|
||||
return DataObject::get('Group', "\"Group\".\"ParentID\" = " . (int)$this->ID . " AND \"Group\".\"ID\" != " . (int)$this->ID, '"Sort"');
|
||||
}
|
||||
|
||||
public function TreeTitle() {
|
||||
/**
|
||||
* @deprecated 3.0 Use getTreeTitle()
|
||||
*/
|
||||
function TreeTitle() {
|
||||
return $this->getTreeTitle();
|
||||
}
|
||||
|
||||
public function getTreeTitle() {
|
||||
if($this->hasMethod('alternateTreeTitle')) return $this->alternateTreeTitle();
|
||||
else return htmlspecialchars($this->Title, ENT_QUOTES);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user