API15:JTable/check
From Joomla! Documentation
Description
Generic check method
Template:Description:JTable/check
Syntax
check()
Returns
boolean True if the object is ok
Defined in
libraries/joomla/database/table.php
Importing
jimport( 'joomla.database.table' );
Source Body
function check()
{
return true;
}
[Edit See Also] Template:SeeAlso:JTable/check
Examples
<CodeExamplesForm />
function check() {
if($this->title == ){
$this->setError(JText::_('This record requires a title'));
return false;
}
return true;
}