/** * Constructor **/ function __construct($id = "") { /*** Set table name ***/ if (empty($this->table)) { $this->table = "summary"; } /*** use parent model to connect to DB ***/ parent::connectToDb(); }
/** * Constructor **/ function __construct($id = "") { if (empty($this->table)) { $this->table = get_class($this); } if (!empty($id)) { $this->id = $id; } /*** use parent model to connect to DB ***/ parent::connectToDb(); }
/** * Constructor **/ function __construct($id = "") { /*** Set table name ***/ if (empty($this->table)) { $this->table = 'LakeHostGroup'; } /*** Set ID ***/ if (!empty($id)) { $this->id = $id; } /*** use parent model to connect to DB ***/ parent::connectToDb(); }
/** * Constructor **/ function __construct($id = "") { /*** Set table name ***/ if (empty($this->table)) { $this->table = get_class($this); } /*** Set ID ***/ if (!empty($id)) { $this->id = $id; } /*** call parent Connection to DB ***/ parent::connectToDb(); }
public function __construct($id = "") { //initialize inherited attributes: if (empty($this->table)) { $this->table = 'Summary'; } if (!empty($id)) { $this->id = $id; } /*** use parent model to connect to DB ***/ parent::connectToDb(); //init attributes: $this->boatRamps = null; $this->users = null; $this->waterbodies = null; $this->towns = null; $this->lakeHostGroups = null; }
public function __construct() { /*** use parent model to connect to DB ***/ parent::connectToDb(); }