fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [7654]


From: Torstein
Subject: [Fmsystem-commits] [7654]
Date: Tue, 20 Sep 2011 05:46:48 +0000

Revision: 7654
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7654
Author:   vator
Date:     2011-09-20 05:46:47 +0000 (Tue, 20 Sep 2011)
Log Message:
-----------


Added Paths:
-----------
    trunk/controller/inc/model/class.control_area.inc.php

Copied: trunk/controller/inc/model/class.control_area.inc.php (from rev 7645, 
trunk/controller/inc/model/class.control_type.inc.php)
===================================================================
--- trunk/controller/inc/model/class.control_area.inc.php                       
        (rev 0)
+++ trunk/controller/inc/model/class.control_area.inc.php       2011-09-20 
05:46:47 UTC (rev 7654)
@@ -0,0 +1,50 @@
+<?php
+       include_class('controller', 'model', 'inc/model/');
+       
+       class controller_control_area extends controller_model
+       {
+               public static $so;
+
+               protected $id;
+               protected $title;
+               
+               /**
+                * 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; }
+                       
+               /**
+                * 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_control_area');
+                       }
+                       
+                       return self::$so;
+               }
+       }
+?>
\ No newline at end of file




reply via email to

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