JTableViewlevel/check: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 4: | Line 4: | ||
===Syntax=== | ===Syntax=== | ||
| Line 34: | Line 34: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=check | category=check | ||
category=JTableViewlevel | category=JTableViewlevel | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
Latest revision as of 02:13, 25 March 2017
Description
Method to check the current record to save
Syntax
check()
Returns
boolean True on success
Defined in
libraries/joomla/database/table/viewlevel.php
Importing
jimport( 'joomla.database.table.viewlevel' );
Source Body
function check()
{
// Validate the title.
if ((trim($this->title)) == '')
{
$this->setError(JText::_('Viewlevel must have a title'));
return false;
}
return true;
}
Examples
Code Examples