BMLT Root Server
Public Member Functions | Private Attributes | List of all members
c_comdef_changes Class Reference

A class to hold a collection of c_comdef_change objects. More...

Public Member Functions

 __construct ($in_parent_object, $in_change_data)
 
GetChangesObjects ()
 Accessor. Get references to the changes objects. More...
 
 SetParentObj ($in_parent_obj)
 Set the parent object of this instance. More...
 
 GetParentObj ()
 Return a reference to the parent object of this instance. More...
 

Private Attributes

 $_local_id_parent_obj = null
 A reference to the "parent" object for this instance. More...
 
 $_changes_objects = null
 An array of new c_comdef_change objects that comprises the content. More...
 

Detailed Description

A class to hold a collection of c_comdef_change objects.

Definition at line 32 of file c_comdef_changes.class.php.

Constructor & Destructor Documentation

__construct (   $in_parent_object,
  $in_change_data 
)
Parameters
$in_parent_objectA reference to the object that "owns" this instance.
$in_change_dataAn array of data for the changes to be instantiated.

Definition at line 41 of file c_comdef_changes.class.php.

44  {
45  $this->SetParentObj($in_parent_object);
46 
47  if (is_array($in_change_data) && count($in_change_data)) {
48  $count = 0;
49  foreach ($in_change_data as $row) {
50  $this->_changes_objects[$count] = null;
51  $date_ar = explode(" ", $row['change_date']);
52  $date_a = explode("-", $date_ar[0]);
53  $date_b = explode(":", $date_ar[1]);
54  $date = mktime($date_b[0], $date_b[1], $date_b[2], $date_a[1], $date_a[2], $date_a[0]);
55  $this->_changes_objects[$count++] = new c_comdef_change($this, $row['change_type_enum'], $row['user_id_bigint'], $row['service_body_id_bigint'], $row['before_object'], $row['after_object'], $row['object_class_string'], $row['before_id_bigint'], $row['after_id_bigint'], $row['before_lang_enum'], $row['after_lang_enum'], $row['id_bigint'], $row['change_name_string'], $row['change_description_text'], $row['lang_enum'], $date);
56  }
57  }
58  }
SetParentObj($in_parent_obj)
Set the parent object of this instance.
A Class for Change Record Objects.

Member Function Documentation

& GetChangesObjects ( )

Accessor. Get references to the changes objects.

Returns
a reference to an array of c_comdef_changes objects.

Definition at line 66 of file c_comdef_changes.class.php.

67  {
68  // phpcs:enable PSR1.Methods.CamelCapsMethodName.NotCamelCaps
70  }
$_changes_objects
An array of new c_comdef_change objects that comprises the content.
GetParentObj ( )

Return a reference to the parent object of this instance.

Returns
a reference to the parent instance of the object.

Implements i_comdef_has_parent.

Definition at line 90 of file c_comdef_changes.class.php.

91  {
92  // phpcs:enable PSR1.Methods.CamelCapsMethodName.NotCamelCaps
94  }
$_local_id_parent_obj
A reference to the "parent" object for this instance.
SetParentObj (   $in_parent_obj)

Set the parent object of this instance.

Parameters
$in_parent_objA reference to the parent object.

Implements i_comdef_has_parent.

Definition at line 76 of file c_comdef_changes.class.php.

78  {
79  // phpcs:enable PSR1.Methods.CamelCapsMethodName.NotCamelCaps
80  $this->_local_id_parent_obj = null;
81  $this->_local_id_parent_obj = $in_parent_obj;
82  }

Member Data Documentation

$_changes_objects = null
private

An array of new c_comdef_change objects that comprises the content.

Definition at line 39 of file c_comdef_changes.class.php.

$_local_id_parent_obj = null
private

A reference to the "parent" object for this instance.

Definition at line 37 of file c_comdef_changes.class.php.


The documentation for this class was generated from the following file: