Exemplo n.º 1
0
 public function store($updateNulls = false)
 {
     if (empty($this->key)) {
         $this->key = $this->generate();
     }
     return parent::store($updateNulls);
 }
Exemplo n.º 2
0
 public function store()
 {
     if (is_object($this->rules) || is_array($this->rules)) {
         $this->rules = json_encode($this->rules);
     }
     parent::store();
 }
Exemplo n.º 3
0
 /**
  * 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;
 }
Exemplo n.º 4
0
 /**
  * Constructor for this class.
  *
  * @return
  * @param object $this->_db
  */
 public function __construct(&$db)
 {
     parent::__construct('#__komento_configs', 'component', $db);
 }
Exemplo n.º 5
0
 /**
  * Constructor for this class.
  *
  * @return
  * @param object $db
  */
 public function __construct(&$db)
 {
     parent::__construct('#__komento_captcha', 'id', $db);
 }
Exemplo n.º 6
0
 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;
 }
Exemplo n.º 7
0
 /**
  * Constructor for this class.
  *
  * @return
  * @param object $db
  */
 function __construct(&$db)
 {
     parent::__construct('#__komento_activities', 'id', $db);
 }
Exemplo n.º 8
0
 public function __construct(&$db)
 {
     parent::__construct('#__komento_subscription', 'id', $db);
 }
Exemplo n.º 9
0
 public function __construct(&$db)
 {
     parent::__construct('#__komento_mailq', 'id', $db);
 }