API16

JTableViewlevel/check: Difference between revisions

From Joomla! Documentation

m clean up
m preparing for archive only
 
Line 4: Line 4:




{{subst:Description:JTableViewlevel/check}}
 


===Syntax===
===Syntax===
Line 34: Line 34:




{{subst:SeeAlso:JTableViewlevel/check}}
 


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=check
  category=check
  category=JTableViewlevel
  category=JTableViewlevel
  category=CodeExample
  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