Actions

API15

JTable/check

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

This page contains changes which are not marked for translation.

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 />