Arbit - project tracking

Arbit - project tracking

API documentation :: Docs For Class arbitModuleDefintion

Core::arbitModuleDefintion

Class arbitModuleDefintion

Base class for module definitions.

Base class for module definitions. Each module is required to extend this class an return an instance of it from the file definition.php in the modules root directory. This struct defines the way the core interacts with the module. The struct may be extended in later releases to contain more information, but will always provide meaningful default values in this case. When extending this class you normally should only need to extend the property array to contain your module specific values. If your module has a completely different structure you may also overwrite the __get() method and do some magic in there to receive your values. But keep in mind, that this class is instantiated on *each* call, so it should *not* perform any performance intensive stuff.

arbitBaseStruct
   |
   --arbitModuleDefintion
Author(s):
Version:   $Revision: 1692 $
License:   GPL

Descendants

Child Class Description
arbitModulePdependDefintion Arbit Pdepend module definition
arbitModulePhplocDefintion Arbit Phploc module definition
arbitModuleFaqDefintion Arbit FAQ module definition
arbitModuleNotificationDefintion Arbit wiki module definition
arbitModuleCiDefintion Arbit Ci module definition
arbitModuleSourceDefintion Arbit Source module definition
arbitModuleWikiDefintion Arbit Wiki module definition
arbitModuleImporterDefintion Arbit Importer module definition
arbitModuleTrackerDefintion Arbit issue tracker module definition
arbitModulePhpcsDefintion Arbit Phpcs module definition
arbitModulePhpDocDefintion Arbit PhpDoc module definition
arbitModulePhpunitDefintion Arbit Phpunit module definition
arbitCoreDefinition Arbit core controller definition

Properties

array read $autoload
Array with a class to filename mapping for autoloading of module classes.
string read $controller
The class name of the modules main controller, where all requests to the module are dispatched too. This name should normally be arbit<ModuleName>Controller.
string read $path
The root path of the module. This should normally just point to __DIR__ in the implemented module definition.
array read $permissions
Array with the module specific permissions as a key and a description of the respective permission as a value.
array read $signals
Array with all signals the module may emit. The key of teh array is the name of the signal, and should be prefixed with the module name, and the value is a description of the repective signal, eg. describes when the signal is thrown.
array read $slots
Array containing the slots a module registered for and the associated callback, hwich should be called by the signal slot manager, when the signal has been trigered.
string read $templateDirectory
Folder where the module specific templates can be found. Normally you should NOT chnage this. The path is given relative to the modules root directory.

Member Variables

protected array $caches = array()
Array with caches registered on initialization Each cache must have a unique name, normally prefixed with the module identifier. time to live for the cache.

Array with caches registered on initialization Each cache must have a unique name, normally prefixed with the module identifier. The definition array should at least contain a path and a time to live for the cache.

  1.   'name' => array(
  2.       'path' => 'dir/',
  3.       'ttl'  => arbitCache::INFINITE,
  4.   ),
  5.   ...

protected array $commands = array()
List of command definitions of the module Array containing command names and their assiciated classes in the module definition.

List of command definitions of the module Array containing command names and their assiciated classes in the module definition.

  1.   array(
  2.       'mymodule.mycommand' => 'myModuleMyCommand',
  3.       ...
  4.   )

protected array $couchDbDocuments = array()
CouchDB documents to be registered at the document manager.

CouchDB documents to be registered at the document manager.

protected array $couchDbViews = array()
CouchDB documents to be registered at the document manager.

CouchDB documents to be registered at the document manager.

protected array $facades = array()
Array with facades registered on initialization Array with facedes for all known database backends linked with their respective implementation.

Array with facades registered on initialization Array with facedes for all known database backends linked with their respective implementation.

  1.   'couchdb' => array(
  2.       'name' => 'class',
  3.   ),

protected array $properties = array(
'autoload' => null,
'permissions' => array(
),'slots'=>array(),'signals'=>array(),'templateDirectory'=>'templates/','controller'=>null,'path'=>null,)

Array containing the module structures properties.

Array containing the module structures properties. Take a look at the property descriptions in the class level documentation for a more detailed description for each of the properties. Do not add any properties to this array, which are not defined in this base class, because those might be used later on by the core.

protected array $viewModels = array()
List of view models used by the module List of used view handlers associated with a list of view models used by the module, each associated with a callback to the concrete handler implementation to visit the view model.

List of view models used by the module List of used view handlers associated with a list of view models used by the module, each associated with a callback to the concrete handler implementation to visit the view model.

  1.   'arbitViewXHtmlHandler' => array(
  2.       'myViewModel' => 'myXHtmlHandler::showMyModel',
  3.       ...
  4.   ),
  5.   ...

Method Summary

protected void initializeCaches( )
Initialize module caches
protected void initializeCommands( )
Initialize commands
protected void initializeCouchDbDocuments( )
Initialize CouchDB document classes
protected void initializeCouchDbViews( )
Initialize CouchDB view classes
protected void initializeFacades( )
Initialize facades
public void initializeModule( )
Initialize module Initialize the module using the values defined in the module definition class properties.
protected void initializeViews( )
Initialize views
public mixed __get( $property )
Get property value Get property values. properties on the first request to this property. sued to load the autoload array only when it is requested.

Inherited Methods

From arbitBaseStruct
protected void arbitBaseStruct::deepClone()
Deep clone array structures
public array arbitBaseStruct::getProperties()
Get property names Returns an arary with all properties defined in this struct.
public void arbitBaseStruct::__clone()
Method called, when struct ist cloned

Methods

initializeCaches

void initializeCaches( )

Initialize module caches

Initialize module caches

initializeCommands

void initializeCommands( )

Initialize commands

Initialize commands

initializeCouchDbDocuments

void initializeCouchDbDocuments( )

Initialize CouchDB document classes

Initialize CouchDB document classes

initializeCouchDbViews

void initializeCouchDbViews( )

Initialize CouchDB view classes

Initialize CouchDB view classes

initializeFacades

void initializeFacades( )

Initialize facades

Initialize facades

initializeModule

void initializeModule( )

Initialize module Initialize the module using the values defined in the module definition class properties.

Initialize module Initialize the module using the values defined in the module definition class properties.

initializeViews

void initializeViews( )

Initialize views

Initialize views

__get

mixed __get( string $property )

Get property value Get property values. properties on the first request to this property. sued to load the autoload array only when it is requested.

Get property value Get property values. May be used for delayed intialisation of some properties on the first request to this property. This is for example sued to load the autoload array only when it is requested.

Parameters:
Name Type Description
$property string
Documentation generated on Mon, 05 Apr 2010 14:01:47 +0200 by phpDocumentor 1.4.3