public function post() { if (isset($_SESSION['account_id'])) { $this->iAccountID = $_SESSION['account_id']; parent::post(); } }
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(); } }