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

Class: HTML_QuickForm2_Loader

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

Class Overview


Class with static methods for loading classes and files


Author(s):

Version:

  • Release: 2.1.0

Methods


Inherited Variables

Inherited Methods


Class Details

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


[ Top ]


Method Detail

autoload   [line 109]

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

bool fileExists( string $fileName)

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

Parameters:

string   $fileName   —  file name

[ Top ]

loadClass   [line 53]

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

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
bool   $autoload   —  Whether we should try autoloading

[ Top ]


Documentation generated on Wed, 10 Apr 2019 08:56:10 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.