summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorSimon2011-01-27 16:33:17 +0100
committerSimon2011-01-27 16:33:17 +0100
commiteb9b579b90fe4a05424fd979e6bbb382833e4fde (patch)
tree38252e82217079b10d441882fdb1f27a62668ec1 /application
parentzfproject aktualisiert (diff)
downloadpbs2-eb9b579b90fe4a05424fd979e6bbb382833e4fde.tar.gz
pbs2-eb9b579b90fe4a05424fd979e6bbb382833e4fde.tar.xz
pbs2-eb9b579b90fe4a05424fd979e6bbb382833e4fde.zip
Schreibfehler korrigiert
Diffstat (limited to 'application')
-rw-r--r--application/models/BootMenuEntries.php43
-rw-r--r--application/models/BootMenuEntriesMapper.php8
2 files changed, 51 insertions, 0 deletions
diff --git a/application/models/BootMenuEntries.php b/application/models/BootMenuEntries.php
new file mode 100644
index 0000000..4ae24eb
--- /dev/null
+++ b/application/models/BootMenuEntries.php
@@ -0,0 +1,43 @@
+<?php
+
+class Application_Model_BootMenuEntries
+{
+ 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/BootMenuEntriesMapper.php b/application/models/BootMenuEntriesMapper.php
new file mode 100644
index 0000000..ed13180
--- /dev/null
+++ b/application/models/BootMenuEntriesMapper.php
@@ -0,0 +1,8 @@
+<?php
+
+class Application_Model_BootMenuEntriesMapper
+{
+
+
+}
+