API16

API16:JTableViewlevel/check

From Joomla! Documentation

Revision as of 14:32, 24 March 2017 by JoomlaWikiBot (talk | contribs) (clean up)

Description

Method to check the current record to save


{{subst:Description:JTableViewlevel/check}}

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;
}


{{subst:SeeAlso:JTableViewlevel/check}}

Examples

<CodeExamplesForm />