Beispiel #1
0
 /**
  * @param int $id
  * @return int|int
  */
 public static function getOne($id)
 {
     return DbFunctions::getEntity('product', $id);
 }
Beispiel #2
0
 public static function getUserLogin($id)
 {
     return DbFunctions::getEntity('user', $id)['user_name'];
 }
Beispiel #3
0
 public function viewAction()
 {
     $id = $this->params()->fromRoute('id', 0);
     return new ViewModel(array('user' => DbFunctions::getEntity('user', $id)));
 }