StreamManager  latest
PHP stream manager
fpoirotte\StreamManager Class Reference
+ Inheritance diagram for fpoirotte\StreamManager:

Public Member Functions

 count ()
 
 loop ($iter=0)
 
 loopOnce ()
 
 offsetExists ($offset)
 
 offsetGet ($offset)
 
 offsetSet ($offset, $value)
 
 offsetUnset ($offset)
 

Public Attributes

const WRAPPER_CLASS = '\\fpoirotte\\StreamManager\\StreamWrapper'
 
const WRAPPER_NAME = 'streammanager.wrapper'
 

Protected Attributes

 $hasDispatch
 
 $streams
 

Detailed Description

Definition at line 5 of file StreamManager.php.

Member Function Documentation

fpoirotte\StreamManager::count ( )

Count elements of an object.

This method is executed when using the count() function on an object implementing the Countable interface.

Return values
intThe custom count as an integer.
See also
http://php.net/countable.count.php

Implements Countable.

Definition at line 25 of file StreamManager.php.

fpoirotte\StreamManager::offsetExists (   $offset)

Whether or not an offset exists.

This method is executed when using isset() or empty() on objects implementing ArrayAccess.

Parameters
mixed$offsetAn offset to check for.
Return values
booltrue is returned when the offset exists, false when it doesn't.
See also
http://php.net/arrayaccess.offsetexists.php
Note
When using empty() ArrayAccess::offsetGet() will be called and checked for emptyness only if ArrayAccess::offsetExists() returns true.

Implements ArrayAccess.

Definition at line 30 of file StreamManager.php.

fpoirotte\StreamManager::offsetGet (   $offset)

Returns the value at specified offset.

This method is executed when checking if offset is empty().

Parameters
mixed$offsetThe offset to retrieve.
Return values
mixedValue at the specified offset.
See also
http://php.net/arrayaccess.offsetget.php

Implements ArrayAccess.

Definition at line 40 of file StreamManager.php.

fpoirotte\StreamManager::offsetSet (   $offset,
  $value 
)

Assigns a value to the specified offset.

Parameters
mixed$offsetThe offset to assign the value to.
mixed$valueThe value to set.
See also
http://php.net/arrayaccess.offsetset.php

Implements ArrayAccess.

Definition at line 48 of file StreamManager.php.

fpoirotte\StreamManager::offsetUnset (   $offset)

Unsets an offset.

Parameters
mixed$offsetThe offset to unset.
See also
http://php.net/arrayaccess.offsetunset.php
Note
This method will not be called when type-casting to (unset).

Implements ArrayAccess.

Definition at line 35 of file StreamManager.php.


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