fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [7703]


From: Torstein
Subject: [Fmsystem-commits] [7703]
Date: Fri, 23 Sep 2011 05:59:02 +0000

Revision: 7703
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7703
Author:   vator
Date:     2011-09-23 05:59:02 +0000 (Fri, 23 Sep 2011)
Log Message:
-----------


Modified Paths:
--------------
    trunk/controller/inc/model/class.control_group.inc.php

Modified: trunk/controller/inc/model/class.control_group.inc.php
===================================================================
--- trunk/controller/inc/model/class.control_group.inc.php      2011-09-23 
05:58:46 UTC (rev 7702)
+++ trunk/controller/inc/model/class.control_group.inc.php      2011-09-23 
05:59:02 UTC (rev 7703)
@@ -7,6 +7,8 @@
 
                protected $id;
                protected $group_name;
+               protected $procedure_id;
+               protected $control_area_id;
                
                /**
                 * Constructor.  Takes an optional ID.  If a contract is 
created from outside
@@ -32,7 +34,32 @@
                }
                
                public function get_group_name(){ return $this->group_name; }
+               
+               public function set_procedure_id($procedure_id)
+               {
+                       $this->procedure_id = $procedure_id;
+               }
+               
+               public function get_procedure_id(){ return $this->procedure_id; 
}
+               
+               public function set_control_area_id($control_area_id)
+               {
+                       $this->control_area_id = $control_area_id;
+               }
+               
+               public function get_control_area_id(){ return 
$this->control_area_id; }
+
+               public function serialize()
+               {
+                       $result = array();
+                       $result['id'] = $this->get_id();
+                       $result['group_name'] = $this->get_group_name();
+                       $result['procedure_id'] = $this->get_procedure_id();
+                       $result['control_area_id'] = 
$this->get_control_area_id();
                        
+                       return $result;
+               }
+               
                /**
                 * Get a static reference to the storage object associated with 
this model object
                 * 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]