API16

API16:JTableViewlevel/check

From Joomla! Documentation

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