Perforce Chronicle 2012.2/486814
API Documentation
|
This is the History grid options form. More...
Public Member Functions | |
getChanges () | |
Return the list of changes for the record that has been set for this form (or null if no record has been set). | |
getRecord () | |
Return record the form is constructed for. | |
setRecord (P4Cms_Record $record=null) | |
Set record for this form. | |
Protected Attributes | |
$_changes = null | |
$_record = null |
This is the History grid options form.
History_Form_HistoryGridOptions::getChanges | ( | ) |
Return the list of changes for the record that has been set for this form (or null if no record has been set).
List with changes is stored in memory until the record is changed or reset.
{ if ($this->_changes === null && $this->_record !== null) { $this->_changes = $this->_record->toP4File()->getChanges(); } return $this->_changes; }
History_Form_HistoryGridOptions::getRecord | ( | ) |
Return record the form is constructed for.
{
return $this->_record;
}
History_Form_HistoryGridOptions::setRecord | ( | P4Cms_Record $ | record = null | ) |
Set record for this form.
P4Cms_Record | $record | record the form is constructed for. |
{
$this->_record = $record;
// reset changes to force re-generating list of changes at next getChanges() call
$this->_changes = null;
}
History_Form_HistoryGridOptions::$_changes = null [protected] |
History_Form_HistoryGridOptions::$_record = null [protected] |