コード例 #1
0
ファイル: Recipe.php プロジェクト: vishaleyes/cookingwithzend
 /**
  * @param int $id
  */
 public function __construct($id = null)
 {
     parent::__construct();
     if ($id !== null) {
         $this->getRecipe($id);
     }
 }
コード例 #2
0
 /**
  * @param int $id
  */
 public function __construct($id = null)
 {
     parent::__construct();
     if ($id !== null) {
         $this->getSingleByField('id', $id);
     }
 }
コード例 #3
0
 /**
  * 
  * @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);
     }
 }