Login   Register  
PHP Classes
elePHPant
Icontem

pClosure: Create closure functions for any PHP 5 version

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Sam Shull
Name: Sam Shull <e-mail contact>
Packages: 9 Browse all classes by Sam Shull Browse all classes by
Country: United States United States - PHP jobs in United States
Age: 38
All time rank: 37743 in United States United States
Week rank: 329 Up31 in United States United States Up
Innovation award
Innovation award
Nominee: 8x


  Detailed description   Download Download .zip .tar.gz  
This class can be used to create closure functions that work with any PHP 5 version.

It uses a lambda function to enclose the closure object for simple execution.

Additionally, supports scalar type hinting and the ability to change execution scope of the closure object using a supported interface.

  Classes of Sam Shull  >  pClosure  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: pClosure
Base name: pclosure
Description: Create closure functions for any PHP 5 version
Version: 0.1
PHP version: 5.0
License: MIT/X Consortium License
All time users: 359 users
All time rank: 6049
Week users: 0 users
Week rank: 2011 Equal
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Data types Modeling and manipulating data types View top rated classes
Group folder image Language Constructs to assist in the language control View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
July 2009
Number 9
Closures are references to code that can work as a function but does not have a name nor is associated with any class.

PHP 5.3 is the first PHP version that introduced the support to closure functions.

This class provides an emulation of closure functions that works with any PHP 5 version, even before PHP 5.3.

Manuel Lemos

  User ratings  
Not yet rated by the users

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Accessible without login Plain text file pClosure.php Class The class and two interface definitions.
Accessible without login Plain text file pClosure_test.php Example A series of example uses.

Download Download all files: pclosure.tar.gz pclosure.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.