Permalink
Browse files

API CHANGE Deprecated TreeTitle(), use getTreeTitle() (in SiteTree, F…

…ile, Group)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@115119 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
chillu committed Dec 16, 2010
1 parent f056abc commit 1c34d8f1b47dc1d9675e33e49fbfe595b3f29eab
Showing with 25 additions and 1 deletion.
  1. +7 −0 core/model/SiteTree.php
  2. +10 −0 filesystem/File.php
  3. +8 −1 security/Group.php
View
@@ -2373,6 +2373,13 @@ function setMenuTitle($value) {
$this->setField("MenuTitle", $value);
}
}
+
+ /**
+ * @deprecated 3.0 Use getTreeTitle()
+ */
+ function TreeTitle() {
+ return $this->getTreeTitle();
+ }
/**
* TitleWithStatus will return the title in an <ins>, <del> or
View
@@ -167,7 +167,17 @@ function Link($action = null) {
function RelativeLink($action = null){
return $this->Filename;
}
+
+ /**
+ * @deprecated 3.0 Use getTreeTitle()
+ */
+ function TreeTitle() {
+ return $this->getTreeTitle();
+ }
+ /**
+ * @return string
+ */
function getTreeTitle() {
return $this->Title;
}
View
@@ -299,7 +299,14 @@ public function stageChildren() {
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);
}

0 comments on commit 1c34d8f

Please sign in to comment.