diff options
| author | Björn Geiger | 2011-01-27 16:59:15 +0100 |
|---|---|---|
| committer | Björn Geiger | 2011-01-27 16:59:15 +0100 |
| commit | c22e65aa3ef4f72f0416fc0f28ee7d0601e78ef8 (patch) | |
| tree | c9dcdc26ab419fad25868ebd435d3bc3aef44ba7 /application/models | |
| parent | updated (diff) | |
| download | pbs2-c22e65aa3ef4f72f0416fc0f28ee7d0601e78ef8.tar.gz pbs2-c22e65aa3ef4f72f0416fc0f28ee7d0601e78ef8.tar.xz pbs2-c22e65aa3ef4f72f0416fc0f28ee7d0601e78ef8.zip | |
BootEntries entfernt
Diffstat (limited to 'application/models')
| -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 -{ - - -} - |
