diff options
Diffstat (limited to 'application')
| -rw-r--r-- | application/models/BootEntries.php | 43 | ||||
| -rw-r--r-- | application/models/BootEntriesMapper.php | 8 |
2 files changed, 0 insertions, 51 deletions
diff --git a/application/models/BootEntries.php b/application/models/BootEntries.php deleted file mode 100644 index 30562e0..0000000 --- a/application/models/BootEntries.php +++ /dev/null @@ -1,43 +0,0 @@ -<?php - -class Application_Model_BootEntries -{ - 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; - } - -} - diff --git a/application/models/BootEntriesMapper.php b/application/models/BootEntriesMapper.php deleted file mode 100644 index 5b88fc3..0000000 --- a/application/models/BootEntriesMapper.php +++ /dev/null @@ -1,8 +0,0 @@ -<?php - -class Application_Model_BootEntriesMapper -{ - - -} - |
