workorderpage.php File Reference


Variables

 $strID = NULL
 $dcmPage = new WorkorderPage(_('Workorder Details'))
 $options = &PEAR::getStaticProperty('DB_DataObject', 'options')
 $config = parse_ini_file('conf/dataobject.ini', TRUE)
 $options = $config['DB_DataObject']
 $_DB_DATAOBJECT_FORMBUILDER ['CONFIG']
 $options ['database']
 $objWorkorder = DB_DataObject::factory('Workorder')
 $objOriginalWorkorder = $objWorkorder
 $objWorkorderBuilder = DB_DataObject_FormBuilder::create($objWorkorder)
 $objWorkorderForm = $objWorkorderBuilder->getForm()
$objHistory recordoid = $objWorkorder->id
 $numHistoryRecordCount = $objHistory->count()
 $arreActions
 $arrCompletedActions
 $objHistory = DB_DataObject::factory('History')
$objHistory tablename = 'workorder'
$objHistory recordoid = $objWorkorder->id
 $objHistoryTable = $objHistory->getTable(&$objWorkorderForm)

Variable Documentation

$_DB_DATAOBJECT_FORMBUILDER['CONFIG']
 

Initial value:

  $config['DB_DataObject_FormBuilder']
Todo:
The following statement can be removed as of FormBuilder 0.17.2

$arrCompletedActions
 

Initial value:

 array("Maintenance"=>"maintenance.php?".
       "PHPSESSID=".session_id()."&action=viewworkorder&id=",
       "Resource"=>"resource.php?table=Staff&PHPSESSID=".session_id().
       "&action=select_workorder&WorkorderID="
    )

$arreActions
 

Initial value:

 array('Map' =>
       basename(__FILE__).'?PHPSESSID='.
       session_id().'&action=map&WorkorderID=',
       'View' => 'workorderpage.php?'.
       'PHPSESSID='.session_id().'&action=view&id=',
       'Print' => 'print_workorder.php?PHPSESSID='.session_id().
       '&action=print&WorkorderID='
     )
Todo:
Complete links.

$config = parse_ini_file('conf/dataobject.ini', TRUE)
 

$dcmPage = new WorkorderPage(_('Workorder Details'))
 

$numHistoryRecordCount = $objHistory->count()
 

$objHistory = DB_DataObject::factory('History')
 

$objHistoryTable = $objHistory->getTable(&$objWorkorderForm)
 

$objOriginalWorkorder = $objWorkorder
 

$objWorkorder = DB_DataObject::factory('Workorder')
 

$objWorkorderBuilder = DB_DataObject_FormBuilder::create($objWorkorder)
 

Todo:
Use DcmmsDriver, SelectCombo classes.

$objWorkorderForm = $objWorkorderBuilder->getForm()
 

$options['database']
 

Initial value:

 'pgsql://'.$_SESSION['UserName'].':'.
  $_SESSION['Password'].'@'.'localhost/'.$_SESSION['strDataBase']

$options = $config['DB_DataObject']
 

$options = &PEAR::getStaticProperty('DB_DataObject', 'options')
 

$strID = NULL
 

Check for the ID

$objHistory recordoid = $objWorkorder->id
 

$objHistory recordoid = $objWorkorder->id
 

$objHistory tablename = 'workorder'
 


Generated on Sat Jul 1 21:19:27 2006 for DCMMS by  doxygen 1.4.6-NO