Esempio n. 1
0
 /**
  * @param int $id
  */
 public function __construct($id = null)
 {
     parent::__construct();
     if ($id !== null) {
         $this->getRecipe($id);
     }
 }
Esempio n. 2
0
 /**
  * @param int $id
  */
 public function __construct($id = null)
 {
     parent::__construct();
     if ($id !== null) {
         $this->getSingleByField('id', $id);
     }
 }
Esempio n. 3
0
 /**
  * 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);
     }
 }