Login   Register  
PHP Classes
elePHPant
Icontem

Chaining functions: Apply a chain of functions to a variable value

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

  Author Author  
Picture of Augustinas Malinauskas
Name: Augustinas Malinauskas <e-mail contact>
Packages: 1 Browse all classes by Augustinas Malinauskas Browse all classes by
Country: United Kingdom United Kingdom - PHP jobs in United Kingdom
Age: 22
All time rank: 3256136 in United Kingdom United Kingdom
Week rank: 1972 Up80 in United Kingdom United Kingdom Up
Innovation award
Innovation award
Nominee: 1x


  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
This class can apply a chain of functions to a variable value.

It can take the value of a variable and calls functions passing its value as parameter.

The result of those functions is stored in a class variable and the class object is returned, so other functions may be called in a chain.

  Classes of Augustinas Malinauskas  >  Chaining functions  >  Download Download .zip .tar.gz  >  Support forum Support forum (3)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Chaining functions
Base name: chaining-functions
Description: Apply a chain of functions to a variable value
Version: 0.2
PHP version: 3.0
License: MIT/X Consortium License
All time users: 330 users
All time rank: 6225
Week users: 0 users
Week rank: 2460 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 Language Constructs to assist in the language control View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
September 2013
Number 8
Some applications need to call multiple PHP functions one after another in a chain but sometimes the resulting code is not very readable.

This class provides a solution that can call given global PHP functions in a chain.

The functions return the class object, so the function calls can be chained.

The resulting value is stored in a class variable, so it can be passed to the next function in the chain.

Manuel Lemos

  User ratings  
There are not enough user ratings to display for this class.

  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
Plain text file Chaining.class.php Class Chaining functions method
Accessible without login Plain text file examples.php Example A few examples of chaining class

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