english/libraries/joomla/database/table/module.php
/**
	 * Overloaded check function.
	 *
	 * @return  boolean  True if the instance is sane and able to be stored in the database.
	 *
	 * @see     JTable::check()
	 * @since   11.1
	 */
Overloaded check function.
@return  boolean  True if the instance is sane and able to be stored in the database.


Overloaded check function . @return boolean True if the instance is sane and able to be stored in the database .
public function check()
	{
		if (trim($this->title) == '') {
			$this->setError(JText::_('JLIB_DATABASE_ERROR_MUSTCONTAIN_A_TITLE_MODULE'));
			return false;
		}
		if (intval($this->publish_down) > 0 && $this->publish_down < $this->publish_up) {
			$temp = $this->publish_up;
			$this->publish_up = $this->publish_down;
			$this->publish_down = $temp;
		}
		return true;
	}
public function check ( ) { if ( trim ( $ this -> title ) == '' ) { $ this -> setError ( JText :: _ ( 'JLIB_DATABASE_ERROR_MUSTCONTAIN_A_TITLE_MODULE' ) ) ; return false ; } if ( intval ( $ this -> publish_down ) > 0 && $ this -> publish_down < $ this -> publish_up ) { $ temp = $ this -> publish_up ; $ this -> publish_up = $ this -> publish_down ; $ this -> publish_down = $ temp ; } return true ; }
Overloaded check function.
Overloaded check function .
// check for valid name // Check the publish down date is not earlier than publish up. // Swap the dates.