summaryrefslogtreecommitdiffstats
path: root/application/models/PoolFilters.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/models/PoolFilters.php')
-rw-r--r--application/models/PoolFilters.php93
1 files changed, 58 insertions, 35 deletions
diff --git a/application/models/PoolFilters.php b/application/models/PoolFilters.php
index 9d1b658..504aa4f 100644
--- a/application/models/PoolFilters.php
+++ b/application/models/PoolFilters.php
@@ -2,42 +2,65 @@
class Application_Model_PoolFilters
{
+ protected $_poolID;
+ protected $_filterID;
+
public function __construct(array $options = null)
- {
- if (is_array($options)) {
- $this->setOptions($options);
- }
- }
-
- public function __set($name, $value)
- {
- $method = 'set' . $name;
- if (('mapper' == $name) || !method_exists($this, $method)) {
- throw new Exception('Invalid guestbook property');
- }
- $this->$method($value);
- }
-
- public function __get($name)
- {
- $method = 'get' . $name;
- if (('mapper' == $name) || !method_exists($this, $method)) {
- throw new Exception('Invalid guestbook property');
- }
- return $this->$method();
- }
-
- public function setOptions(array $options)
- {
- $methods = get_class_methods($this);
- foreach ($options as $key => $value) {
- $method = 'set' . ucfirst($key);
- if (in_array($method, $methods)) {
- $this->$method($value);
- }
- }
- return $this;
- }
+ {
+ if (is_array($options)) {
+ $this->setOptions($options);
+ }
+ }
+
+ public function __set($name, $value)
+ {
+ $method = 'set' . $name;
+ if (('mapper' == $name) || !method_exists($this, $method)) {
+ throw new Exception('Invalid poolfilters property');
+ }
+ $this->$method($value);
+ }
+
+ public function __get($name)
+ {
+ $method = 'get' . $name;
+ if (('mapper' == $name) || !method_exists($this, $method)) {
+ throw new Exception('Invalid poolfilters property');
+ }
+ return $this->$method();
+ }
+
+ public function setOptions(array $options)
+ {
+ $methods = get_class_methods($this);
+ foreach ($options as $key => $value) {
+ $method = 'set' . ucfirst($key);
+ if (in_array($method, $methods)) {
+ $this->$method($value);
+ }
+ }
+ return $this;
+ }
+
+
+ public function get_poolID()
+ {
+ return $this->_poolID;
+ }
+
+ public function set_poolID($_poolID)
+ {
+ $this->_poolID = $_poolID;
+ }
+
+ public function get_filterID()
+ {
+ return $this->_filterID;
+ }
+ public function set_filterID($_filterID)
+ {
+ $this->_filterID = $_filterID;
+ }
}