Actions

API15

JTable/check

From Joomla! ドキュメンテーション

Revision as of 01:04, 4 December 2015 by Sync (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Contents

Description

Generic check method

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

Syntax

check()

Returns

boolean True if the object is ok

Defined in

libraries/joomla/database/table.php

Importing

jimport( 'joomla.database.table' );

Source Body

function check()
{
        return true;
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

function check() {
    if($this->title == ''){
        $this->setError(JText::_('This record requires a title')); 
        return false;
    }
    return true;
}

<CodeExamplesForm />