API16

API16:JTableExtension/check

From Joomla! Documentation

Description

Overloaded check function



Syntax

check()


Returns

boolean True if the object is ok

Defined in

libraries/joomla/database/table/extension.php

Importing

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

Source Body

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



Examples

Code Examples