Class n2f_cls

Description

Core class for N2 Framework Yverdon

Located in /system/classes/n2f.cls.php (line 21)

n2f_events
   |
   --n2f_cls
Variable Summary
Method Summary
n2f_cls __construct ([ $cfg = null])
n2f_cls createEvent (string $name, [boolean $system = false])
null dumpDebug ([ $return = false])
array getExtensionMeta (string $name)
boolean hasExtension (string $name)
n2f_cls loadExtension (string $name)
n2f_cls registerExtension (string $name, integer $version, string $author, string $url)
n2f_cls touchEvent (string $name, [ $args = null])
null _cleanResources ()
null _initCore ()
null _initDatabase ()
null _initModule ()
null _initModules ()
Variables
n2f_cfg $cfg (line 27)

Holds configuration values.

  • access: public
n2f_debug $debug (line 45)

Internal debug utility object.

  • access: public
array $globals (line 51)

List of 'global' variables for the framework.

  • access: public

Inherited Variables

Inherited from n2f_events

n2f_events::$events
Methods
Constructor __construct (line 59)

Initializes a new n2f_cls object.

  • access: public
n2f_cls __construct ([ $cfg = null])
  • array $cfg

Redefinition of:
n2f_events::__construct()
Initializes the n2f_events object.
createEvent (line 95)

Creates a new event inside the n2f_cls object.

  • access: public
n2f_cls createEvent (string $name, [boolean $system = false])
  • string $name
  • boolean $system
dumpDebug (line 451)

Dumps the current debug data (if present) in a XHTML format.

  • access: public
null dumpDebug ([ $return = false])
  • $return
getExtensionMeta (line 210)

Returns an array of the given extension's meta data, if provided.

  • access: public
array getExtensionMeta (string $name)
  • string $name: String value of the extension's name.
getRegisteredExtensions (line 223)

Returns the list of registered extensions.

  • access: public
array getRegisteredExtensions ()
hasExtension (line 168)

Returns true or false based on whether or not the given extension has been loaded.

  • access: public
boolean hasExtension (string $name)
  • string $name
initCore (line 264)

Initializes the core by hitting the N2F_EVT_CORE_INIT system handler event.

  • access: public
n2f_cls initCore ()
initDatabase (line 248)

Initializes the database by hitting the N2F_EVT_DATABASE_INIT system handler event.

  • access: public
n2f_cls initDatabase ()
initModule (line 282)

Initializes the module by hitting the N2F_EVT_MODULE_INIT system handler event.

  • access: public
n2f_cls initModule ()
initModules (line 232)

Initializes the extensions located in each module directory by hitting the N2F_EVT_MODULES_INIT system handler event.

  • access: public
n2f_cls initModules ()
loadExtension (line 144)

Loads an extension into the system.

  • access: public
n2f_cls loadExtension (string $name)
  • string $name
registerExtension (line 189)

Registers an extension's meta data with the core.

  • access: public
n2f_cls registerExtension (string $name, integer $version, string $author, string $url)
  • string $name: String value of the extension's name.
  • integer $version: Integer value of the extension's current version.
  • string $author: String value of the extension's author.
  • string $url: String value of the extension's url.
touchEvent (line 120)

Touches an event inside the n2f_cls object.

  • access: public
n2f_cls touchEvent (string $name, [ $args = null])
  • string $name: String value of the event to touch.
  • array $args: Optional array of arguments to pass to event.
_cleanResources (line 428)

System method for cleaning up loose ends before the script shuts down.

  • access: public
null _cleanResources ()
_initCore (line 363)

System method for initializing core features. (This is a placeholder)

  • access: protected
null _initCore ()
_initDatabase (line 347)

System method for initializing the database system.

  • access: protected
null _initDatabase ()
_initModule (line 372)

System method for initializing/loading the current module.

  • access: protected
null _initModule ()
_initModules (line 298)

System method for initializing all modules.

  • access: protected
null _initModules ()

Inherited Methods

Inherited From n2f_events

n2f_events::__construct()
n2f_events::addEvent()
n2f_events::hitEvent()
n2f_events::hookEvent()

Documentation generated on Sat, 23 Jan 2010 11:13:47 -0500 by phpDocumentor 1.4.1