Пример #1
0
 /**
  * Constructor
  * 
  * @access public
  * @param integer $id
  * @return void 
  */
 function __construct($id = 0)
 {
     //set class name
     $this->_className = get_class($this);
     //initialize super-class
     parent::__construct($id);
 }
Пример #2
0
 /**
  * Constructor.
  * initializes object if the id is given.
  *
  * @param integer $id DB id
  * @param boolean $public wich type of data (default=false : edited)
  * @return void
  * @access public
  */
 function __construct($id = 0, $public = false)
 {
     //set class name
     $this->_className = get_class($this);
     //initialize super-class
     parent::__construct($id, $public);
 }