Login   Register  
PHP Classes
elePHPant
Icontem

pClosure

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Sam Shull  >  pClosure  >  Download .tar.gz .zip  >  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
Related classes: , ,
Version: 0.1
PHP version: 5.0
License: MIT/X Consortium License
All time users: 318 users
All time rank: 5595
Week users: 0 users
Week rank: 2373
 

  Author  
Picture of Sam Shull
Name: Sam Shull is available for providing paid consulting. Contact Sam Shull .
Packages: 9 Browse all classes by Sam Shull Browse all classes by
Country: United States United States - PHP jobs in United States
Age: 36
All time rank: 40043 in United States United States
Week rank: 349 Up35 in United States United States Up
Innovation award
Innovation award
Nominee: 8x


  Detailed description  
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.

  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 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.