english/administrator/components/com_aicontactsafe/controller.php
// function used to save the new order of records
function used to save the new order of records
function used to save the new order of records
function saveorder() {
		$model = &$this->getModel( $this->_sTaskModel, '', $this->_parameters );
		$isOK = $model->saveOrder();
		$link = $model->getLastLink();
		if ($isOK) {
			$msg = JText::_('COM_AICONTACTSAFE_ORDER_SAVED');
			$msgType = 'message';
		} else {
			$msg = $this->_app->_session->get( 'errorMsg:' . $this->_sTask );
			$msgType = 'error';
		}
		$this->setRedirect($link, $msg, $msgType);
	}
function saveorder ( ) { $ model = & $ this -> getModel ( $ this -> _sTaskModel , '' , $ this -> _parameters ) ; $ isOK = $ model -> saveOrder ( ) ; $ link = $ model -> getLastLink ( ) ; if ( $ isOK ) { $ msg = JText :: _ ( 'COM_AICONTACTSAFE_ORDER_SAVED' ) ; $ msgType = 'message' ; } else { $ msg = $ this -> _app -> _session -> get ( 'errorMsg:' . $ this -> _sTask ) ; $ msgType = 'error' ; } $ this -> setRedirect ( $ link , $ msg , $ msgType ) ; }
function used to save the new order of records
function used to save the new order of records