/** * @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); } }
/** * Retieves the user information if you supply an email address * * @param string $email * @return array|false */ public function getUserByEmail($email) { if (!($row = parent::getSingleByField('email', $email))) { return false; } $this->_ownerUserId = $this->_data['id']; return true; }
/** * * @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); } }