示例#1
0
 /**
  * Constructor
  * @param Zoombi_Object $a_parent
  * @param string $a_name
  */
 function __construct(Zoombi_Object &$a_parent = null, $a_name = null)
 {
     parent::__construct($a_parent);
     if ($a_name !== null) {
         $this->setName($a_name);
     }
 }
示例#2
0
 /**
  * Add children to node
  * @param Zoombi_Node $a_children
  * @return Zoombi_Node
  */
 public function &addChildren(Zoombi_Node &$a_children)
 {
     if (!$a_children) {
         return $this;
     }
     $cid = $a_children->getId();
     if ($this->hasChildren($cid)) {
         return $this;
     }
     $a_children->setParent($this);
     $this->m_childrens[$cid] =& $a_children;
     return $this;
 }
示例#3
0
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->m_times = array();
     $this->m_mem = array();
 }
示例#4
0
 public function __construct($a_type, $a_mime)
 {
     parent::__construct();
     $this->setType($a_type)->setMime($a_mime)->setCharset('utf-8');
 }
示例#5
0
 /**
  * Contructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->m_path = null;
 }