public function store($updateNulls = false) { if (empty($this->key)) { $this->key = $this->generate(); } return parent::store($updateNulls); }
public function store() { if (is_object($this->rules) || is_array($this->rules)) { $this->rules = json_encode($this->rules); } parent::store(); }
/** * Retrieve JTable objects. * * @param string $tableName The table name. * @param string $prefix JTable prefix. * @return object JTable object. **/ public static function getTable($tableName, $prefix = 'KomentoTable') { require_once KOMENTO_TABLES . '/parent.php'; $table = KomentoParentTable::getInstance($tableName, $prefix); return $table; }
/** * Constructor for this class. * * @return * @param object $this->_db */ public function __construct(&$db) { parent::__construct('#__komento_configs', 'component', $db); }
/** * Constructor for this class. * * @return * @param object $db */ public function __construct(&$db) { parent::__construct('#__komento_captcha', 'id', $db); }
public function store($updateNulls = false) { $paramsEncoded = false; if (is_object($this->params)) { $this->params = json_encode($this->params); if (empty($this->params)) { $this->params = '{}'; } $paramsEncoded = true; } $state = parent::store($updateNulls); if ($paramsEncoded) { $this->params = json_decode($this->params); } return $state; }
/** * Constructor for this class. * * @return * @param object $db */ function __construct(&$db) { parent::__construct('#__komento_activities', 'id', $db); }
public function __construct(&$db) { parent::__construct('#__komento_subscription', 'id', $db); }
public function __construct(&$db) { parent::__construct('#__komento_mailq', 'id', $db); }