HTML_QuickForm2
[ class tree: HTML_QuickForm2 ] [ index: HTML_QuickForm2 ] [ all elements ]

Class: HTML_QuickForm2_Loader

Source Location: /HTML_QuickForm2-2.0.2/HTML/QuickForm2/Loader.php

Class Overview


Class with static methods for loading classes and files


Author(s):

Version:

  • Release: 2.0.2

Methods


Inherited Variables

Inherited Methods


Class Details

[line 61]
Class with static methods for loading classes and files


[ Top ]


Method Detail

autoload   [line 131]

bool autoload( string $class)

Loading of HTML_QuickForm2_* classes suitable for SPL autoload mechanism

This method will only try to load a class if its name starts with HTML_QuickForm2. Register with the following:

  1.  spl_autoload_register(array('HTML_QuickForm2_Loader''autoload'));

  • Return: Whether class loaded successfully
  • Access: public

Parameters:

string   $class     Class name

[ Top ]

fileExists   [line 108]

bool fileExists( string $fileName)

Checks whether the file exists in the include path
  • Access: public

Parameters:

string   $fileName     file name

[ Top ]

loadClass   [line 75]

void loadClass( string $className, [string $includeFile = null])

Tries to load a given class

If no $includeFile was provided, $className will be used with underscores replaced with path separators and '.php' extension appended

  • Throws: HTML_QuickForm2_NotFoundException If the file either can't be loaded or doesn't contain the given class
  • Access: public

Parameters:

string   $className     Class name to load
string   $includeFile     Name of the file (supposedly) containing the given class

[ Top ]


Documentation generated on Sat, 28 Jun 2014 09:30:23 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.