Copied!

A container class that conforms to an interface needed by PHPFUI. The Container class does not impart any html
or other formatting, but simply contains items that will be output in the order they were added to the collection.

Cloneable Instantiable
Implements Countable
PHPFUI\Interfaces\Walkable
Methods
public __construct ()
 

Construct a Container. Any arguments passed to the constructor will be added to the container.

public __toString () : string
public add ( $object ) : PHPFUI\Container
 

Add an item to the Container

public addAsFirst ( $object ) : PHPFUI\Container
 

Adds to the front of the container

public count () : int
 

Supports the Countable interface

public output () : string
public prepend ( $object ) : PHPFUI\Container
 

Add an item to the beginning of the Container

public walk ( string $method , $argument = NULL )
 

Recursively walks all objects and calls the passed method on each object where it exists

  • return $this
Properties
private $objects
© 2020 Bruce Wells
Search Namespaces \ Classes
Configuration Numbers (0-9.) only