public function move( $order, $where = null, $ordering = 'ordering' ) { global $_CB_framework, $_PLUGINS; $plugin = cbgjClass::getPlugin(); $user =& CBuser::getUserDataInstance( $_CB_framework->myId() ); $_PLUGINS->trigger( 'gjint_onBeforeUpdateAutoOrder', array( &$this, $user, $plugin ) ); parent::move( (int) $order, $where, $ordering ); $_PLUGINS->trigger( 'gjint_onAfterUpdateAutoOrder', array( $this, $user, $plugin ) ); $this->updateOrder(); return true; }
/** * moves group database position * * @param $order * @param null|string $where * @param string $ordering * @return bool|void */ public function move( $order, $where = null, $ordering = 'ordering' ) { global $_CB_framework, $_CB_database, $_PLUGINS; $plugin = cbgjClass::getPlugin(); $user =& CBuser::getUserDataInstance( $_CB_framework->myId() ); $_PLUGINS->trigger( 'gj_onBeforeUpdateGroupOrder', array( &$order, &$this, $this->getCategory(), $user, $plugin ) ); parent::move( (int) $order, $where, $ordering ); $_PLUGINS->trigger( 'gj_onAfterUpdateGroupOrder', array( $this->get( 'ordering' ), $this, $this->getCategory(), $user, $plugin ) ); $this->updateOrder( $_CB_database->NameQuote( 'category' ) . ' = ' . (int) $this->get( 'category' ) . ' AND ' . $_CB_database->NameQuote( 'parent' ) . ' = ' . (int) $this->get( 'parent' ) ); return true; }