[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [7838]
From: |
Torstein |
Subject: |
[Fmsystem-commits] [7838] |
Date: |
Fri, 07 Oct 2011 06:35:41 +0000 |
Revision: 7838
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7838
Author: vator
Date: 2011-10-07 06:35:40 +0000 (Fri, 07 Oct 2011)
Log Message:
-----------
Modified Paths:
--------------
trunk/controller/inc/model/class.control.inc.php
Modified: trunk/controller/inc/model/class.control.inc.php
===================================================================
--- trunk/controller/inc/model/class.control.inc.php 2011-10-07 06:34:29 UTC
(rev 7837)
+++ trunk/controller/inc/model/class.control.inc.php 2011-10-07 06:35:40 UTC
(rev 7838)
@@ -21,7 +21,15 @@
protected $equipment_type_id;
protected $location_code;
protected $control_area_id;
-
+
+ /*
+ var $validate = array(
+ 'title' => array(
+ 'rule' => array('minLength', 0),
+ 'message' => 'Kontrollen må ha en tittel'
+ ));
+ */
+
/**
* 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.
@@ -166,6 +174,16 @@
return self::$so;
}
+ public function populate()
+ {
+
$this->set_title(phpgw::get_var('title','string'));
+
$this->set_description(phpgw::get_var('description','html'));
+ $this->set_start_date(strtotime(
phpgw::get_var('start_date_hidden','string') ));
+ $this->set_end_date(strtotime(
phpgw::get_var('end_date_hidden','string') ));
+
$this->set_procedure_id(phpgw::get_var('procedure_id','int'));
+
$this->set_control_area_id(phpgw::get_var('control_area_id','int'));
+ }
+
public function serialize()
{
return array(
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [7838],
Torstein <=