Actions

API16

JTableModule/check

< API16:JTableModule

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

Overloaded check function.



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



Examples

Code Examples


Advertisement