DataObject_Maintenance Class Reference
Inheritance diagram for DataObject_Maintenance:
[legend]Collaboration diagram for DataObject_Maintenance:
[legend]List of all members.
Detailed Description
DCMMS -- DC Maintenance Management System
Maintenance.php - Maintenance DataObject class.
Copyright (C) 2004 - 2006 DORSCH Consult
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Member Function Documentation
DataObject_Maintenance::__clone |
( |
|
) |
|
|
DataObject_Maintenance::find |
( |
$ |
n = false |
) |
|
|
|
Find results, give precedence to x and y values from HTTP request. - Parameters:
-
| boolean | $n Fetch first result. |
- Returns:
- int number of records found.
- Todo:
- Update query whenever Maintenance table structure changes.
|
DataObject_Maintenance::getXyFromRequest |
( |
|
) |
|
|
|
Get x and y values from the request and store them as attributes. - Returns:
- Nothing.
|
DataObject_Maintenance::postGenerateForm |
( |
&$ |
form |
) |
|
|
|
Add validation rules and default values to form and fix Arabic layout. - Parameters:
-
| &$form | is the HTML Quickform to which the rules should be added. |
- Returns:
- Nothing.
|
DataObject_Maintenance::preGenerateForm |
( |
&$ |
fb |
) |
|
|
|
Set the internationalized form labels. |
DataObject_Maintenance::staticGet |
( |
$ |
k, |
|
|
$ |
v = NULL |
|
) |
|
|
DataObject_Maintenance::table |
( |
|
) |
|
|
|
Get an associative array of table columns (key=>type). Add x and y as virtual fields. - Returns:
- array Associative array of table columns.
|
DataObject_Maintenance::update |
( |
$ |
do = false |
) |
|
|
|
Update database with current object attributes. Handle virtual fields. - Parameters:
-
| object | $do (optional) used to update only changed items. |
- Returns:
- int rows affected or false on failure.
|
Member Data Documentation
DataObject_Maintenance::$__table = 'maintenance' |
|
DataObject_Maintenance::$cause |
|
DataObject_Maintenance::$completiondate |
|
DataObject_Maintenance::$diameter1 |
|
DataObject_Maintenance::$diameter2 |
|
DataObject_Maintenance::$fb_addFormHeader = false |
|
DataObject_Maintenance::$fb_fieldAttributes |
|
|
Initial value: array('completiondate' => array('size' => 19),
'startdate' => array('size' => 19))
Field attributes like maximum length. |
DataObject_Maintenance::$fb_fieldsToRender |
|
|
Initial value: array('diameter1', 'subtype', 'diameter2', 'material1',
'material2', 'cause', 'startdate', 'note',
'leaklocation', 'team', 'completiondate', 'status', 'x', 'y')
Fields that should be rendered by FormBuilder. |
DataObject_Maintenance::$fb_preDefOrder |
|
|
Initial value: array('subtype', 'diameter1', 'diameter2', 'material1',
'material2', 'cause', 'leaklocation',
'team', 'startdate', 'completiondate', 'note', 'status')
Order of fields in the form. |
DataObject_Maintenance::$fb_selectAddEmpty = array() |
|
DataObject_Maintenance::$fb_strFields = array('team', 'leaklocation') |
|
DataObject_Maintenance::$fb_submitText = 'Submit' |
|
|
Text of the submit button (to be localized). |
DataObject_Maintenance::$fb_textFields = array('note') |
|
DataObject_Maintenance::$fb_userEditableFields |
|
|
Initial value: array('diameter1', 'subtype', 'startdate',
'diameter2', 'material1', 'note', 'team', 'material2', 'cause',
'leaklocation','completiondate', 'status')
Form fields to be editable by the user. |
DataObject_Maintenance::$id |
|
DataObject_Maintenance::$leaklocation |
|
DataObject_Maintenance::$material1 |
|
DataObject_Maintenance::$material2 |
|
DataObject_Maintenance::$note |
|
DataObject_Maintenance::$shape |
|
DataObject_Maintenance::$startdate |
|
DataObject_Maintenance::$status |
|
DataObject_Maintenance::$subtype |
|
DataObject_Maintenance::$team |
|
The documentation for this class was generated from the following file:
Generated on Sat Jul 1 21:19:33 2006 for DCMMS by
1.4.6-NO