diff options
| author | root | 2011-02-09 01:12:05 +0100 |
|---|---|---|
| committer | root | 2011-02-09 01:12:05 +0100 |
| commit | 25ac1a8e603fdaab8dd3851a7c8fd4fb353cc548 (patch) | |
| tree | 9f99a10e9fede00f2194973a2635c0d99632f320 /application/models | |
| parent | MapperScript & Mapper angelegt (alle die einen Primärschlüssel besitzen) (diff) | |
| download | pbs2-25ac1a8e603fdaab8dd3851a7c8fd4fb353cc548.tar.gz pbs2-25ac1a8e603fdaab8dd3851a7c8fd4fb353cc548.tar.xz pbs2-25ac1a8e603fdaab8dd3851a7c8fd4fb353cc548.zip | |
Alle Mapper angelegt, Script update
Diffstat (limited to 'application/models')
| -rw-r--r-- | application/models/BootIsoMapper.php | 67 | ||||
| -rw-r--r-- | application/models/BootMenuEntriesMapper.php | 36 | ||||
| -rw-r--r-- | application/models/BootMenuMapper.php | 12 | ||||
| -rw-r--r-- | application/models/BootOsMapper.php | 67 | ||||
| -rw-r--r-- | application/models/FilterEntriesMapper.php | 67 | ||||
| -rw-r--r-- | application/models/GroupGroupsMapper.php | 6 | ||||
| -rw-r--r-- | application/models/MembershipFiltersMapper.php | 67 | ||||
| -rw-r--r-- | application/models/PoolEntriesMapper.php | 67 | ||||
| -rw-r--r-- | application/models/PoolFiltersMapper.php | 67 | ||||
| -rw-r--r-- | application/models/PoolMapper.php | 6 | ||||
| -rw-r--r-- | application/models/RightRolesMapper.php | 67 | ||||
| -rw-r--r-- | application/models/SessionMapper.php | 6 |
12 files changed, 498 insertions, 37 deletions
diff --git a/application/models/BootIsoMapper.php b/application/models/BootIsoMapper.php index eb4f9c3..97f74a0 100644 --- a/application/models/BootIsoMapper.php +++ b/application/models/BootIsoMapper.php @@ -2,7 +2,74 @@ class Application_Model_BootIsoMapper { + + protected $_dbTable; + public function setDbTable($dbTable) + { + if (is_string($dbTable)) { + $dbTable = new $dbTable(); + } + if (!$dbTable instanceof Zend_Db_Table_Abstract) { + throw new Exception('Invalid table data gateway provided'); + } + + $this->_dbTable = $dbTable; + + return $this; + } + + public function getDbTable() + { + if (null === $this->_dbTable) { + $this->setDbTable('Application_Model_DbTable_Person'); + } + + return $this->_dbTable; + } + + public function save(Application_Model_BootIso $botiso) + { + + $data = array('bootisoID'=> $botiso->getBootisoID() ,'membershipID'=> $botiso->getMembershipID() ,'groupID'=> $botiso->getGroupID() ,'serialnumber'=> $botiso->getSerialnumber() ,'created'=> $botiso->getCreated() ,'expires'=> $botiso->getExpires() ,'public'=> $botiso->getPublic() ); + + if (null === ($id = $botiso->getID()) ) { + unset($data['id']); + $this->getDbTable()->insert($data); + } else { + $this->getDbTable()->update($data, array('id = ?' => $id)); + } + } + + public function find($id, Application_Model_BootIso $botiso) + { + $result = $this->getDbTable()->find($id); + if (0 == count($result)) { + return; + } + + $row = $result->current(); + + $botiso->setBootisoID($row->bootisoID)->setMembershipID($row->membershipID)->setGroupID($row->groupID)->setSerialnumber($row->serialnumber)->setCreated($row->created)->setExpires($row->expires)->setPublic($row->public); + } + + public function fetchAll() + { + $resultSet = $this->getDbTable()->fetchAll(); + $entries = array(); + foreach ($resultSet as $row) { + $entry = new Application_Model_BootIso(); + + $entry->setBootisoID($row->bootisoID)->setMembershipID($row->membershipID)->setGroupID($row->groupID)->setSerialnumber($row->serialnumber)->setCreated($row->created)->setExpires($row->expires)->setPublic($row->public); + + $entries[] = $entry; + } + + return $entries; + } + + + } diff --git a/application/models/BootMenuEntriesMapper.php b/application/models/BootMenuEntriesMapper.php index 576e799..468825e 100644 --- a/application/models/BootMenuEntriesMapper.php +++ b/application/models/BootMenuEntriesMapper.php @@ -1,7 +1,8 @@ <?php -class Application_Model_BootEntriesMapper +class Application_Model_BootMenuEntriesMapper { + protected $_dbTable; public function setDbTable($dbTable) @@ -22,24 +23,18 @@ class Application_Model_BootEntriesMapper public function getDbTable() { if (null === $this->_dbTable) { - $this->setDbTable('Application_Model_DbTable_TABLENAME'); + $this->setDbTable('Application_Model_DbTable_Person'); } return $this->_dbTable; } - public function save(Application_Model_TABLENAME $tablenamevar) + public function save(Application_Model_BootMenuEntries $botmenuentries) { - $data = array( - 'bootosID' => $tablenamevar->getBootosID(), - 'bootmenuID' => $tablenamevar->getMenuID(), - 'title' => $tablenamevar->getTitle(), - 'kcl' => $tablenamevar->getKcl(), - 'order' => $tablenamevar->getOrder() - ); + $data = array('bootosID'=> $botmenuentries->getBootosID() ,'bootmenuID'=> $botmenuentries->getBootmenuID() ,'title'=> $botmenuentries->getTitle() ,'kcl'=> $botmenuentries->getKcl() ,'order'=> $botmenuentries->getOrder() ); - if (null === ($id = $tablenamevar->getId()) ) { + if (null === ($id = $botmenuentries->getID()) ) { unset($data['id']); $this->getDbTable()->insert($data); } else { @@ -47,7 +42,7 @@ class Application_Model_BootEntriesMapper } } - public function find($id, Application_Model_TABLENAME $tablenamevar) + public function find($id, Application_Model_BootMenuEntries $botmenuentries) { $result = $this->getDbTable()->find($id); if (0 == count($result)) { @@ -56,10 +51,7 @@ class Application_Model_BootEntriesMapper $row = $result->current(); - $tablenamevar->setId($row->id) - ->setEmail($row->email) - ->setComment($row->comment) - ->setCreated($row->created); + $botmenuentries->setBootosID($row->bootosID)->setBootmenuID($row->bootmenuID)->setTitle($row->title)->setKcl($row->kcl)->setOrder($row->order); } public function fetchAll() @@ -67,17 +59,17 @@ class Application_Model_BootEntriesMapper $resultSet = $this->getDbTable()->fetchAll(); $entries = array(); foreach ($resultSet as $row) { - $entry = new Application_Model_TABLENAME(); - - $entry->setId($row->id) - ->setEmail($row->email) - ->setComment($row->comment) - ->setCreated($row->created); + $entry = new Application_Model_BootMenuEntries(); + $entry->setBootosID($row->bootosID)->setBootmenuID($row->bootmenuID)->setTitle($row->title)->setKcl($row->kcl)->setOrder($row->order); + $entries[] = $entry; } return $entries; } + + + } diff --git a/application/models/BootMenuMapper.php b/application/models/BootMenuMapper.php index a55bce4..5ea1ca2 100644 --- a/application/models/BootMenuMapper.php +++ b/application/models/BootMenuMapper.php @@ -29,12 +29,12 @@ class Application_Model_BootMenuMapper return $this->_dbTable; } - public function save(Application_Model_BootMenu $bootmenu) + public function save(Application_Model_BootMenu $botmenu) { - $data = array('bootmenuID'=> $bootmenu->getID() ,'membershipID'=> $bootmenu->getMembershipID() ,'title'=> $bootmenu->getTitle() ,'time'=> $bootmenu->getTime() ); + $data = array('bootmenuID'=> $botmenu->getBootmenuID() ,'membershipID'=> $botmenu->getMembershipID() ,'title'=> $botmenu->getTitle() ,'time'=> $botmenu->getTime() ); - if (null === ($id = $bootmenu->getID()) ) { + if (null === ($id = $botmenu->getID()) ) { unset($data['id']); $this->getDbTable()->insert($data); } else { @@ -42,7 +42,7 @@ class Application_Model_BootMenuMapper } } - public function find($id, Application_Model_BootMenu $bootmenu) + public function find($id, Application_Model_BootMenu $botmenu) { $result = $this->getDbTable()->find($id); if (0 == count($result)) { @@ -51,7 +51,7 @@ class Application_Model_BootMenuMapper $row = $result->current(); - $bootmenu->setID($row->bootmenuID)->setMembershipID($row->membershipID)->setTitle($row->title)->setTime($row->time); + $botmenu->setBootmenuID($row->bootmenuID)->setMembershipID($row->membershipID)->setTitle($row->title)->setTime($row->time); } public function fetchAll() @@ -61,7 +61,7 @@ class Application_Model_BootMenuMapper foreach ($resultSet as $row) { $entry = new Application_Model_BootMenu(); - $entry->setID($row->bootmenuID)->setMembershipID($row->membershipID)->setTitle($row->title)->setTime($row->time); + $entry->setBootmenuID($row->bootmenuID)->setMembershipID($row->membershipID)->setTitle($row->title)->setTime($row->time); $entries[] = $entry; } diff --git a/application/models/BootOsMapper.php b/application/models/BootOsMapper.php index 44754aa..171f2b2 100644 --- a/application/models/BootOsMapper.php +++ b/application/models/BootOsMapper.php @@ -2,7 +2,74 @@ class Application_Model_BootOsMapper { + + protected $_dbTable; + public function setDbTable($dbTable) + { + if (is_string($dbTable)) { + $dbTable = new $dbTable(); + } + if (!$dbTable instanceof Zend_Db_Table_Abstract) { + throw new Exception('Invalid table data gateway provided'); + } + + $this->_dbTable = $dbTable; + + return $this; + } + + public function getDbTable() + { + if (null === $this->_dbTable) { + $this->setDbTable('Application_Model_DbTable_Person'); + } + + return $this->_dbTable; + } + + public function save(Application_Model_BootOs $botos) + { + + $data = array('bootisoID'=> $botos->getBootisoID() ,'membershipID'=> $botos->getMembershipID() ,'groupID'=> $botos->getGroupID() ,'serialnumber'=> $botos->getSerialnumber() ,'created'=> $botos->getCreated() ,'expires'=> $botos->getExpires() ,'public'=> $botos->getPublic() ); + + if (null === ($id = $botos->getID()) ) { + unset($data['id']); + $this->getDbTable()->insert($data); + } else { + $this->getDbTable()->update($data, array('id = ?' => $id)); + } + } + + public function find($id, Application_Model_BootOs $botos) + { + $result = $this->getDbTable()->find($id); + if (0 == count($result)) { + return; + } + + $row = $result->current(); + + $botos->setBootisoID($row->bootisoID)->setMembershipID($row->membershipID)->setGroupID($row->groupID)->setSerialnumber($row->serialnumber)->setCreated($row->created)->setExpires($row->expires)->setPublic($row->public); + } + + public function fetchAll() + { + $resultSet = $this->getDbTable()->fetchAll(); + $entries = array(); + foreach ($resultSet as $row) { + $entry = new Application_Model_BootOs(); + + $entry->setBootisoID($row->bootisoID)->setMembershipID($row->membershipID)->setGroupID($row->groupID)->setSerialnumber($row->serialnumber)->setCreated($row->created)->setExpires($row->expires)->setPublic($row->public); + + $entries[] = $entry; + } + + return $entries; + } + + + } diff --git a/application/models/FilterEntriesMapper.php b/application/models/FilterEntriesMapper.php index a125bc6..bc6f8f7 100644 --- a/application/models/FilterEntriesMapper.php +++ b/application/models/FilterEntriesMapper.php @@ -2,7 +2,74 @@ class Application_Model_FilterEntriesMapper { + + protected $_dbTable; + public function setDbTable($dbTable) + { + if (is_string($dbTable)) { + $dbTable = new $dbTable(); + } + if (!$dbTable instanceof Zend_Db_Table_Abstract) { + throw new Exception('Invalid table data gateway provided'); + } + + $this->_dbTable = $dbTable; + + return $this; + } + + public function getDbTable() + { + if (null === $this->_dbTable) { + $this->setDbTable('Application_Model_DbTable_Person'); + } + + return $this->_dbTable; + } + + public function save(Application_Model_FilterEntries $filterentries) + { + + $data = array('filterID'=> $filterentries->getFilterID() ,'filtertypeID'=> $filterentries->getFiltertypeID() ,'filtervalue'=> $filterentries->getFiltervalue() ,'filtervalue2'=> $filterentries->getFiltervalue2() ); + + if (null === ($id = $filterentries->getID()) ) { + unset($data['id']); + $this->getDbTable()->insert($data); + } else { + $this->getDbTable()->update($data, array('id = ?' => $id)); + } + } + + public function find($id, Application_Model_FilterEntries $filterentries) + { + $result = $this->getDbTable()->find($id); + if (0 == count($result)) { + return; + } + + $row = $result->current(); + + $filterentries->setFilterID($row->filterID)->setFiltertypeID($row->filtertypeID)->setFiltervalue($row->filtervalue)->setFiltervalue2($row->filtervalue2); + } + + public function fetchAll() + { + $resultSet = $this->getDbTable()->fetchAll(); + $entries = array(); + foreach ($resultSet as $row) { + $entry = new Application_Model_FilterEntries(); + + $entry->setFilterID($row->filterID)->setFiltertypeID($row->filtertypeID)->setFiltervalue($row->filtervalue)->setFiltervalue2($row->filtervalue2); + + $entries[] = $entry; + } + + return $entries; + } + + + } diff --git a/application/models/GroupGroupsMapper.php b/application/models/GroupGroupsMapper.php index bf0361c..9474116 100644 --- a/application/models/GroupGroupsMapper.php +++ b/application/models/GroupGroupsMapper.php @@ -32,7 +32,7 @@ class Application_Model_GroupGroupsMapper public function save(Application_Model_GroupGroups $groupgroups) { - $data = array(); + $data = array('parentID'=> $groupgroups->getParentID() ,'groupID'=> $groupgroups->getGroupID() ); if (null === ($id = $groupgroups->getID()) ) { unset($data['id']); @@ -51,7 +51,7 @@ class Application_Model_GroupGroupsMapper $row = $result->current(); - $groupgroups; + $groupgroups->setParentID($row->parentID)->setGroupID($row->groupID); } public function fetchAll() @@ -61,7 +61,7 @@ class Application_Model_GroupGroupsMapper foreach ($resultSet as $row) { $entry = new Application_Model_GroupGroups(); - $entry; + $entry->setParentID($row->parentID)->setGroupID($row->groupID); $entries[] = $entry; } diff --git a/application/models/MembershipFiltersMapper.php b/application/models/MembershipFiltersMapper.php index 623b03b..f015c5e 100644 --- a/application/models/MembershipFiltersMapper.php +++ b/application/models/MembershipFiltersMapper.php @@ -2,7 +2,74 @@ class Application_Model_MembershipFiltersMapper { + + protected $_dbTable; + public function setDbTable($dbTable) + { + if (is_string($dbTable)) { + $dbTable = new $dbTable(); + } + if (!$dbTable instanceof Zend_Db_Table_Abstract) { + throw new Exception('Invalid table data gateway provided'); + } + + $this->_dbTable = $dbTable; + + return $this; + } + + public function getDbTable() + { + if (null === $this->_dbTable) { + $this->setDbTable('Application_Model_DbTable_Person'); + } + + return $this->_dbTable; + } + + public function save(Application_Model_MembershipFilters $membershipfilters) + { + + $data = array('membershipID'=> $membershipfilters->getMembershipID() ,'filterID'=> $membershipfilters->getFilterID() ); + + if (null === ($id = $membershipfilters->getID()) ) { + unset($data['id']); + $this->getDbTable()->insert($data); + } else { + $this->getDbTable()->update($data, array('id = ?' => $id)); + } + } + + public function find($id, Application_Model_MembershipFilters $membershipfilters) + { + $result = $this->getDbTable()->find($id); + if (0 == count($result)) { + return; + } + + $row = $result->current(); + + $membershipfilters->setMembershipID($row->membershipID)->setFilterID($row->filterID); + } + + public function fetchAll() + { + $resultSet = $this->getDbTable()->fetchAll(); + $entries = array(); + foreach ($resultSet as $row) { + $entry = new Application_Model_MembershipFilters(); + + $entry->setMembershipID($row->membershipID)->setFilterID($row->filterID); + + $entries[] = $entry; + } + + return $entries; + } + + + } diff --git a/application/models/PoolEntriesMapper.php b/application/models/PoolEntriesMapper.php index 6438881..4929a36 100644 --- a/application/models/PoolEntriesMapper.php +++ b/application/models/PoolEntriesMapper.php @@ -2,7 +2,74 @@ class Application_Model_PoolEntriesMapper { + + protected $_dbTable; + public function setDbTable($dbTable) + { + if (is_string($dbTable)) { + $dbTable = new $dbTable(); + } + if (!$dbTable instanceof Zend_Db_Table_Abstract) { + throw new Exception('Invalid table data gateway provided'); + } + + $this->_dbTable = $dbTable; + + return $this; + } + + public function getDbTable() + { + if (null === $this->_dbTable) { + $this->setDbTable('Application_Model_DbTable_Person'); + } + + return $this->_dbTable; + } + + public function save(Application_Model_PoolEntries $polentries) + { + + $data = array('poolID'=> $polentries->getPoolID() ,'clientID'=> $polentries->getClientID() ); + + if (null === ($id = $polentries->getID()) ) { + unset($data['id']); + $this->getDbTable()->insert($data); + } else { + $this->getDbTable()->update($data, array('id = ?' => $id)); + } + } + + public function find($id, Application_Model_PoolEntries $polentries) + { + $result = $this->getDbTable()->find($id); + if (0 == count($result)) { + return; + } + + $row = $result->current(); + + $polentries->setPoolID($row->poolID)->setClientID($row->clientID); + } + + public function fetchAll() + { + $resultSet = $this->getDbTable()->fetchAll(); + $entries = array(); + foreach ($resultSet as $row) { + $entry = new Application_Model_PoolEntries(); + + $entry->setPoolID($row->poolID)->setClientID($row->clientID); + + $entries[] = $entry; + } + + return $entries; + } + + + } diff --git a/application/models/PoolFiltersMapper.php b/application/models/PoolFiltersMapper.php index 2a352fd..bf631ae 100644 --- a/application/models/PoolFiltersMapper.php +++ b/application/models/PoolFiltersMapper.php @@ -2,7 +2,74 @@ class Application_Model_PoolFiltersMapper { + + protected $_dbTable; + public function setDbTable($dbTable) + { + if (is_string($dbTable)) { + $dbTable = new $dbTable(); + } + if (!$dbTable instanceof Zend_Db_Table_Abstract) { + throw new Exception('Invalid table data gateway provided'); + } + + $this->_dbTable = $dbTable; + + return $this; + } + + public function getDbTable() + { + if (null === $this->_dbTable) { + $this->setDbTable('Application_Model_DbTable_Person'); + } + + return $this->_dbTable; + } + + public function save(Application_Model_PoolFilters $polfilters) + { + + $data = array('poolID'=> $polfilters->getPoolID() ,'filterID'=> $polfilters->getFilterID() ); + + if (null === ($id = $polfilters->getID()) ) { + unset($data['id']); + $this->getDbTable()->insert($data); + } else { + $this->getDbTable()->update($data, array('id = ?' => $id)); + } + } + + public function find($id, Application_Model_PoolFilters $polfilters) + { + $result = $this->getDbTable()->find($id); + if (0 == count($result)) { + return; + } + + $row = $result->current(); + + $polfilters->setPoolID($row->poolID)->setFilterID($row->filterID); + } + + public function fetchAll() + { + $resultSet = $this->getDbTable()->fetchAll(); + $entries = array(); + foreach ($resultSet as $row) { + $entry = new Application_Model_PoolFilters(); + + $entry->setPoolID($row->poolID)->setFilterID($row->filterID); + + $entries[] = $entry; + } + + return $entries; + } + + + } diff --git a/application/models/PoolMapper.php b/application/models/PoolMapper.php index c788a18..8c32e88 100644 --- a/application/models/PoolMapper.php +++ b/application/models/PoolMapper.php @@ -32,7 +32,7 @@ class Application_Model_PoolMapper public function save(Application_Model_Pool $pol) { - $data = array('poolID'=> $pol->getID() ,'title'=> $pol->getTitle() ,'description'=> $pol->getDescription() ,'location'=> $pol->getLocation() ); + $data = array('poolID'=> $pol->getPoolID() ,'title'=> $pol->getTitle() ,'description'=> $pol->getDescription() ,'location'=> $pol->getLocation() ); if (null === ($id = $pol->getID()) ) { unset($data['id']); @@ -51,7 +51,7 @@ class Application_Model_PoolMapper $row = $result->current(); - $pol->setID($row->poolID)->setTitle($row->title)->setDescription($row->description)->setLocation($row->location); + $pol->setPoolID($row->poolID)->setTitle($row->title)->setDescription($row->description)->setLocation($row->location); } public function fetchAll() @@ -61,7 +61,7 @@ class Application_Model_PoolMapper foreach ($resultSet as $row) { $entry = new Application_Model_Pool(); - $entry->setID($row->poolID)->setTitle($row->title)->setDescription($row->description)->setLocation($row->location); + $entry->setPoolID($row->poolID)->setTitle($row->title)->setDescription($row->description)->setLocation($row->location); $entries[] = $entry; } diff --git a/application/models/RightRolesMapper.php b/application/models/RightRolesMapper.php index baaed21..4bac541 100644 --- a/application/models/RightRolesMapper.php +++ b/application/models/RightRolesMapper.php @@ -2,7 +2,74 @@ class Application_Model_RightRolesMapper { + + protected $_dbTable; + public function setDbTable($dbTable) + { + if (is_string($dbTable)) { + $dbTable = new $dbTable(); + } + if (!$dbTable instanceof Zend_Db_Table_Abstract) { + throw new Exception('Invalid table data gateway provided'); + } + + $this->_dbTable = $dbTable; + + return $this; + } + + public function getDbTable() + { + if (null === $this->_dbTable) { + $this->setDbTable('Application_Model_DbTable_Person'); + } + + return $this->_dbTable; + } + + public function save(Application_Model_RightRoles $rightroles) + { + + $data = array('roleID'=> $rightroles->getRoleID() ,'rightID'=> $rightroles->getRightID() ); + + if (null === ($id = $rightroles->getID()) ) { + unset($data['id']); + $this->getDbTable()->insert($data); + } else { + $this->getDbTable()->update($data, array('id = ?' => $id)); + } + } + + public function find($id, Application_Model_RightRoles $rightroles) + { + $result = $this->getDbTable()->find($id); + if (0 == count($result)) { + return; + } + + $row = $result->current(); + + $rightroles->setRoleID($row->roleID)->setRightID($row->rightID); + } + + public function fetchAll() + { + $resultSet = $this->getDbTable()->fetchAll(); + $entries = array(); + foreach ($resultSet as $row) { + $entry = new Application_Model_RightRoles(); + + $entry->setRoleID($row->roleID)->setRightID($row->rightID); + + $entries[] = $entry; + } + + return $entries; + } + + + } diff --git a/application/models/SessionMapper.php b/application/models/SessionMapper.php index 02fba66..098bdbd 100644 --- a/application/models/SessionMapper.php +++ b/application/models/SessionMapper.php @@ -32,7 +32,7 @@ class Application_Model_SessionMapper public function save(Application_Model_Session $sesion) { - $data = array('sessionID'=> $sesion->getID() ,'clientID'=> $sesion->getClientID() ,'bootosID'=> $sesion->getBootosID() ,'time'=> $sesion->getTime() ,'ip'=> $sesion->getIp() ,'ip6'=> $sesion->getIp6() ); + $data = array('sessionID'=> $sesion->getSessionID() ,'clientID'=> $sesion->getClientID() ,'bootosID'=> $sesion->getBootosID() ,'time'=> $sesion->getTime() ,'ip'=> $sesion->getIp() ,'ip6'=> $sesion->getIp6() ); if (null === ($id = $sesion->getID()) ) { unset($data['id']); @@ -51,7 +51,7 @@ class Application_Model_SessionMapper $row = $result->current(); - $sesion->setID($row->sessionID)->setClientID($row->clientID)->setBootosID($row->bootosID)->setTime($row->time)->setIp($row->ip)->setIp6($row->ip6); + $sesion->setSessionID($row->sessionID)->setClientID($row->clientID)->setBootosID($row->bootosID)->setTime($row->time)->setIp($row->ip)->setIp6($row->ip6); } public function fetchAll() @@ -61,7 +61,7 @@ class Application_Model_SessionMapper foreach ($resultSet as $row) { $entry = new Application_Model_Session(); - $entry->setID($row->sessionID)->setClientID($row->clientID)->setBootosID($row->bootosID)->setTime($row->time)->setIp($row->ip)->setIp6($row->ip6); + $entry->setSessionID($row->sessionID)->setClientID($row->clientID)->setBootosID($row->bootosID)->setTime($row->time)->setIp($row->ip)->setIp6($row->ip6); $entries[] = $entry; } |
