Exemplo n.º 1
0
 function MysiteTableConfig(&$db)
 {
     $tbl_key = 'config_name';
     $tbl_suffix = 'config';
     $this->set('_suffix', $tbl_suffix);
     $name = "mysite";
     parent::__construct("#__{$name}_{$tbl_suffix}", $tbl_key, $db);
 }
Exemplo n.º 2
0
 function move($change, $where = '')
 {
     $move = parent::move($change, $where);
     // now, load the parent item for this menutype, and move it
     $table = JTable::getInstance('Items', 'MysiteTable');
     $table->load(array('menutype' => $this->menutype, 'parent' => 0));
     if (!empty($table->item_id)) {
         // move
         $table->ordering = $this->ordering;
         $table->save();
     }
     return $move;
 }
Exemplo n.º 3
0
 function move($change, $where = '')
 {
     $where = 'parent = ' . $this->_db->Quote($this->parent);
     return parent::move($change, $where);
 }