コード例 #1
0
 /**
  * Sets attributes from SQL result row to object
  * 
  * @param array $row data from DB
  * 
  * @return void
  */
 protected function setAttributes(array $row)
 {
     parent::setAttributes($row);
     if (isset($row['blueprintTypeID'])) {
         $this->producedFromBlueprintID = (int) $row['blueprintTypeID'];
     }
 }
コード例 #2
0
ファイル: Blueprint.php プロジェクト: draivsolregard/lmeve-ci
 /**
  * Sets attributes from SQL result row to object
  * 
  * @param array $row data from DB
  * 
  * @return void
  */
 protected function setAttributes(array $row)
 {
     parent::setAttributes($row);
     $this->productId = (int) $row['productTypeID'];
     $this->maxProductionLimit = (int) $row['maxProductionLimit'];
 }