2017 © Pedro Peláez
 

library ultra-facade

Implements the Facade pattern to build SplIterators.

image

jeremykendall/ultra-facade

Implements the Facade pattern to build SplIterators.

  • Thursday, March 6, 2014
  • by jeremykendall
  • Repository
  • 2 Watchers
  • 5 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

UltraFacade

In the context of UltraFacade, a Facade is an object-oriented creational design pattern to implement the concept of facades and deals with the problem of creating objects without specifying the exact class of object that will be created., (*1)

A Concrete Implementation

The concrete implentation in this library, JeremyKendall\UltraFacade\SplIteratorFacade, is an example of how to properly use a Facade. It creates SPL Iterators based on a type string passed in at runtime. The type string is the name of the SPL Iterator with 'Iterator' removed (less typing FTW). The second optional argument is used to pass required params the the iterator's constructor., (*2)

``` php $iterator = new SplIteratorFacade::facade('RecursiveDirectory', array(DIR));, (*3)


While this specific facade implementation is production ready and should be used if you have a use case for it, the intent is simply to demonstrate how the Facade should be used. ## Installation Installation is handled via [Composer][1]. ``` json { "require": { "jeremykendall/ultra-facade": "1.*" } }

Please check the [UltraFacade page][2] at Packagist for the latest version., (*4)

The Versions

06/03 2014

dev-master

9999999-dev

Implements the Facade pattern to build SplIterators.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

facade design patterns spl iterators facade pattern

06/03 2014

dev-develop

dev-develop

Implements the Facade pattern to build SplIterators.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

facade design patterns spl iterators facade pattern

06/03 2014

1.0.0

1.0.0.0

Implements the Facade pattern to build SplIterators.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

facade design patterns spl iterators facade pattern