tangra logo
   
[ class tree: tangra_lib ] [ index: tangra_lib ] [ all elements ]
 

Class: Modules_Register

Source Location: /core/modules_register.class.php

Class Modules_Register

Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From Tangra_Class

Tangra_Class::get_class_name()
Alias of get_class(). Exist because of historical reasons.
Tangra_Class::__set()
Overides PHP built-in method and just throws exception if called. Purpose - to "forbid" autosetting of nonexisting class properties.

[ Top ]
Property Summary
array   $modules   Array that contains registered modules

[ Top ]
Method Summary
array   get_module_config()   Returns module configuration
array   get_module_info()   Returns module info
boolean   is_module_registered()   Checks if module is already registered
void   register_module()   Registers module
void   set_module_config()   Sets module configuration

[ Top ]
Properties
array   $modules = array() [line 28]

Array that contains registered modules

API Tags:
Internal:  
Access:  private


[ Top ]
Methods
get_module_config  [line 75]

  array get_module_config( string $module_given_name  )

Returns module configuration

Parameters:
string   $module_given_name:  Name of the module

API Tags:
Access:  public


[ Top ]
get_module_info  [line 92]

  array get_module_info( string $module_given_name  )

Returns module info

Parameters:
string   $module_given_name:  Name of the module

API Tags:
Access:  public


[ Top ]
is_module_registered  [line 50]

  boolean is_module_registered( string $module_given_name  )

Checks if module is already registered

Parameters:
string   $module_given_name:  Name of the module

API Tags:
Access:  public


[ Top ]
register_module  [line 36]

  void register_module( string $module_given_name, array $module_info  )

Registers module

Parameters:
string   $module_given_name:  Name of the module as given by user
array   $module_info: 

API Tags:
Access:  public


[ Top ]
set_module_config  [line 60]

  void set_module_config( string $module_given_name, array $config  )

Sets module configuration

Parameters:
string   $module_given_name:  Name of the module
array   $config: 

API Tags:
Access:  public


[ Top ]