STAG - documentation
[ class tree: STAG - documentation ] [ index: STAG - documentation ] [ all elements ]

Procedural File: fautoload.php

Source Location: /fautoload.php



Page Details:

Function __autoload is called automatically in PHP5 for find undefined classes

THIS FILE IS BASED ON KARLÍK FILES, THX TO HIM SO MUCH FOR THIS FUNCTION (I didn't know this function before)










__autoload [line 17]

void __autoload( string $className)

load automaticaly classes from files

This global function is called whenever you try to create an object of a class that hasn't been defined. It takes just one parameter, which is the name of the class you have not defined. If you define an object as being from a class that PHP does not recognise, PHP will run this function, then try to re-create the object - you have a second chance to have the right class




Parameters

string   $className   Name of autoloaded class
[ Top ]



Documentation generated on Sat, 24 Jan 2009 19:10:32 +0100 by phpDocumentor 1.4.1