JTable/check
From Joomla! Documentation
< API15:JTable
The "API15" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
Description[edit]
Generic check method
Template:Description:JTable/check
Syntax[edit]
check()
Returns[edit]
boolean True if the object is ok
Defined in[edit]
libraries/joomla/database/table.php
Importing[edit]
jimport( 'joomla.database.table' );
Source Body[edit]
function check()
{
return true;
}
[Edit See Also] Template:SeeAlso:JTable/check
Examples[edit]
function check() {
if($this->title == ''){
$this->setError(JText::_('This record requires a title'));
return false;
}
return true;
}
<CodeExamplesForm />