Overview

Packages

  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Datatype
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob

Classes

  • ArticleForumRightBottom
  • cApiClickableAction
  • cApiClickableQuestionAction
  • cGuiBackendHelpbox
  • cGuiFoldingRow
  • cGuiList
  • cGuiMenu
  • cGuiNavigation
  • cGuiNotification
  • cGuiObjectPager
  • cGuiPage
  • cGuiScrollList
  • cGuiTableForm
  • cGuiTree
  • cPager
  • cTemplate
  • cTree
  • cTreeItem
  • NoteLink
  • NoteList
  • NoteListItem
  • NoteView
  • TODOBackendList
  • TODOLink
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo
 1: <?php
 2: /**
 3:  * This file contains the tree class.
 4:  *
 5:  * @package    Core
 6:  * @subpackage GUI
 7:  * @version    SVN Revision $Rev:$
 8:  *
 9:  * @author     Timo Hummel
10:  * @copyright  four for business AG <www.4fb.de>
11:  * @license    http://www.contenido.org/license/LIZENZ.txt
12:  * @link       http://www.4fb.de
13:  * @link       http://www.contenido.org
14:  */
15: 
16: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
17: 
18: /**
19:  * Tree class
20:  *
21:  * @package    Core
22:  * @subpackage GUI
23:  */
24: class cTree extends cTreeItem {
25: 
26:     /**
27:      * Tree icon
28:      *
29:      * @var string @protected
30:      */
31:     protected $_treeIcon;
32: 
33:     public function __construct($name = "") {
34:         /*
35:          * The root item currently has to be a "0". This is a bug, feel free to
36:          * fix it.
37:          */
38:         parent::__construct(0, $name);
39:     }
40: 
41:     /**
42:      * sets a new name for the tree.
43:      *
44:      * @param string name Name of the tree
45:      */
46:     public function setTreeName($name) {
47:         $this->setName($name);
48:     }
49: 
50:     public function setIcon($path) {
51:         $this->setTreeIcon($path);
52:     }
53: 
54:     /**
55:      * Tree icon setter
56:      *
57:      * @param string $path
58:      */
59:     public function setTreeIcon($path) {
60:         $this->_treeIcon = $path;
61:     }
62: 
63:     /**
64:      * Tree icon getter
65:      *
66:      * @return string
67:      */
68:     public function getTreeIcon() {
69:         return $this->_treeIcon;
70:     }
71: 
72: }
73: 
CMS CONTENIDO 4.9.2 API documentation generated by ApiGen 2.8.0