/** * Initialize model with items and collections * @return void */ private function _initModel() { $this->log_sql_item = sf_api('MODEL', 'LogSqlItem'); $this->log_sql_collection = sf_api('MODEL', 'LogSqlCollection'); // set idclient and idlang initially for correct loading $this->log_sql_item->setIdclient($this->config_area['idclient']); $this->log_sql_item->setIdlang($this->config_area['idlang']); }