App Class Reference

Inheritance diagram for App:

Object

List of all members.


Public Member Functions

getInstance ()
 import ($type=null, $name=null, $parent=true, $search=array(), $file=null, $return=false)

Public Attributes

 $return = false
 $search = array()

Detailed Description

Definition at line 705 of file configure.php.


Member Function Documentation

& App::getInstance (  ) 

Returns a single instance of App

Returns:
object public

Definition at line 885 of file configure.php.

References Cache::read().

Referenced by import().

App::import ( type = null,
name = null,
parent = true,
search = array(),
file = null,
return = false 
)

Will find Classes based on the $name, or can accept specific file to search for

Parameters:
mixed $type The type of Class if passed as a string, or all params can be passed as an single array to $type,
string $name Name of the Class or a unique name for the file
mixed $parent boolean true if Class Parent should be searched, accepts key => value array('parent' => $parent ,'file' => $file, 'search' => $search, 'ext' => '$ext'); $ext allows setting the extension of the file name based on Inflector::underscore($name) . ".$ext";
array $search paths to search for files, array('path 1', 'path 2', 'path 3');
string $file full name of the file to search for including extension
boolean $return, return the loaded file, the file must have a return statement in it to work: return $variable;
Returns:
boolean true if Class is already in memory or if file is found and loaded, false if not public

Definition at line 761 of file configure.php.

References $file, $return, $search, Inflector::camelize(), getInstance(), Inflector::underscore(), and vendor().

Referenced by TranslateBehavior::_getLocale(), Dispatcher::_invoke(), Component::_loadComponents(), View::_loadHelpers(), Shell::_loadModels(), BakeShell::all(), BehaviorCollection::attach(), ControllerTask::bakeActions(), Dispatcher::cached(), Object::cakeError(), ModelTask::doAssociations(), ModelTask::fixture(), Security::generateAuthKey(), ClassRegistry::init(), AuthComponent::initialize(), ConsoleShell::initialize(), Xml::load(), loadBehavior(), loadComponent(), loadController(), loadControllers(), loadHelper(), loadModel(), loadModels(), loadPluginComponent(), loadPluginHelper(), loadPluginModels(), loadView(), paths(), CakeSchema::read(), Controller::render(), and vendor().


Member Data Documentation

App::$return = false

Definition at line 719 of file configure.php.

Referenced by import().

App::$search = array()

Definition at line 712 of file configure.php.

Referenced by import().


The documentation for this class was generated from the following file: