* @throws ListGroupAlreadyAddedException If the given group is already added
*/
public function addGroup ($groupName) {
* @throws ListGroupAlreadyAddedException If the given group is already added
*/
public function addGroup ($groupName) {
// Is the group already added?
if ($this->isGroupSet($groupName)) {
// Throw the exception here
// Is the group already added?
if ($this->isGroupSet($groupName)) {
// Throw the exception here
// Add the group which is a simple array
$this->listGroups[$groupName] = ObjectFactory::createObjectByConfiguredName('list_group_class');
// Add the group which is a simple array
$this->listGroups[$groupName] = ObjectFactory::createObjectByConfiguredName('list_group_class');
* @throws NoListGroupException If the given group is not found
*/
public function addInstance ($groupName, $subGroup, Visitable $instance) {
* @throws NoListGroupException If the given group is not found
*/
public function addInstance ($groupName, $subGroup, Visitable $instance) {
* @throws NoListGroupException If the given group is not found
*/
public function addEntry ($groupName, $entry) {
* @throws NoListGroupException If the given group is not found
*/
public function addEntry ($groupName, $entry) {
// Is the group already added?
if (!$this->isGroupSet($groupName)) {
// Throw the exception here
// Is the group already added?
if (!$this->isGroupSet($groupName)) {
// Throw the exception here
- //* DEBUG: */ $this->debugOutput('[' . __METHOD__ . ':' . __LINE__ . ']: groupName=' . $groupName . ', entry=' . $entry . ', hash=' . $hash);
+ //* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('[' . __METHOD__ . ':' . __LINE__ . ']: groupName=' . $groupName . ', entry=' . $entry . ', hash=' . $hash);
// Now add the entry to the list
$this->listEntries[$hash] = $entry;
//* DEBUG: */ print $groupName.'/'.count($this->listEntries).chr(10);
// Now add the entry to the list
$this->listEntries[$hash] = $entry;
//* DEBUG: */ print $groupName.'/'.count($this->listEntries).chr(10);
* @throws NoListGroupException If the given group is not found
*/
public function removeEntry ($groupName, $entry) {
* @throws NoListGroupException If the given group is not found
*/
public function removeEntry ($groupName, $entry) {
// Is the group already added?
if (!$this->isGroupSet($groupName)) {
// Throw the exception here
// Is the group already added?
if (!$this->isGroupSet($groupName)) {
// Throw the exception here
- //* DEBUG: */ $this->debugOutput('[' . __METHOD__ . ':' . __LINE__ . ']: groupName=' . $groupName . ', entry=' . $entry . ', hash=' . $hash);
+ //* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('[' . __METHOD__ . ':' . __LINE__ . ']: groupName=' . $groupName . ', entry=' . $entry . ', hash=' . $hash);
// Remove it from the list ...
unset($this->listEntries[$hash]);
// ... and hash list as well
unset($this->listIndex[array_search($hash, $this->listIndex)]);
// Remove it from the list ...
unset($this->listEntries[$hash]);
// ... and hash list as well
unset($this->listIndex[array_search($hash, $this->listIndex)]);
$entry2 = crc32($entry[BasePool::SOCKET_ARRAY_RESOURCE] . ':' . $entry[BasePool::SOCKET_ARRAY_CONN_TYPE]);
} else {
// Unsupported type detected
$entry2 = crc32($entry[BasePool::SOCKET_ARRAY_RESOURCE] . ':' . $entry[BasePool::SOCKET_ARRAY_CONN_TYPE]);
} else {
// Unsupported type detected