summaryrefslogtreecommitdiffstats
path: root/application/models
diff options
context:
space:
mode:
Diffstat (limited to 'application/models')
-rw-r--r--application/models/BootIso.php58
-rw-r--r--application/models/BootIsoMapper.php12
2 files changed, 49 insertions, 21 deletions
diff --git a/application/models/BootIso.php b/application/models/BootIso.php
index 0fce948..f5e2c15 100644
--- a/application/models/BootIso.php
+++ b/application/models/BootIso.php
@@ -3,6 +3,8 @@
class Application_Model_BootIso
{
protected $_bootisoID;
+ protected $_title;
+ protected $_path;
protected $_membershipID;
protected $_groupID;
protected $_serialnumber;
@@ -47,79 +49,105 @@ class Application_Model_BootIso
return $this;
}
+ public function getID()
+ {
+ return $this->_bootisoID;
+ }
+ public function setID($_bootisoID)
+ {
+ $this->_bootisoID = $_bootisoID;
+ return $this;
+ }
- public function get_membershipID()
+ public function getMembershipID()
{
return $this->_membershipID;
}
- public function set_membershipID($_membershipID)
+ public function setMembershipID($_membershipID)
{
$this->_membershipID = $_membershipID;
return $this;
}
- public function get_groupID()
+ public function getGroupID()
{
return $this->_groupID;
}
- public function set_groupID($_groupID)
+ public function setGroupID($_groupID)
{
$this->_groupID = $_groupID;
return $this;
}
-
- public function get_serialnumber()
+ public function getTitle()
+ {
+ return $this->_title;
+ }
+ public function setTitle($_title)
+ {
+ $this->_title = $_title;
+ return $this;
+ }
+ public function getPath()
+ {
+ return $this->_path;
+ }
+ public function setPath($_path)
+ {
+ $this->_path = $_path;
+ return $this;
+ }
+ public function getSerialnumber()
{
return $this->_serialnumber;
}
- public function set_serialnumber($_serialnumber)
+ public function setSerialnumber($_serialnumber)
{
$this->_serialnumber = $_serialnumber;
return $this;
}
- public function get_created()
+ public function getCreated()
{
return $this->_created;
}
- public function set_created($_created)
+ public function setCreated($_created)
{
$this->_created = $_created;
return $this;
}
- public function get_expires()
+ public function getExpires()
{
return $this->_expires;
}
- public function set_expires($_expires)
+ public function setExpires($_expires)
{
$this->_expires = $_expires;
return $this;
}
- public function get_public()
+ public function getPublic()
{
return $this->_public;
}
- public function set_public($_public)
+ public function setPublic($_public)
{
$this->_public = $_public;
return $this;
}
- public function get_bootisoID()
+ public function getBootisoID()
{
return $this->_bootisoID;
}
- public function set_bootisoID($_bootisoID)
+ public function setBootisoID($_bootisoID)
{
$this->_bootisoID = $_bootisoID;
return $this;
diff --git a/application/models/BootIsoMapper.php b/application/models/BootIsoMapper.php
index 624940b..0039677 100644
--- a/application/models/BootIsoMapper.php
+++ b/application/models/BootIsoMapper.php
@@ -32,13 +32,13 @@ class Application_Model_BootIsoMapper
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() );
+ $data = array('bootisoID'=> $botiso->getID() ,'membershipID'=> $botiso->getMembershipID() ,'title'=> $botiso->getTitle(),'path'=> $botiso->getPath() ,'groupID'=> $botiso->getGroupID() ,'serialnumber'=> $botiso->getSerialnumber() ,'created'=> $botiso->getCreated() ,'expires'=> $botiso->getExpires() ,'public'=> $botiso->getPublic() );
if (null === ($id = $botiso->getID()) ) {
- unset($data['botisoID']);
+ unset($data['bootisoID']);
$this->getDbTable()->insert($data);
} else {
- $this->getDbTable()->update($data, array('botisoID = ?' => $id));
+ $this->getDbTable()->update($data, array('bootisoID = ?' => $id));
}
}
@@ -47,7 +47,7 @@ class Application_Model_BootIsoMapper
if (null === ($id = $botiso->getID()) ) {
return;
} else {
- $this->getDbTable()->delete(array('botisoID = ?' => $id));
+ $this->getDbTable()->delete(array('bootisoID = ?' => $id));
}
}
@@ -60,7 +60,7 @@ class Application_Model_BootIsoMapper
$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);
+ $botiso->setID($row->bootisoID)->setMembershipID($row->membershipID)->setTitle($row->title)->setPath($row->path)->setGroupID($row->groupID)->setSerialnumber($row->serialnumber)->setCreated($row->created)->setExpires($row->expires)->setPublic($row->public);
}
public function fetchAll()
@@ -70,7 +70,7 @@ class Application_Model_BootIsoMapper
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);
+ $entry->setID($row->bootisoID)->setMembershipID($row->membershipID)->setTitle($row->title)->setPath($row->path)->setGroupID($row->groupID)->setSerialnumber($row->serialnumber)->setCreated($row->created)->setExpires($row->expires)->setPublic($row->public);
$entries[] = $entry;
}