JTableViewlevel/check: Difference between revisions
From Joomla! Documentation
New page: ===Description===
Method to check the current record to save
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<... |
m preparing for archive only |
||
| (One intermediate revision by the same user not shown) | |||
| Line 2: | Line 2: | ||
Method to check the current record to save | Method to check the current record to save | ||
===Syntax=== | ===Syntax=== | ||
| Line 35: | Line 33: | ||
</source> | </source> | ||
===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