예제 #1
0
파일: Product.php 프로젝트: 06romix/store
 /**
  * @param int $id
  * @return int|int
  */
 public static function getOne($id)
 {
     return DbFunctions::getEntity('product', $id);
 }
예제 #2
0
파일: User.php 프로젝트: 06romix/store
 public static function getUserLogin($id)
 {
     return DbFunctions::getEntity('user', $id)['user_name'];
 }
예제 #3
0
 public function viewAction()
 {
     $id = $this->params()->fromRoute('id', 0);
     return new ViewModel(array('user' => DbFunctions::getEntity('user', $id)));
 }