fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [7610]


From: Torstein
Subject: [Fmsystem-commits] [7610]
Date: Thu, 15 Sep 2011 13:12:13 +0000

Revision: 7610
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7610
Author:   vator
Date:     2011-09-15 13:12:12 +0000 (Thu, 15 Sep 2011)
Log Message:
-----------


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

Modified: trunk/controller/inc/model/class.control_item.inc.php
===================================================================
--- trunk/controller/inc/model/class.control_item.inc.php       2011-09-15 
12:53:48 UTC (rev 7609)
+++ trunk/controller/inc/model/class.control_item.inc.php       2011-09-15 
13:12:12 UTC (rev 7610)
@@ -8,8 +8,8 @@
                protected $id;
                protected $title;
                protected $required;
-               protected $what_to_desc;
-               protected $how_to_desc;
+               protected $what_to_do;
+               protected $how_to_do;
                protected $control_group_id;
                protected $control_type_id;
                
@@ -45,19 +45,19 @@
                
                public function get_required() { return $this->required; }
                
-               public function set_what_to_desc($what_to_desc)
+               public function set_what_to_do($what_to_do)
                {
-                       $this->what_to_desc = $what_to_desc;
+                       $this->what_to_do = $what_to_do;
                }
                
-               public function get_what_to_desc() { return 
$this->what_to_desc; }
+               public function get_what_to_do() { return $this->what_to_do; }
                
-               public function set_how_to_desc($how_to_desc)
+               public function set_how_to_do($how_to_do)
                {
-                       $this->how_to_desc = $how_to_desc;
+                       $this->how_to_do = $how_to_do;
                }
                
-               public function get_how_to_desc() { return $this->how_to_desc; }
+               public function get_how_to_do() { return $this->how_to_do; }
                
                public function set_control_group_id($control_group_id)
                {
@@ -87,5 +87,19 @@
                        
                        return self::$so;
                }
+               
+                public function serialize()
+                {
+                       $result = array();
+                       $result['id'] = $this->get_id();
+                       $result['title'] = $this->get_title();
+                       $result['required'] = $this->get_required();
+                       $result['what_to_do'] = $this->get_what_to_do();
+                       $result['how_to_do'] = $this->get_how_to_do();
+                       $result['control_group_id'] = 
$this->get_control_group_id();
+                       $result['control_type_id'] = 
$this->get_control_type_id();
+                                               
+                       return $result;
+               }
        }
 ?>
\ No newline at end of file




reply via email to

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