Permalink
Browse files

Fix an issue caused by pull request #554.

  • Loading branch information...
1 parent 73b3bcf commit 5e21bf13fc7904fcbdb38a290ac79c3a97f00bc1 @realityking realityking committed Dec 13, 2011
@@ -57,7 +57,7 @@
/**
* The rules associated with this record.
*
- * @var JRules A JRules object.
+ * @var JAccessRules A JAccessRules object.
* @since 11.1
*/
protected $_rules;
@@ -360,28 +360,28 @@ public function setDBO(&$db)
/**
* Method to set rules for the record.
*
- * @param mixed $input A JRules object, JSON string, or array.
+ * @param mixed $input A JAccessRules object, JSON string, or array.
*
* @return void
*
* @since 11.1
*/
public function setRules($input)
{
- if ($input instanceof JRules)
+ if ($input instanceof JAccessRules)
{
$this->_rules = $input;
}
else
{
- $this->_rules = new JRules($input);
+ $this->_rules = new JAccessRules($input);
}
}
/**
* Method to get the rules for the record.
*
- * @return JRules object
+ * @return JAccessRules object
*
* @since 11.1
*/
@@ -648,7 +648,7 @@ public function store($updateNulls = false)
$asset->name = $name;
$asset->title = $title;
- if ($this->_rules instanceof JRules)
+ if ($this->_rules instanceof JAccessRules)
{
$asset->rules = (string) $this->_rules;
}
@@ -182,7 +182,7 @@ public function bind($array, $ignore = '')
// Bind the rules.
if (isset($array['rules']) && is_array($array['rules']))
{
- $rules = new JRules($array['rules']);
+ $rules = new JAccessRules($array['rules']);
$this->setRules($rules);
}
@@ -151,7 +151,7 @@ public function bind($array, $ignore = '')
// Bind the rules.
if (isset($array['rules']) && is_array($array['rules']))
{
- $rules = new JRules($array['rules']);
+ $rules = new JAccessRules($array['rules']);
$this->setRules($rules);
}

0 comments on commit 5e21bf1

Please sign in to comment.