API16

API16:JTable/check

From Joomla! Documentation

Revision as of 22:41, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Method to perform sanity checks on the JTable instance properties to ensure they are safe to store in the database. Child classes should override this method to make sur...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Method to perform sanity checks on the JTable instance properties to ensure they are safe to store in the database. Child classes should override this method to make sure the data they are storing in the database is safe and as expected before storage.

[Edit Descripton]

Template:Description:JTable/check

Syntax

check()


Returns

boolean True if the instance is sane and able to be stored in the database.

Defined in

libraries/joomla/database/table.php

Importing

jimport( 'joomla.database.table' );

Source Body

public function check()
{
        return true;
}

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

Examples

<CodeExamplesForm />