english/administrator/components/com_aicontactsafe/controllers/profiles.php
// function to save the profile's email template
function to save the profile's email template
function to save the profile ' s email template
function save_email() {
		$model = &$this->getModel( $this->_sTaskModel, '', $this->_parameters );
		$isOK = $model->getFormFields();
		if ($isOK) {
			$isOK = $model->writeEmail();
		}
		if ($isOK) {
			$link = $model->getReturnLink();
			$msg = $this->getConfirmationMessage();
			$msgType = 'message';
		} else {
			$link = $model->getLastLink();
			$msg = $this->_app->_session->get( 'errorMsg:' . $this->_sTask );
			$msgType = 'error';
		}
		$this->setRedirect($link, $msg, $msgType);
	}
function save_email ( ) { $ model = & $ this -> getModel ( $ this -> _sTaskModel , '' , $ this -> _parameters ) ; $ isOK = $ model -> getFormFields ( ) ; if ( $ isOK ) { $ isOK = $ model -> writeEmail ( ) ; } if ( $ isOK ) { $ link = $ model -> getReturnLink ( ) ; $ msg = $ this -> getConfirmationMessage ( ) ; $ msgType = 'message' ; } else { $ link = $ model -> getLastLink ( ) ; $ msg = $ this -> _app -> _session -> get ( 'errorMsg:' . $ this -> _sTask ) ; $ msgType = 'error' ; } $ this -> setRedirect ( $ link , $ msg , $ msgType ) ; }
function to save the profile's email template
function to save the profile ' s email template