示例#1
0
 public function post()
 {
     if (isset($_SESSION['account_id'])) {
         $this->iAccountID = $_SESSION['account_id'];
         parent::post();
     }
 }
示例#2
0
文件: Setting.php 项目: engel/yase
 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();
     }
 }