/**
* Adds the given instance to list group and sub group
*
- * @param $groupName Group to add instance to
- * @param $subGroup Sub group to add instance to
- * @param $instance An instance of Visitable
+ * @param $groupName Group to add instance to
+ * @param $subGroup Sub group to add instance to
+ * @param $visitableInstance An instance of Visitable
* @return void
* @throws NoListGroupException If the given group is not found
*/
- function addInstance ($groupName, $subGroup, Visitable $instance);
+ function addInstance ($groupName, $subGroup, Visitable $visitableInstance);
/**
* Adds the given entry to list group
/**
* Adds the given instance to list group and sub group
*
- * @param $groupName Group to add instance to
- * @param $subGroup Sub group to add instance to
- * @param $instance An instance of Visitable
+ * @param $groupName Group to add instance to
+ * @param $subGroup Sub group to add instance to
+ * @param $visitableInstance An instance of Visitable
* @return void
* @throws NoListGroupException If the given group is not found
*/
- public function addInstance ($groupName, $subGroup, Visitable $instance) {
+ public function addInstance ($groupName, $subGroup, Visitable $visitableInstance) {
//* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(__METHOD__.': '.$groupName . '/' . $subGroup . ' - START');
// Is the group there?
if (!$this->isGroupSet($groupName)) {
} // END - if
// Generate the hash
- $hash = $this->generateHash($groupName, $subGroup, $instance);
+ $hash = $this->generateHash($groupName, $subGroup, $visitableInstance);
// Now add it to the group list and hash it
$this->listGroups[$groupName]->addEntry($subGroup, $hash);
array_push($this->listIndex, $hash);
// Add the instance itself to the list
- $this->listEntries[$hash] = $instance;
+ $this->listEntries[$hash] = $visitableInstance;
//* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(__METHOD__.': '.$groupName . '/' . $subGroup . ' - FINISHED');
}
/**
* Adds an instance to a pool segment
*
- * @param $group Name of the pool group
- * @param $poolSegment Name of the pool segment
- * @param $instance An instance of a class that should bed added to the pool
+ * @param $group Name of the pool group
+ * @param $poolSegment Name of the pool segment
+ * @param $visitableInstance An instance of a class that should bed added to the pool
* @return void
*/
- protected final function addInstance ($group, $poolName, Visitable $instance) {
+ protected final function addInstance ($group, $poolName, Visitable $visitableInstance) {
// Is the pool group there?
if (!$this->getPoolEntriesInstance()->isGroupSet($group)) {
// Create the missing pool group
} // END - if
// Add it to given pool group
- $this->getPoolEntriesInstance()->addInstance($group, $poolName, $instance);
+ $this->getPoolEntriesInstance()->addInstance($group, $poolName, $visitableInstance);
}
/**