[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [7555] Added new model classes to module controller
From: |
Torstein |
Subject: |
[Fmsystem-commits] [7555] Added new model classes to module controller |
Date: |
Mon, 05 Sep 2011 07:08:02 +0000 |
Revision: 7555
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7555
Author: vator
Date: 2011-09-05 07:08:01 +0000 (Mon, 05 Sep 2011)
Log Message:
-----------
Added new model classes to module controller
Modified Paths:
--------------
trunk/controller/inc/model/class.check_item.inc.php
Added Paths:
-----------
trunk/controller/inc/model/class.check_list.inc.php
trunk/controller/inc/model/class.control_group.inc.php
trunk/controller/inc/model/class.control_item.inc.php
trunk/controller/inc/model/class.control_item_list.inc.php
Modified: trunk/controller/inc/model/class.check_item.inc.php
===================================================================
--- trunk/controller/inc/model/class.check_item.inc.php 2011-09-05 06:37:00 UTC
(rev 7554)
+++ trunk/controller/inc/model/class.check_item.inc.php 2011-09-05 07:08:01 UTC
(rev 7555)
@@ -4,14 +4,11 @@
class controller_check_item extends controller_model
{
public static $so;
-
+
protected $id;
- protected $title;
- protected $required;
- protected $what_to_desc;
- protected $how_to_desc;
- protected $control_group_id;
- protected $control_type_id;
+ protected $control_item_id;
+ protected $status;
+ protected $check_list_id;
/**
* Constructor. Takes an optional ID. If a contract is
created from outside
@@ -31,49 +28,28 @@
public function get_id() { return $this->id; }
- public function set_title($title)
+ public function set_control_item_id($control_item_id)
{
- $this->title = $title;
+ $this->control_item_id = $control_item_id;
}
- public function get_title() { return $this->title; }
-
- public function set_required($required)
+ public function get_control_item_id() { return
$this->control_item_id; }
+
+ public function set_status($status)
{
- $this->required = $required;
+ $this->status = $status;
}
- public function get_required() { return $this->required; }
+ public function get_status() { return $this->status; }
- public function set_what_to_desc($what_to_desc)
+ public function set_check_list_id($check_list_id)
{
- $this->what_to_desc = $what_to_desc;
+ $this->check_list_id = $check_list_id;
}
- public function get_what_to_desc() { return
$this->what_to_desc; }
-
- public function set_how_to_desc($how_to_desc)
- {
- $this->how_to_desc = $how_to_desc;
- }
-
- public function get_how_to_desc() { return $this->how_to_desc; }
-
- public function set_control_group_id($control_group_id)
- {
- $this->control_group_id = $control_group_id;
- }
-
- public function get_control_group_id() { return
$this->control_group_id; }
-
- public function set_control_type_id($control_type_id)
- {
- $this->control_type_id = $control_type_id;
- }
-
- public function get_control_type_id() { return
$this->control_type_id; }
-
+ public function get_check_list_id() { return
$this->check_list_id; }
+
/**
* Get a static reference to the storage object associated with
this model object
*
Added: trunk/controller/inc/model/class.check_list.inc.php
===================================================================
--- trunk/controller/inc/model/class.check_list.inc.php
(rev 0)
+++ trunk/controller/inc/model/class.check_list.inc.php 2011-09-05 07:08:01 UTC
(rev 7555)
@@ -0,0 +1,70 @@
+<?php
+ include_class('controller', 'model', 'inc/model/');
+
+ class controller_check_item extends controller_model
+ {
+ public static $so;
+
+ protected $id;
+ protected $control_id;
+ protected $check_list_id;
+ protected $status;
+ protected $comment;
+ protected $deadline;
+
+ /**
+ * Constructor. Takes an optional ID. If a contract is
created from outside
+ * the database the ID should be empty so the database can add
one according to its logic.
+ *
+ * @param int $id the id of this composite
+ */
+ public function __construct(int $id = null)
+ {
+ $this->id = (int)$id;
+ }
+
+ public function set_id($id)
+ {
+ $this->id = $id;
+ }
+
+ public function get_id() { return $this->id; }
+
+ public function set_control_id($control_id)
+ {
+ $this->control_id = $control_id;
+ }
+
+ public function get_control_id() { return $this->control_id; }
+
+ public function set_check_list_id($check_list_id)
+ {
+ $this->check_list_id = $check_list_id;
+ }
+
+ public function get_check_list_id() { return
$this->check_list_id; }
+
+ public function set_status($status)
+ {
+ $this->status = $status;
+ }
+
+ public function get_status() { return $this->status; }
+
+ public function set_comment($comment)
+ {
+ $this->comment = $comment;
+ }
+
+ public function get_comment() { return $this->comment; }
+
+ public function set_deadline($deadline)
+ {
+ $this->deadline = $deadline;
+ }
+
+ public function get_deadline() { return $this->deadline; }
+
+
+ }
+?>
\ No newline at end of file
Added: trunk/controller/inc/model/class.control_group.inc.php
===================================================================
--- trunk/controller/inc/model/class.control_group.inc.php
(rev 0)
+++ trunk/controller/inc/model/class.control_group.inc.php 2011-09-05
07:08:01 UTC (rev 7555)
@@ -0,0 +1,50 @@
+<?php
+ include_class('controller', 'model', 'inc/model/');
+
+ class controller_check_item extends controller_model
+ {
+ public static $so;
+
+ protected $id;
+ protected $group_name;
+
+ /**
+ * Constructor. Takes an optional ID. If a contract is
created from outside
+ * the database the ID should be empty so the database can add
one according to its logic.
+ *
+ * @param int $id the id of this composite
+ */
+ public function __construct(int $id = null)
+ {
+ $this->id = (int)$id;
+ }
+
+ public function set_id($id)
+ {
+ $this->id = $id;
+ }
+
+ public function get_id() { return $this->id; }
+
+ public function set_control_group($control_group)
+ {
+ $this->control_group = $control_group;
+ }
+
+ public function get_control_group(){ return
$this->control_group; }
+
+ /**
+ * Get a static reference to the storage object associated with
this model object
+ *
+ * @return the storage object
+ */
+ public static function get_so()
+ {
+ if (self::$so == null) {
+ self::$so =
CreateObject('controller_check_item');
+ }
+
+ return self::$so;
+ }
+ }
+?>
\ No newline at end of file
Added: trunk/controller/inc/model/class.control_item.inc.php
===================================================================
--- trunk/controller/inc/model/class.control_item.inc.php
(rev 0)
+++ trunk/controller/inc/model/class.control_item.inc.php 2011-09-05
07:08:01 UTC (rev 7555)
@@ -0,0 +1,91 @@
+<?php
+ include_class('controller', 'model', 'inc/model/');
+
+ class controller_control_item extends controller_model
+ {
+ public static $so;
+
+ protected $id;
+ protected $title;
+ protected $required;
+ protected $what_to_desc;
+ protected $how_to_desc;
+ protected $control_group_id;
+ protected $control_type_id;
+
+ /**
+ * Constructor. Takes an optional ID. If a contract is
created from outside
+ * the database the ID should be empty so the database can add
one according to its logic.
+ *
+ * @param int $id the id of this composite
+ */
+ public function __construct(int $id = null)
+ {
+ $this->id = (int)$id;
+ }
+
+ public function set_id($id)
+ {
+ $this->id = $id;
+ }
+
+ public function get_id() { return $this->id; }
+
+ public function set_title($title)
+ {
+ $this->title = $title;
+ }
+
+ public function get_title() { return $this->title; }
+
+ public function set_required($required)
+ {
+ $this->required = $required;
+ }
+
+ public function get_required() { return $this->required; }
+
+ public function set_what_to_desc($what_to_desc)
+ {
+ $this->what_to_desc = $what_to_desc;
+ }
+
+ public function get_what_to_desc() { return
$this->what_to_desc; }
+
+ public function set_how_to_desc($how_to_desc)
+ {
+ $this->how_to_desc = $how_to_desc;
+ }
+
+ public function get_how_to_desc() { return $this->how_to_desc; }
+
+ public function set_control_group_id($control_group_id)
+ {
+ $this->control_group_id = $control_group_id;
+ }
+
+ public function get_control_group_id() { return
$this->control_group_id; }
+
+ public function set_control_type_id($control_type_id)
+ {
+ $this->control_type_id = $control_type_id;
+ }
+
+ public function get_control_type_id() { return
$this->control_type_id; }
+
+
+ /**
+ * Get a static reference to the storage object associated with
this model object
+ *
+ * @return the storage object
+ */
+ public static function get_so()
+ {
+ if (self::$so == null) {
+ self::$so =
CreateObject('controller.sopurpose');
+ }
+
+ return self::$so;
+ }
+ }
+?>
\ No newline at end of file
Added: trunk/controller/inc/model/class.control_item_list.inc.php
===================================================================
--- trunk/controller/inc/model/class.control_item_list.inc.php
(rev 0)
+++ trunk/controller/inc/model/class.control_item_list.inc.php 2011-09-05
07:08:01 UTC (rev 7555)
@@ -0,0 +1,58 @@
+<?php
+ include_class('controller', 'model', 'inc/model/');
+
+ class controller_control_item extends controller_model
+ {
+ public static $so;
+
+ protected $id;
+ protected $control_id;
+ protected $control_item_id;
+
+ /**
+ * Constructor. Takes an optional ID. If a contract is
created from outside
+ * the database the ID should be empty so the database can add
one according to its logic.
+ *
+ * @param int $id the id of this composite
+ */
+ public function __construct(int $id = null)
+ {
+ $this->id = (int)$id;
+ }
+
+ public function set_id($id)
+ {
+ $this->id = $id;
+ }
+
+ public function get_id() { return $this->id; }
+
+ public function set_control_id($control_id)
+ {
+ $this->control_id = $control_id;
+ }
+
+ public function get_control_id() { return $this->control_id; }
+
+ public function set_control_item_id($control_item_id)
+ {
+ $this->control_item_id = $control_item_id;
+ }
+
+ public function get_control_item_id() { return
$this->control_item_id; }
+
+ /**
+ * Get a static reference to the storage object associated with
this model object
+ *
+ * @return the storage object
+ */
+ public static function get_so()
+ {
+ if (self::$so == null) {
+ self::$so =
CreateObject('controller.sopurpose');
+ }
+
+ return self::$so;
+ }
+ }
+?>
\ No newline at end of file
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [7555] Added new model classes to module controller,
Torstein <=