From 7512229bcaaf39dc2ca6e9b18770db04a6f800fa Mon Sep 17 00:00:00 2001 From: Björn Geiger Date: Thu, 27 Jan 2011 17:32:56 +0100 Subject: Getter und Setter für Models gesetzt --- application/models/BootMenu.php | 49 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 47 insertions(+), 2 deletions(-) (limited to 'application/models/BootMenu.php') diff --git a/application/models/BootMenu.php b/application/models/BootMenu.php index 7f3e31f..0cf0443 100644 --- a/application/models/BootMenu.php +++ b/application/models/BootMenu.php @@ -2,6 +2,11 @@ class Application_Model_BootMenu { + protected $_bootmenuID; + protected $_membershipID; + protected $_title; + protected $_time; + public function __construct(array $options = null) { if (is_array($options)) { @@ -13,7 +18,7 @@ class Application_Model_BootMenu { $method = 'set' . $name; if (('mapper' == $name) || !method_exists($this, $method)) { - throw new Exception('Invalid guestbook property'); + throw new Exception('Invalid bootmenu property'); } $this->$method($value); } @@ -22,7 +27,7 @@ class Application_Model_BootMenu { $method = 'get' . $name; if (('mapper' == $name) || !method_exists($this, $method)) { - throw new Exception('Invalid guestbook property'); + throw new Exception('Invalid bootmenu property'); } return $this->$method(); } @@ -39,5 +44,45 @@ class Application_Model_BootMenu return $this; } + + public function get_bootmenuID() + { + return $this->_bootmenuID; + } + + public function set_bootmenuID($_bootmenuID) + { + $this->_bootmenuID = $_bootmenuID; + } + + public function get_membershipID() + { + return $this->_membershipID; + } + + public function set_membershipID($_membershipID) + { + $this->_membershipID = $_membershipID; + } + + public function get_title() + { + return $this->_title; + } + + public function set_title($_title) + { + $this->_title = $_title; + } + + public function get_time() + { + return $this->_time; + } + + public function set_time($_time) + { + $this->_time = $_time; + } } -- cgit v1.2.3-55-g7522