示例#1
0
 /**
  * Constructor
  * @param ZObject $a_parent
  * @param string $a_name
  */
 function __construct(ZObject &$a_parent = null, $a_name = null)
 {
     parent::__construct($a_parent);
     if ($a_name !== null) {
         $this->setName($a_name);
     }
 }
示例#2
0
 /**
  * Remove node children
  * @param ZNode $a_children
  * @return ZNode
  */
 public function &removeChildren(ZNode &$a_children)
 {
     $id = $a_children->getId();
     if (isset($this->m_childrens[$id]) or array_key_exists($id, $this->m_childrens)) {
         unset($this->m_childrens[$id]);
     }
     return $this;
 }
示例#3
0
 /**
  * Contructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->m_path = null;
 }
示例#4
0
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->m_times = array();
     $this->m_mem = array();
 }
示例#5
0
 public function __construct($a_type, $a_mime)
 {
     parent::__construct();
     $this->setType($a_type)->setMime($a_mime);
 }
示例#6
0
 public function __construct($a_type, $a_mime)
 {
     parent::__construct();
     $this->setType($a_type)->setMime($a_mime)->setEncoding('utf-8');
 }