/** * @param int $id */ public function __construct($id = null) { parent::__construct(); if ($id !== null) { $this->getRecipe($id); } }
/** * @param int $id */ public function __construct($id = null) { parent::__construct(); if ($id !== null) { $this->getSingleByField('id', $id); } }
/** * * @param int $id */ public function __construct($id = null) { parent::__construct(); // Set the current data to be the pref data $this->_data = $this->_PREF_BASE; if ($id !== null) { $this->getDbPreferences($id); } }