API16

API16:JTableModule/check

From Joomla! Documentation

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

Description

Overloaded check function.


{{subst:Description:JTableModule/check}}

Syntax

check()


Returns

boolean True if the object is ok

Defined in

libraries/joomla/database/table/module.php

Importing

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

Source Body

public function check()
{
        // check for valid name
        if (trim($this->title) == '')
        {
                $this->setError(JText::sprintf('MUST_CONTAIN_A_TITLE', JText::_('Module')));
                return false;
        }

        return true;
}


{{subst:SeeAlso:JTableModule/check}}

Examples

<CodeExamplesForm />