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

Class: HTML_QuickForm2_Loader

Source Location: /HTML_QuickForm2-0.3.0/QuickForm2/Loader.php

Class Overview


Class with static methods for loading classes and files


Author(s):

Version:

  • Release: 0.3.0

Methods


Inherited Variables

Inherited Methods


Class Details

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


[ Top ]


Method Detail

autoload   [line 127]

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 105]

bool fileExists( string $fileName)

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

Parameters:

string   $fileName   —  file name

[ Top ]

loadClass   [line 73]

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 Mon, 11 Mar 2019 15:34:59 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.