function infolist_get() { $arg = (object) $this->input->get(); $params = (array) $arg; if (array_key_exists('client_id', $params)) { $params['where']['ai.client_id'] = $arg->client_id; } if (array_key_exists('org_id', $params)) { $params['where']['ai.org_id'] = $arg->org_id; } $params['where']['ai.valid_from <='] = datetime_db_format(); $result['data'] = $this->frontend_model->getInfo($params); $this->xresponse(true, $result); }
function infolist_get() { $sess = $this->_check_token(); $params['where']['ai.client_id'] = $sess->client_id; $params['where']['ai.org_id'] = $sess->org_id; $params['where']['ai.valid_from <='] = datetime_db_format(); $result['data'] = $this->system_model->getInfo($params); $this->xresponse(TRUE, $result); }
function infolist() { $sess = $this->_check_session(); $params = $this->input->get(); // $this->getAPI('system', 'infolist', $params, FALSE); $params['where']['ai.client_id'] = $sess->client_id; $params['where']['ai.org_id'] = $sess->org_id; $params['where']['ai.valid_from <='] = datetime_db_format(); $result['data'] = $this->system_model->getInfo($params); $this->xresponse(TRUE, $result); }