Actions

API16

JTable/setRules

From Joomla! Documentation

< API16:JTable
Revision as of 17:41, 22 March 2010 by Doxiki (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Contents

Description

Method to set rules for the record.

[Edit Descripton]

Description:JTable/setRules

Syntax

setRules($input)
Parameter Name Default Value Description
$input A object, JSON string, or array.

Defined in

libraries/joomla/database/table.php

Importing

jimport( 'joomla.database.table' );

Source Body

function setRules($input)
{
        if ($input instanceof JRules) {
                $this->_rules = $input;
        } else {
                $this->_rules = new JRules($input);
        }
}

[Edit See Also] SeeAlso:JTable/setRules

Examples

<CodeExamplesForm />