コード例 #1
0
ファイル: object.php プロジェクト: BGCX261/zoombi-svn-to-git
 /**
  * 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
ファイル: node.php プロジェクト: BGCX261/zoombi-svn-to-git
 /**
  * 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
ファイル: log.php プロジェクト: BGCX261/zoombi-svn-to-git
 /**
  * Contructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->m_path = null;
 }