[limb-svn] r5988 - 3.x/trunk/limb/cms/src
svn at limb-project.com
svn at limb-project.com
Wed Jun 13 11:50:58 MSD 2007
Author: tony
Date: 2007-06-13 11:50:57 +0400 (Wed, 13 Jun 2007)
New Revision: 5988
URL: http://fisheye.limb-project.com/changelog/limb/?cs=5988
Modified:
3.x/trunk/limb/cms/src/lmbCmsTreeBrowser.class.php
Log:
-- getters fixed in lmbCmsTreeBrowser
Modified: 3.x/trunk/limb/cms/src/lmbCmsTreeBrowser.class.php
===================================================================
--- 3.x/trunk/limb/cms/src/lmbCmsTreeBrowser.class.php 2007-06-13 07:31:26 UTC (rev 5987)
+++ 3.x/trunk/limb/cms/src/lmbCmsTreeBrowser.class.php 2007-06-13 07:50:57 UTC (rev 5988)
@@ -2,17 +2,17 @@
/*
* Limb PHP Framework
*
- * @link http://limb-project.com
+ * @link http://limb-project.com
* @copyright Copyright © 2004-2007 BIT(http://bit-creative.com)
- * @license LGPL http://www.gnu.org/copyleft/lesser.html
+ * @license LGPL http://www.gnu.org/copyleft/lesser.html
*/
lmb_require('limb/cms/src/model/lmbCmsNode.class.php');
-/**
- * class lmbCmsTreeBrowser.
- *
- * @package cms
- * @version $Id$
+/**
+ * class lmbCmsTreeBrowser.
+ *
+ * @package cms
+ * @version $Id$
*/
class lmbCmsTreeBrowser
{
@@ -42,15 +42,15 @@
{
$result = '';
- if($this->current_folder->id)
- $folders = lmbActiveRecord :: find('lmbCmsNode', 'parent_id = '. $this->current_folder->id);
+ if($this->current_folder->getId())
+ $folders = lmbActiveRecord :: find('lmbCmsNode', 'parent_id = '. $this->current_folder->getId());
else
$folders = $this->current_folder->getRoots();
foreach($folders as $folder)
{
- $title = htmlspecialchars($folder->title, ENT_QUOTES);
- $result .= "<Folder id='{$folder->id}' name='{$title}' url='{$folder->url_path}'/>";
+ $title = htmlspecialchars($folder->getTitle(), ENT_QUOTES);
+ $result .= "<Folder id='{$folder->getId()}' name='{$title}' url='{$folder->getUrlPath()}'/>";
}
return $result;
More information about the limb-svn
mailing list