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

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

Public Member Functions

 __construct ($in_parent_object, $in_service_body_object_array)
 
 SetParentObj ($in_parent_obj)
 Set the parent object of this instance. More...
 
 GetParentObj ()
 Return a reference to the parent object of this instance. More...
 
GetServiceBodiesArray ()
 Accessor -Get the service body object array. More...
 

Private Attributes

 $_local_id_parent_obj = null
 This is the parent (container) object that holds this instance. More...
 
 $_local_copy_of_array = null
 

Detailed Description

A class to hold a collection of c_comdef_service_body objects.

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

Constructor & Destructor Documentation

__construct (   $in_parent_object,
  $in_service_body_object_array 
)
Parameters
$in_parent_objectA reference to the object that "owns" this instance.
$in_service_body_object_arrayAn array of references to c_comdef_service_body objects, to be stored as local references.

Definition at line 45 of file c_comdef_service_bodies.class.php.

48  {
49  $this->SetParentObj($in_parent_object);
50 
51  foreach ($in_service_body_object_array as &$obj) {
52  // Who's yer daddy?
53  $obj->SetParentObj($this);
54  }
55  $this->_local_copy_of_array = $in_service_body_object_array;
56  }
SetParentObj($in_parent_obj)
Set the parent object of this instance.

Member Function Documentation

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 76 of file c_comdef_service_bodies.class.php.

77  {
78  // phpcs:enable PSR1.Methods.CamelCapsMethodName.NotCamelCaps
80  }
$_local_id_parent_obj
This is the parent (container) object that holds this instance.
& GetServiceBodiesArray ( )

Accessor -Get the service body object array.

Returns
a reference to an array of c_comdef_service_body objects.

Definition at line 88 of file c_comdef_service_bodies.class.php.

89  {
90  // phpcs:enable PSR1.Methods.CamelCapsMethodName.NotCamelCaps
92  }
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 62 of file c_comdef_service_bodies.class.php.

64  {
65  // phpcs:enable PSR1.Methods.CamelCapsMethodName.NotCamelCaps
66  $this->_local_id_parent_obj = null;
67  $this->_local_id_parent_obj = $in_parent_obj;
68  }

Member Data Documentation

$_local_copy_of_array = null
private

We keep a local copy of the simple array, because we can instantly access it, as opposed to having to instantiate iterators.

Definition at line 43 of file c_comdef_service_bodies.class.php.

$_local_id_parent_obj = null
private

This is the parent (container) object that holds this instance.

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


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