API16

API16:JTableUsergroup/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/usergroup.php

Importing

jimport( 'joomla.database.table.usergroup' );

Source Body

function check()
{
        // Validate the title.
        if ((trim($this->title)) == '') {
                $this->setError(JText::_('Usergroup must have a title'));
                return false;
        }

        return true;
}



Examples

Code Examples