/** * Constructor * Set up the model and fulltext searchfields * @return void */ public function __construct() { // first set up the model $this->setCfg('model_path', 'MODEL'); $this->setCfg('model', 'LogSqlItem'); // then call parent constructor to get tablefields parent::__construct(); // set fulltextsearchfields afterwards $this->setCfg('fulltextsearchfileds', array('param')); }
/** * Overwrites the creation of the perm SQL * statement to use multiple tables and connect * them with a join statement. * @see API/MODELS/SF_MODEL_AbstractSqlCollection#_getPermcheckSql($id, $table, $clientlang, $timestamp, $freefilter, $search) */ protected function _getPermcheckSql($fielditem, $fieldparent = NULL, $tablename, $clientlang, $timestamp, $freefilter, $search) { $table = $this->tables[0] . $this->_getLeftJoinSql(); return parent::_getPermcheckSql($fielditem, $fieldparent, $table, $clientlang, $timestamp, $freefilter, $search); }
/** * Overwrites the creation of the client and lang clause. * @see API/MODELS/SF_MODEL_AbstractSqlCollection#_getSqlClientLang($idclient, $idlang, $fields) */ protected function _getSqlClientLang($idclient, $idlang, $fields, $accept_id_zero = FALSE) { return parent::_getSqlClientLang(array($idclient, 0), array($idlang, 0), $fields); }