Class FOFAutoloaderComponent

Description

An autoloader for FOF-powered components. It allows the autoloading of various classes related to the operation of a component, from Controllers and Models to Helpers and Fields. If a class doesn't exist, it will be created on the fly.

  • since: 2.1

Located in /libraries/fof/autoloader/component.php (line 21)


	
			
Variable Summary
 static array $fofComponents
 static string $fofPath
Method Summary
 FOFAutoloaderComponent __construct ()
 void autoload_fof_controller (string $class_name)
 void autoload_fof_field (string $class_name)
 void autoload_fof_helper (string $class_name)
 void autoload_fof_model (string $class_name)
 void autoload_fof_table (string $class_name)
 void autoload_fof_toolbar (string $class_name)
 void autoload_fof_view (string $class_name)
 boolean isFOFComponent (string $component)
Variables
static FOFAutoloaderComponent $autoloader = null (line 28)

An instance of this autoloader

  • access: public
static array $fofComponents = array() (line 42)

An array holding component names and their FOF-ness status

  • access: protected
static string $fofPath = null (line 35)

The path to the FOF root directory

  • access: public
Methods
static init (line 49)

Initialise this autoloader

  • access: public
static FOFAutoloaderComponent init ()
Constructor __construct (line 62)

Public constructor. Registers the autoloader with PHP.

  • access: public
FOFAutoloaderComponent __construct ()
autoload_fof_controller (line 154)

Autoload Controllers

  • access: public
void autoload_fof_controller (string $class_name)
  • string $class_name: The name of the class to load
autoload_fof_field (line 811)

Autoload Fields

  • access: public
void autoload_fof_field (string $class_name)
  • string $class_name: The name of the class to load
autoload_fof_helper (line 636)

Autoload Helpers

  • access: public
void autoload_fof_helper (string $class_name)
  • string $class_name: The name of the class to load
autoload_fof_model (line 271)

Autoload Models

  • access: public
void autoload_fof_model (string $class_name)
  • string $class_name: The name of the class to load
autoload_fof_table (line 535)

Autoload Tables

  • access: public
void autoload_fof_table (string $class_name)
  • string $class_name: The name of the class to load
autoload_fof_toolbar (line 738)

Autoload Toolbars

  • access: public
void autoload_fof_toolbar (string $class_name)
  • string $class_name: The name of the class to load
autoload_fof_view (line 387)

Autoload Views

  • access: public
void autoload_fof_view (string $class_name)
  • string $class_name: The name of the class to load
isFOFComponent (line 83)

Returns true if this is a FOF-powered component, i.e. if it has a fof.xml file in its main directory.

  • access: public
boolean isFOFComponent (string $component)
  • string $component: The component's name

Documentation generated on Tue, 19 Nov 2013 14:56:13 +0100 by phpDocumentor 1.4.3