API16:JTable/setRules
From Joomla! Documentation
Description
Method to set rules for the record.
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);
}
}
Examples
Code Examples