Пример #1
0
 public function post()
 {
     if (isset($_SESSION['account_id'])) {
         $this->iAccountID = $_SESSION['account_id'];
         parent::post();
     }
 }
Пример #2
0
 public function fetchArray()
 {
     if (isset($_SESSION['account_id'])) {
         return REST_Model::fetchArray(" WHERE account_id=" . $_SESSION['account_id'] . " ORDER by id");
     } else {
         return REST_Model::fetchArray();
     }
 }