API16

JTableViewlevel/check: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
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


<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JTableViewlevel/check|Edit Descripton]]<nowiki>]</nowiki>
</span>


{{Description:JTableViewlevel/check}}
 
 


===Syntax===
===Syntax===
Line 35: Line 33:
</source>
</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JTableViewlevel/check|Edit See Also]]<nowiki>]</nowiki>
 
</span>
{{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