diff options
| author | Björn Geiger | 2011-01-27 17:32:56 +0100 |
|---|---|---|
| committer | Björn Geiger | 2011-01-27 17:32:56 +0100 |
| commit | 7512229bcaaf39dc2ca6e9b18770db04a6f800fa (patch) | |
| tree | a384ee6a40ce37d7b273cfa3309fb420f93fb9cf /application | |
| parent | BootEntries entfernt (diff) | |
| download | pbs2-7512229bcaaf39dc2ca6e9b18770db04a6f800fa.tar.gz pbs2-7512229bcaaf39dc2ca6e9b18770db04a6f800fa.tar.xz pbs2-7512229bcaaf39dc2ca6e9b18770db04a6f800fa.zip | |
Getter und Setter für Models gesetzt
Diffstat (limited to 'application')
23 files changed, 1595 insertions, 673 deletions
diff --git a/application/models/BootIso.php b/application/models/BootIso.php index a9a88d8..3a411db 100644 --- a/application/models/BootIso.php +++ b/application/models/BootIso.php @@ -21,7 +21,7 @@ class Application_Model_BootIso { $method = 'set' . $name; if (('mapper' == $name) || !method_exists($this, $method)) { - throw new Exception('Invalid guestbook property'); + throw new Exception('Invalid bootiso property'); } $this->$method($value); } @@ -30,7 +30,7 @@ class Application_Model_BootIso { $method = 'get' . $name; if (('mapper' == $name) || !method_exists($this, $method)) { - throw new Exception('Invalid guestbook property'); + throw new Exception('Invalid bootiso property'); } return $this->$method(); } 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; + } } diff --git a/application/models/BootMenuEntries.php b/application/models/BootMenuEntries.php index 4ae24eb..0d2b5cd 100644 --- a/application/models/BootMenuEntries.php +++ b/application/models/BootMenuEntries.php @@ -13,7 +13,7 @@ class Application_Model_BootMenuEntries { $method = 'set' . $name; if (('mapper' == $name) || !method_exists($this, $method)) { - throw new Exception('Invalid guestbook property'); + throw new Exception('Invalid bootmenuentries property'); } $this->$method($value); } @@ -22,7 +22,7 @@ class Application_Model_BootMenuEntries { $method = 'get' . $name; if (('mapper' == $name) || !method_exists($this, $method)) { - throw new Exception('Invalid guestbook property'); + throw new Exception('Invalid bootmenuentries property'); } return $this->$method(); } diff --git a/application/models/BootOs.php b/application/models/BootOs.php index 1e19f7c..d4432d7 100644 --- a/application/models/BootOs.php +++ b/application/models/BootOs.php @@ -2,42 +2,120 @@ class Application_Model_BootOs { + protected $_bootisoID; + protected $_membershipID; + protected $_groupID; + protected $_serialnumber; + protected $_created; + protected $_expires; + protected $_public; + 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 bootos property'); + } + $this->$method($value); + } + + public function __get($name) + { + $method = 'get' . $name; + if (('mapper' == $name) || !method_exists($this, $method)) { + throw new Exception('Invalid bootos 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_bootisoID() + { + return $this->_bootisoID; + } + + public function set_bootisoID($_bootisoID) + { + $this->_bootisoID = $_bootisoID; + } + + public function get_membershipID() + { + return $this->_membershipID; + } + + public function set_membershipID($_membershipID) + { + $this->_membershipID = $_membershipID; + } + + public function get_groupID() + { + return $this->_groupID; + } + + public function set_groupID($_groupID) + { + $this->_groupID = $_groupID; + } + + public function get_serialnumber() + { + return $this->_serialnumber; + } + + public function set_serialnumber($_serialnumber) + { + $this->_serialnumber = $_serialnumber; + } + + public function get_created() + { + return $this->_created; + } + + public function set_created($_created) + { + $this->_created = $_created; + } + + public function get_expires() + { + return $this->_expires; + } + + public function set_expires($_expires) + { + $this->_expires = $_expires; + } + + public function get_public() + { + return $this->_public; + } + public function set_public($_public) + { + $this->_public = $_public; + } } diff --git a/application/models/BootOsMapper.php b/application/models/BootOsMapper.php index 2879d17..44754aa 100644 --- a/application/models/BootOsMapper.php +++ b/application/models/BootOsMapper.php @@ -1,6 +1,6 @@ <?php -class Application_Model_BootOsMaper +class Application_Model_BootOsMapper { diff --git a/application/models/Client.php b/application/models/Client.php index d09f7ce..5b0ebb0 100644 --- a/application/models/Client.php +++ b/application/models/Client.php @@ -2,42 +2,76 @@ class Application_Model_Client { + protected $_clientID; + protected $_macadress; + protected $_hardwarehash; + 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 client property'); + } + $this->$method($value); + } + + public function __get($name) + { + $method = 'get' . $name; + if (('mapper' == $name) || !method_exists($this, $method)) { + throw new Exception('Invalid client 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_clientID() + { + return $this->_clientID; + } + + public function set_clientID($_clientID) + { + $this->_clientID = $_clientID; + } + + public function get_macadress() + { + return $this->_macadress; + } + + public function set_macadress($_macadress) + { + $this->_macadress = $_macadress; + } + + public function get_hardwarehash() + { + return $this->_hardwarehash; + } + public function set_hardwarehash($_hardwarehash) + { + $this->_hardwarehash = $_hardwarehash; + } } diff --git a/application/models/Config.php b/application/models/Config.php index e5263d0..2a2d503 100644 --- a/application/models/Config.php +++ b/application/models/Config.php @@ -2,42 +2,76 @@ class Application_Model_Config { + protected $_configID; + protected $_membershipID; + protected $_shellscript; + 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 config property'); + } + $this->$method($value); + } + + public function __get($name) + { + $method = 'get' . $name; + if (('mapper' == $name) || !method_exists($this, $method)) { + throw new Exception('Invalid config 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_configID() + { + return $this->_configID; + } + + public function set_configID($_configID) + { + $this->_configID = $_configID; + } + + public function get_membershipID() + { + return $this->_membershipID; + } + + public function set_membershipID($_membershipID) + { + $this->_membershipID = $_membershipID; + } + + public function get_shellscript() + { + return $this->_shellscript; + } + public function set_shellscript($_shellscript) + { + $this->_shellscript = $_shellscript; + } } diff --git a/application/models/Filter.php b/application/models/Filter.php index 7ebdf24..5e2f5bc 100644 --- a/application/models/Filter.php +++ b/application/models/Filter.php @@ -2,42 +2,131 @@ class Application_Model_Filter { + protected $_filterID; + protected $_membershipID; + protected $_groupID; + protected $_bootmenuID; + protected $_title; + protected $_description; + protected $_created; + protected $_priority; + 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 filter property'); + } + $this->$method($value); + } + + public function __get($name) + { + $method = 'get' . $name; + if (('mapper' == $name) || !method_exists($this, $method)) { + throw new Exception('Invalid filter 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_filterID() + { + return $this->_filterID; + } + + public function set_filterID($_filterID) + { + $this->_filterID = $_filterID; + } + + public function get_membershipID() + { + return $this->_membershipID; + } + + public function set_membershipID($_membershipID) + { + $this->_membershipID = $_membershipID; + } + + public function get_groupID() + { + return $this->_groupID; + } + + public function set_groupID($_groupID) + { + $this->_groupID = $_groupID; + } + + public function get_bootmenuID() + { + return $this->_bootmenuID; + } + + public function set_bootmenuID($_bootmenuID) + { + $this->_bootmenuID = $_bootmenuID; + } + + public function get_title() + { + return $this->_title; + } + + public function set_title($_title) + { + $this->_title = $_title; + } + + public function get_description() + { + return $this->_description; + } + + public function set_description($_description) + { + $this->_description = $_description; + } + + public function get_created() + { + return $this->_created; + } + + public function set_created($_created) + { + $this->_created = $_created; + } + + public function get_priority() + { + return $this->_priority; + } + public function set_priority($_priority) + { + $this->_priority = $_priority; + } } diff --git a/application/models/FilterEntries.php b/application/models/FilterEntries.php index 3dd2a81..815133c 100644 --- a/application/models/FilterEntries.php +++ b/application/models/FilterEntries.php @@ -1,43 +1,88 @@ <?php -class Application_Model_Filterentries +class Application_Model_FilterEntries { + protected $_filterID; + protected $_filtertypeID; + protected $_filtervalue; + protected $_filtervalue2; + 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 filterentries property'); + } + $this->$method($value); + } + + public function __get($name) + { + $method = 'get' . $name; + if (('mapper' == $name) || !method_exists($this, $method)) { + throw new Exception('Invalid filterentries 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_filterID() + { + return $this->_filterID; + } + + public function set_filterID($_filterID) + { + $this->_filterID = $_filterID; + } + + public function get_filtertypeID() + { + return $this->_filtertypeID; + } + + public function set_filtertypeID($_filtertypeID) + { + $this->_filtertypeID = $_filtertypeID; + } + + public function get_filtervalue() + { + return $this->_filtervalue; + } + + public function set_filtervalue($_filtervalue) + { + $this->_filtervalue = $_filtervalue; + } + + public function get_filtervalue2() + { + return $this->_filtervalue2; + } + public function set_filtervalue2($_filtervalue2) + { + $this->_filtervalue2 = $_filtervalue2; + } } diff --git a/application/models/FilterType.php b/application/models/FilterType.php index d22dff9..94a72b9 100644 --- a/application/models/FilterType.php +++ b/application/models/FilterType.php @@ -2,42 +2,65 @@ class Application_Model_FilterType { + protected $_filtertypeID; + protected $_filtertypename; + 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 filtertype property'); + } + $this->$method($value); + } + + public function __get($name) + { + $method = 'get' . $name; + if (('mapper' == $name) || !method_exists($this, $method)) { + throw new Exception('Invalid filtertype 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_filtertypeID() + { + return $this->_filtertypeID; + } + + public function set_filtertypeID($_filtertypeID) + { + $this->_filtertypeID = $_filtertypeID; + } + + public function get_filtertypename() + { + return $this->_filtertypename; + } + public function set_filtertypename($_filtertypename) + { + $this->_filtertypename = $_filtertypename; + } } diff --git a/application/models/Group.php b/application/models/Group.php index 60fefad..771c08b 100644 --- a/application/models/Group.php +++ b/application/models/Group.php @@ -2,42 +2,76 @@ class Application_Model_Group { + protected $_groupID; + protected $_title; + protected $_description; + 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 group property'); + } + $this->$method($value); + } + + public function __get($name) + { + $method = 'get' . $name; + if (('mapper' == $name) || !method_exists($this, $method)) { + throw new Exception('Invalid group 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_groupID() + { + return $this->_groupID; + } + + public function set_groupID($_groupID) + { + $this->_groupID = $_groupID; + } + + public function get_title() + { + return $this->_title; + } + + public function set_title($_title) + { + $this->_title = $_title; + } + + public function get_description() + { + return $this->_description; + } + public function set_description($_description) + { + $this->_description = $_description; + } } diff --git a/application/models/GroupGroups.php b/application/models/GroupGroups.php index 94fe3c5..31776cb 100644 --- a/application/models/GroupGroups.php +++ b/application/models/GroupGroups.php @@ -2,42 +2,65 @@ class Application_Model_GroupGroups { + protected $_parentID; + protected $_groupID; + 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 groupGroups property'); + } + $this->$method($value); + } + + public function __get($name) + { + $method = 'get' . $name; + if (('mapper' == $name) || !method_exists($this, $method)) { + throw new Exception('Invalid groupGroups 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_parentID() + { + return $this->_parentID; + } + + public function set_parentID($_parentID) + { + $this->_parentID = $_parentID; + } + + public function get_groupID() + { + return $this->_groupID; + } + public function set_groupID($_groupID) + { + $this->_groupID = $_groupID; + } } diff --git a/application/models/GroupRequest.php b/application/models/GroupRequest.php index 83fc428..66577a2 100644 --- a/application/models/GroupRequest.php +++ b/application/models/GroupRequest.php @@ -2,42 +2,87 @@ class Application_Model_GroupRequest { + protected $_grouprequestID; + protected $_groupID; + protected $_personID; + protected $_time; + 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 grouprequest property'); + } + $this->$method($value); + } + + public function __get($name) + { + $method = 'get' . $name; + if (('mapper' == $name) || !method_exists($this, $method)) { + throw new Exception('Invalid grouprequest 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_grouprequestID() + { + return $this->_grouprequestID; + } + + public function set_grouprequestID($_grouprequestID) + { + $this->_grouprequestID = $_grouprequestID; + } + + public function get_groupID() + { + return $this->_groupID; + } + + public function set_groupID($_groupID) + { + $this->_groupID = $_groupID; + } + + public function get_personID() + { + return $this->_personID; + } + + public function set_personID($_personID) + { + $this->_personID = $_personID; + } + + public function get_time() + { + return $this->_time; + } + public function set_time($_time) + { + $this->_time = $_time; + } } diff --git a/application/models/Membership.php b/application/models/Membership.php index 46b9a0b..6859d08 100644 --- a/application/models/Membership.php +++ b/application/models/Membership.php @@ -2,42 +2,87 @@ class Application_Model_Membership { + protected $_membershipID; + protected $_groupID; + protected $_roleID; + protected $_personID; + 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 membership property'); + } + $this->$method($value); + } + + public function __get($name) + { + $method = 'get' . $name; + if (('mapper' == $name) || !method_exists($this, $method)) { + throw new Exception('Invalid membership 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_membershipID() + { + return $this->_membershipID; + } + + public function set_membershipID($_membershipID) + { + $this->_membershipID = $_membershipID; + } + + public function get_groupID() + { + return $this->_groupID; + } + + public function set_groupID($_groupID) + { + $this->_groupID = $_groupID; + } + + public function get_roleID() + { + return $this->_roleID; + } + + public function set_roleID($_roleID) + { + $this->_roleID = $_roleID; + } + + public function get_personID() + { + return $this->_personID; + } + public function set_personID($_personID) + { + $this->_personID = $_personID; + } } diff --git a/application/models/MembershipFilters.php b/application/models/MembershipFilters.php index 09e9e41..e12380d 100644 --- a/application/models/MembershipFilters.php +++ b/application/models/MembershipFilters.php @@ -2,42 +2,65 @@ class Application_Model_MembershipFilters { + protected $_membershipID; + 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 membershipfilters property'); + } + $this->$method($value); + } + + public function __get($name) + { + $method = 'get' . $name; + if (('mapper' == $name) || !method_exists($this, $method)) { + throw new Exception('Invalid membershipfilters 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_membershipID() + { + return $this->_membershipID; + } + + public function set_membershipID($_membershipID) + { + $this->_membershipID = $_membershipID; + } + + public function get_filterID() + { + return $this->_filterID; + } + public function set_filterID($_filterID) + { + $this->_filterID = $_filterID; + } } diff --git a/application/models/Person.php b/application/models/Person.php index a07133b..ec717b9 100644 --- a/application/models/Person.php +++ b/application/models/Person.php @@ -2,42 +2,186 @@ class Application_Model_Person { + protected $_personID; + protected $_title; + protected $_name; + protected $_firstname; + protected $_street; + protected $_housenumber; + protected $_city; + protected $_postalcode; + protected $_logindate; + protected $_registerdate; + protected $_email; + protected $_login; + protected $_password; + 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 person property'); + } + $this->$method($value); + } + + public function __get($name) + { + $method = 'get' . $name; + if (('mapper' == $name) || !method_exists($this, $method)) { + throw new Exception('Invalid person 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_personID() + { + return $this->_personID; + } + + public function set_personID($_personID) + { + $this->_personID = $_personID; + } + + public function get_title() + { + return $this->_title; + } + + public function set_title($_title) + { + $this->_title = $_title; + } + + public function get_name() + { + return $this->_name; + } + + public function set_name($_name) + { + $this->_name = $_name; + } + + public function get_firstname() + { + return $this->_firstname; + } + + public function set_firstname($_firstname) + { + $this->_firstname = $_firstname; + } + + public function get_street() + { + return $this->_street; + } + + public function set_street($_street) + { + $this->_street = $_street; + } + + public function get_housenumber() + { + return $this->_housenumber; + } + + public function set_housenumber($_housenumber) + { + $this->_housenumber = $_housenumber; + } + + public function get_city() + { + return $this->_city; + } + + public function set_city($_city) + { + $this->_city = $_city; + } + + public function get_postalcode() + { + return $this->_postalcode; + } + + public function set_postalcode($_postalcode) + { + $this->_postalcode = $_postalcode; + } + + public function get_logindate() + { + return $this->_logindate; + } + + public function set_logindate($_logindate) + { + $this->_logindate = $_logindate; + } + + public function get_registerdate() + { + return $this->_registerdate; + } + + public function set_registerdate($_registerdate) + { + $this->_registerdate = $_registerdate; + } + + public function get_email() + { + return $this->_email; + } + + public function set_email($_email) + { + $this->_email = $_email; + } + + public function get_login() + { + return $this->_login; + } + + public function set_login($_login) + { + $this->_login = $_login; + } + + public function get_password() + { + return $this->_password; + } + public function set_password($_password) + { + $this->_password = $_password; + } } diff --git a/application/models/Pool.php b/application/models/Pool.php index 13925d7..383ae1c 100644 --- a/application/models/Pool.php +++ b/application/models/Pool.php @@ -2,42 +2,87 @@ class Application_Model_Pool { + protected $_poolID; + protected $_title; + protected $_description; + protected $_location; + 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 pool property'); + } + $this->$method($value); + } + + public function __get($name) + { + $method = 'get' . $name; + if (('mapper' == $name) || !method_exists($this, $method)) { + throw new Exception('Invalid pool 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_title() + { + return $this->_title; + } + + public function set_title($_title) + { + $this->_title = $_title; + } + + public function get_description() + { + return $this->_description; + } + + public function set_description($_description) + { + $this->_description = $_description; + } + + public function get_location() + { + return $this->_location; + } + public function set_location($_location) + { + $this->_location = $_location; + } } diff --git a/application/models/PoolEntries.php b/application/models/PoolEntries.php index 05f6609..a7e70e9 100644 --- a/application/models/PoolEntries.php +++ b/application/models/PoolEntries.php @@ -2,42 +2,65 @@ class Application_Model_PoolEntries { + protected $_poolID; + protected $_clientID; + 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 poolentries property'); + } + $this->$method($value); + } + + public function __get($name) + { + $method = 'get' . $name; + if (('mapper' == $name) || !method_exists($this, $method)) { + throw new Exception('Invalid poolentries 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_clientID() + { + return $this->_clientID; + } + public function set_clientID($_clientID) + { + $this->_clientID = $_clientID; + } } 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; + } } diff --git a/application/models/Right.php b/application/models/Right.php index a9842b0..250f158 100644 --- a/application/models/Right.php +++ b/application/models/Right.php @@ -2,42 +2,76 @@ class Application_Model_Right { + protected $_rightID; + protected $_title; + protected $_description; + 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 right property'); + } + $this->$method($value); + } + + public function __get($name) + { + $method = 'get' . $name; + if (('mapper' == $name) || !method_exists($this, $method)) { + throw new Exception('Invalid right 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_rightID() + { + return $this->_rightID; + } + + public function set_rightID($_rightID) + { + $this->_rightID = $_rightID; + } + + public function get_title() + { + return $this->_title; + } + + public function set_title($_title) + { + $this->_title = $_title; + } + + public function get_description() + { + return $this->_description; + } + public function set_description($_description) + { + $this->_description = $_description; + } } diff --git a/application/models/RightRoles.php b/application/models/RightRoles.php index d365781..ccd62dc 100644 --- a/application/models/RightRoles.php +++ b/application/models/RightRoles.php @@ -2,42 +2,65 @@ class Application_Model_RightRoles { + protected $_roleID; + protected $_rightID; + 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 rightroles property'); + } + $this->$method($value); + } + + public function __get($name) + { + $method = 'get' . $name; + if (('mapper' == $name) || !method_exists($this, $method)) { + throw new Exception('Invalid rightroles 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_roleID() + { + return $this->_roleID; + } + + public function set_roleID($_roleID) + { + $this->_roleID = $_roleID; + } + + public function get_rightID() + { + return $this->_rightID; + } + public function set_rightID($_rightID) + { + $this->_rightID = $_rightID; + } } diff --git a/application/models/Role.php b/application/models/Role.php index 67df23a..e8812b9 100644 --- a/application/models/Role.php +++ b/application/models/Role.php @@ -2,42 +2,87 @@ class Application_Model_Role { + protected $_roleID; + protected $_groupID; + protected $_title; + protected $_description; + 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 role property'); + } + $this->$method($value); + } + + public function __get($name) + { + $method = 'get' . $name; + if (('mapper' == $name) || !method_exists($this, $method)) { + throw new Exception('Invalid role 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_roleID() + { + return $this->_roleID; + } + + public function set_roleID($_roleID) + { + $this->_roleID = $_roleID; + } + + public function get_groupID() + { + return $this->_groupID; + } + + public function set_groupID($_groupID) + { + $this->_groupID = $_groupID; + } + + public function get_title() + { + return $this->_title; + } + + public function set_title($_title) + { + $this->_title = $_title; + } + + public function get_description() + { + return $this->_description; + } + public function set_description($_description) + { + $this->_description = $_description; + } } diff --git a/application/models/Session.php b/application/models/Session.php index 8fa9748..7d3c6a2 100644 --- a/application/models/Session.php +++ b/application/models/Session.php @@ -2,42 +2,109 @@ class Application_Model_Session { + protected $_sessionID; + protected $_clientID; + protected $_bootosID; + protected $_time; + protected $_ip; + protected $_ip6; + 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 session property'); + } + $this->$method($value); + } + + public function __get($name) + { + $method = 'get' . $name; + if (('mapper' == $name) || !method_exists($this, $method)) { + throw new Exception('Invalid session 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_sessionID() + { + return $this->_sessionID; + } + + public function set_sessionID($_sessionID) + { + $this->_sessionID = $_sessionID; + } + + public function get_clientID() + { + return $this->_clientID; + } + + public function set_clientID($_clientID) + { + $this->_clientID = $_clientID; + } + + public function get_bootosID() + { + return $this->_bootosID; + } + + public function set_bootosID($_bootosID) + { + $this->_bootosID = $_bootosID; + } + + public function get_time() + { + return $this->_time; + } + + public function set_time($_time) + { + $this->_time = $_time; + } + + public function get_ip() + { + return $this->_ip; + } + + public function set_ip($_ip) + { + $this->_ip = $_ip; + } + + public function get_ip6() + { + return $this->_ip6; + } + public function set_ip6($_ip6) + { + $this->_ip6 = $_ip6; + } } |
