JTable/setRules
From Joomla! Documentation
< API16:JTable
The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
Description[edit]
Method to set rules for the record.
Syntax[edit]
setRules($input)
Parameter Name | Default Value | Description |
---|---|---|
$input | A object, JSON string, or array. |
Defined in[edit]
libraries/joomla/database/table.php
Importing[edit]
jimport( 'joomla.database.table' );
Source Body[edit]
function setRules($input)
{
if ($input instanceof JRules) {
$this->_rules = $input;
} else {
$this->_rules = new JRules($input);
}
}
Examples[edit]
Code Examples[edit]