Actions

API16

JTableUsergroup/check

< API16:JTableUsergroup

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

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


Advertisement