API16

API16:JTableExtension/check

From Joomla! Documentation

Revision as of 22:42, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Overloaded check function <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Overloaded check function

[Edit Descripton]

Template:Description:JTableExtension/check

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

[Edit See Also] Template:SeeAlso:JTableExtension/check

Examples

<CodeExamplesForm />