Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove references to Sanitize in Filtered

  • Loading branch information...
commit 603688c31ddc326d12949f12df1127c707b9fe4e 1 parent 6d8aa99
@adamnbowen authored
Showing with 8 additions and 8 deletions.
  1. +8 −8 Filtered.php
View
16 Filtered.php
@@ -11,26 +11,26 @@ class Filtered
{
/**
- * _sanitizedArray the sanitized result of the array/object
+ * _filtered the object accessed via __get() and __set()
*
* @var array
*/
- private $_sanitizedArray = array();
+ private $_filtered = array();
/**
- * __get If a nonexistent property of a Sanitize object is called, this
+ * __get If a nonexistent property of a Filtered object is called, this
* function checks to see if the property corresponds to a key of
- * $this->_sanitizedArray, and returns that, otherwise it returns null.
+ * $this->_filtered, and returns that, otherwise it returns null.
*
* @param mixed $key
* @return void
*/
public function __get($key)
{
- if (array_key_exists($key, $this->_sanitizedArray)
- && !empty($this->_sanitizedArray[$key])
+ if (array_key_exists($key, $this->_filtered)
+ && !empty($this->_filtered[$key])
) {
- return $this->_sanitizedArray[$key];
+ return $this->_filtered[$key];
} else {
return null;
}
@@ -38,7 +38,7 @@ public function __get($key)
public function __set($key, $value)
{
- $this->_sanitizedArray[$key] = $value;
+ $this->_filtered[$key] = $value;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.