english/components/com_aicontactsafe/models/message.php
// function to validate fields before writing them to the database
function to validate fields before writing them to the database
function to validate fields before writing them to the database
function checkBeforeWrite($postData) {
		$postData = parent::checkBeforeWrite($postData);
		$datenow =& JFactory::getDate();
		$postData['date_added'] = $datenow->toMySQL();
		$postData['last_update'] = $datenow->toMySQL();
		return $postData;
	}
function checkBeforeWrite ( $ postData ) { $ postData = parent :: checkBeforeWrite ( $ postData ) ; $ datenow = & JFactory :: getDate ( ) ; $ postData [ 'date_added' ] = $ datenow -> toMySQL ( ) ; $ postData [ 'last_update' ] = $ datenow -> toMySQL ( ) ; return $ postData ; }
function to validate fields before writing them to the database
function to validate fields before writing them to the database