Login   Register  
PHP Classes
elePHPant
Icontem

Java and C# compatible scalar type hinting: Check the types of called function arguments

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

  Author Author  
Picture of Artur Graniszewski
Name: Artur Graniszewski is available for providing paid consulting. Contact Artur Graniszewski .
Packages: 13 Browse all classes by Artur Graniszewski Browse all classes by
Country: Poland Poland - PHP jobs in Poland
Age: 32
All time rank: 3505 in Poland Poland
Week rank: 55 Up2 in Poland Poland Up
Innovation award
Innovation award
Nominee: 7x

Winner: 1x


  Detailed description   Download Download .zip .tar.gz  
This class can be used to check the types of called function arguments.

It sets up an error handler function that can determine if a function is being called with the wrong types of arguments.

The error handler checks if the type hinting classes for the function being called is string, integer, float, double, boolean and checks if the argument values are of the declared types.

  Classes of Artur Graniszewski  >  Java and C# compatible scalar type hinting  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Java and C# compatible scalar type hinting
Base name: scalar-type-hinting
Description: Check the types of called function arguments
Version: 1.2
PHP version: 5.2
License: GNU Lesser General Public License (LGPL)
All time users: 179 users
All time rank: 7167
Week users: 0 users
Week rank: 2192 Equal
 
  Groups   Screenshots Screenshots   Rate classes User ratings  
  Applications   Related links   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

  Files folder image Screenshots  
Library working concept art
File Role Description
Accessible without login Image file matching.JPG Screen Library working concept art


  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.

  Related links  
Link Description
Type hinting on PHP.NET Description of the type hinting and other implementations of scalar type hinting placed in the user comments.
Technical description Project technical description (polish version)

  Files folder image Files  
File Role Description
Plain text file typehint.php Class Main class
Accessible without login Plain text file php_5.2_example.php Example PHP 5.2 example (without namespaces)
Accessible without login Plain text file php_5.3_example.php Example PHP 5.3 example (with namespaces)

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