/** * 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); }
/** * 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); }