summaryrefslogtreecommitdiffstats
path: root/application/forms/Session.php
diff options
context:
space:
mode:
authorSimon2011-03-14 13:18:21 +0100
committerSimon2011-03-14 13:18:21 +0100
commitc4ab2b2f9a88409fbd78325a4d2c19fcb4ed340c (patch)
treea2e6fe7eaa589ad71b4df87d74809c03ff80e403 /application/forms/Session.php
parentResource an alphasession angepasst (diff)
downloadpbs2-c4ab2b2f9a88409fbd78325a4d2c19fcb4ed340c.tar.gz
pbs2-c4ab2b2f9a88409fbd78325a4d2c19fcb4ed340c.tar.xz
pbs2-c4ab2b2f9a88409fbd78325a4d2c19fcb4ed340c.zip
Membership in Session eingefügt, Filtertypes nur einmal per Script einfügen, auskommentierten Code entfernt
Diffstat (limited to 'application/forms/Session.php')
-rw-r--r--application/forms/Session.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/application/forms/Session.php b/application/forms/Session.php
index d3e0c3f..8603f75 100644
--- a/application/forms/Session.php
+++ b/application/forms/Session.php
@@ -7,6 +7,7 @@ class Application_Form_Session extends Zend_Form
private $bootos;
private $bootisos;
private $bootmenuentries;
+ private $memberships;
public function init()
{
@@ -66,6 +67,17 @@ class Application_Form_Session extends Zend_Form
}
$bootisofield->setRegisterInArrayValidator(false);
$this->addElement($bootisofield);
+
+ $membershipfield = $this->createElement('select','membershipID');
+ $membershipfield ->setLabel('Membership:');
+ $membershipfield ->addMultiOption('','');
+ if(count($this->memberships)>0){
+ foreach($this->memberships as $id => $g){
+ $membershipfield->addMultiOption($g->getID(), $g->getPersonID());
+ }
+ }
+ $membershipfield->setRegisterInArrayValidator(false);
+ $this->addElement($membershipfield);
$this->addElement('text', 'time', array(
'filters' => array('StringTrim'),
@@ -114,6 +126,9 @@ $this->addElement('text', 'ip6', array(
function setBootmenuentries($v){
$this->bootmenuentries = $v;
}
+ function setMemberships($v){
+ $this->memberships = $v;
+ }
private $buttontext = 'Save';
function setButtontext($v){
$this->buttontext = $v;