summaryrefslogtreecommitdiffstats
path: root/application/models
diff options
context:
space:
mode:
authormichael pereira2011-04-21 15:55:59 +0200
committermichael pereira2011-04-21 15:55:59 +0200
commit4d141b993337331b61945cc02c43cb15d89714e9 (patch)
tree38e42801af6fee086771eca48ff44d2b668f1986 /application/models
parentconfig fix (diff)
downloadpbs2-4d141b993337331b61945cc02c43cb15d89714e9.tar.gz
pbs2-4d141b993337331b61945cc02c43cb15d89714e9.tar.xz
pbs2-4d141b993337331b61945cc02c43cb15d89714e9.zip
Preboot gefixt
Diffstat (limited to 'application/models')
-rw-r--r--application/models/PreBoot.php23
-rw-r--r--application/models/PreBootMapper.php8
2 files changed, 15 insertions, 16 deletions
diff --git a/application/models/PreBoot.php b/application/models/PreBoot.php
index 57a622d..34b4346 100644
--- a/application/models/PreBoot.php
+++ b/application/models/PreBoot.php
@@ -14,11 +14,12 @@ class Application_Model_PreBoot
{
protected $_prebootID;
protected $_title;
- protected $_path_preboot;
protected $_membershipID;
protected $_groupID;
protected $_source;
protected $_created;
+ protected $_description;
+
public function __construct(array $options = null)
@@ -98,16 +99,6 @@ class Application_Model_PreBoot
$this->_title = $_title;
return $this;
}
- public function getPath_preboot()
- {
- return $this->_path_preboot;
- }
-
- public function setPath_preboot($_path_preboot)
- {
- $this->_path_preboot = $_path_preboot;
- return $this;
- }
public function getCreated()
{
return $this->_created;
@@ -128,7 +119,15 @@ class Application_Model_PreBoot
$this->_source = $_source;
return $this;
}
-
+ public function getDescription()
+ {
+ return $this->_description;
+ }
+ public function setDescription($_description)
+ {
+ $this->_description = $_description;
+ return $this;
+ }
/**
* Returns current data as associative array using ReflectionClass
*
diff --git a/application/models/PreBootMapper.php b/application/models/PreBootMapper.php
index 564fd49..b7b4104 100644
--- a/application/models/PreBootMapper.php
+++ b/application/models/PreBootMapper.php
@@ -86,7 +86,7 @@ class Application_Model_PreBootMapper
public function save(Application_Model_PreBoot $preboot)
{
- $data = array('prebootID'=> $preboot->getID() ,'membershipID'=> $preboot->getMembershipID() ,'title'=> $preboot->getTitle() ,'path_preboot'=> $preboot->getPath_preboot() ,'groupID'=> $preboot->getGroupID(), 'created' => $preboot->getCreated(), 'source' => $preboot->getSource() );
+ $data = array('prebootID'=> $preboot->getID() ,'membershipID'=> $preboot->getMembershipID() ,'title'=> $preboot->getTitle() ,'groupID'=> $preboot->getGroupID(), 'created' => $preboot->getCreated(), 'source' => $preboot->getSource(), 'description' => $preboot->getDescription());
if (null === ($id = $preboot->getID()) ) {
unset($data['prebootID']);
@@ -117,10 +117,10 @@ class Application_Model_PreBootMapper
if($preboot == null){
$preboot = new Application_Model_PreBoot();
- $preboot->setID($row->prebootID)->setMembershipID($row->membershipID)->setTitle($row->title)->setPath_preboot($row->path_preboot)->setGroupID($row->groupID)->setSource($row->source)->setCreated($row->created);
+ $preboot->setID($row->prebootID)->setMembershipID($row->membershipID)->setTitle($row->title)->setGroupID($row->groupID)->setSource($row->source)->setCreated($row->created)->setDescription($row->description);
return $preboot;
}else{
- $preboot->setID($row->prebootID)->setMembershipID($row->membershipID)->setTitle($row->title)->setPath_preboot($row->path_preboot)->setGroupID($row->groupID)->setSource($row->source)->setCreated($row->created);
+ $preboot->setID($row->prebootID)->setMembershipID($row->membershipID)->setTitle($row->title)->setGroupID($row->groupID)->setSource($row->source)->setCreated($row->created)->setDescription($row->description);
}
}
@@ -131,7 +131,7 @@ class Application_Model_PreBootMapper
foreach ($resultSet as $row) {
$entry = new Application_Model_PreBoot();
- $entry->setID($row->prebootID)->setMembershipID($row->membershipID)->setTitle($row->title)->setPath_preboot($row->path_preboot)->setGroupID($row->groupID)->setSource($row->source)->setCreated($row->created);
+ $entry->setID($row->prebootID)->setMembershipID($row->membershipID)->setTitle($row->title)->setGroupID($row->groupID)->setSource($row->source)->setCreated($row->created)->setDescription($row->description);
$entries[] = $entry;
}