|
noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
|
manage the extension, it involves the table extension More...
Inheritance diagram for Extension:
Collaboration diagram for Extension:Public Member Functions | |
| __toString () | |
| can_request ($p_login) | |
| return 1 if the user given in parameter can access this extension otherwise returns 0 | |
| check_xml (SimpleXMLElement $xml) | |
| Check that the xml contains all the needed information to change them into a extension, the exception code is 0 if the element is optional. | |
| insert_plugin () | |
| Insert a plugin into the given profile, by default always insert into EXT. | |
| insert_profile_menu ($p_id=1) | |
| insert into the table profile_menu for the given profile id and depending of the module $p_module | |
| remove_from_profile_menu ($p_id) | |
| remove_plugin () | |
| save_plugin () | |
| save a plugin into MENU_REF , calls insert_plugin or update_plugin if it already exists | |
| search ($p_what) | |
| search a extension, the what is the column (extends_code | |
| update_plugin () | |
| verify () | |
Static Public Member Functions | |
| static | check_plugin_version ($p_plugin_code) |
| compare the version of the plugin and the last version , propose to update it if a new version exists | |
| static | check_version ($i, $p_plugin_code=null) |
| check the version of the plugin , null stands for one of the standard plugins, it means self::aStandard_plugin @global type $version_noalyss | |
| static | clean (Database $p_cn) |
| remove all the standard plugins schema | |
| static | find_extension_code ($a_extension, $access_code) |
| find the extension with the me_code = last part of access_code | |
| static | get_version ($xml_file, $plugin_code) |
| retrieve the version of the current plugin | |
| static | make_array ($cn) |
| make an array of the available plugin for the current user | |
| static | read_definition ($p_file) |
| Parse a XML file to complete an array of extension objects, in the plugin.xml file , you can find several plugins sharing some parts. | |
Data Fields | |
| $depend | |
| default depending menu (can be override by config menu) | |
| $noalyss_version | |
| minimum version of NOALYSS for this plugin | |
| $order | |
| $order in the menu (can be override by config menu) | |
| $version | |
| const | aStandard_plugin |
manage the extension, it involves the table extension
Data member
Definition at line 46 of file extension.class.php.
| Extension::__toString | ( | ) |
Definition at line 433 of file extension.class.php.
| Extension::can_request | ( | $p_login | ) |
return 1 if the user given in parameter can access this extension otherwise returns 0
| $p_login | the user login |
Definition at line 93 of file extension.class.php.
References cn.
|
static |
compare the version of the plugin and the last version , propose to update it if a new version exists
Definition at line 300 of file extension.class.php.
Referenced by check_version().
|
static |
check the version of the plugin , null stands for one of the standard plugins, it means self::aStandard_plugin @global type $version_noalyss
| type | $i | |
| type | $p_plugin_code |
Definition at line 128 of file extension.class.php.
References $i, $version_noalyss, _, alert(), and check_plugin_version().
Here is the call graph for this function:| Extension::check_xml | ( | SimpleXMLElement | $xml | ) |
Check that the xml contains all the needed information to change them into a extension, the exception code is 0 if the element is optional.
Check XML.
| SimpleXMLElement | $xml |
| Exception |
Definition at line 331 of file extension.class.php.
References $ex, $i, $nb_plugin, $xml, and _.
|
static |
remove all the standard plugins schema
| Database | $p_cn |
Definition at line 282 of file extension.class.php.
References $i, DatabaseCore\exec_sql(), and DatabaseCore\exist_schema().
Here is the call graph for this function:
|
static |
find the extension with the me_code = last part of access_code
| $a_extension | |
| $access_code | find the ME_CODE (normally last part ) |
Definition at line 421 of file extension.class.php.
References $access_code, $extension, and $me_code.
Referenced by get_version().
|
static |
retrieve the version of the current plugin
| $xml_file | always DIR."/plugin.xml" |
| $plugin_code | the plugin or $_REQUEST['ac'] |
Definition at line 460 of file extension.class.php.
References $extension, find_extension_code(), and read_definition().
Here is the call graph for this function:| Extension::insert_plugin | ( | ) |
Insert a plugin into the given profile, by default always insert into EXT.
| type | $p_id | profile.p_id |
| Exception | if duplicate or error db |
Definition at line 227 of file extension.class.php.
References $count, alert(), cn, and verify().
Referenced by save_plugin().
Here is the call graph for this function:| Extension::insert_profile_menu | ( | $p_id = 1 | ) |
insert into the table profile_menu for the given profile id and depending of the module $p_module
| type | $p_id | profile.p_id |
| Exception | 10 : profile absent , 20 module absent , 30 No parent menu |
Definition at line 147 of file extension.class.php.
References $cn, $depend, $i, $me_code, $module, $msg, $nb_dep, $order, $p_id, $profile, and _.
|
static |
make an array of the available plugin for the current user
Definition at line 111 of file extension.class.php.
|
static |
Parse a XML file to complete an array of extension objects, in the plugin.xml file , you can find several plugins sharing some parts.
| string | $p_file | filename |
Definition at line 375 of file extension.class.php.
References $cn, $ex, $extension, $i, $nb_plugin, $xml, and echo_warning().
Referenced by get_version().
Here is the call graph for this function:| Extension::remove_from_profile_menu | ( | $p_id | ) |
Definition at line 200 of file extension.class.php.
| Extension::remove_plugin | ( | ) |
| Extension::save_plugin | ( | ) |
save a plugin into MENU_REF , calls insert_plugin or update_plugin if it already exists
Definition at line 212 of file extension.class.php.
References cn, insert_plugin(), and update_plugin().
Here is the call graph for this function:| Extension::search | ( | $p_what | ) |
search a extension, the what is the column (extends_code
Definition at line 79 of file extension.class.php.
| Extension::update_plugin | ( | ) |
Definition at line 248 of file extension.class.php.
References alert(), cn, and verify().
Referenced by save_plugin().
Here is the call graph for this function:| Extension::verify | ( | ) |
Definition at line 64 of file extension.class.php.
Referenced by insert_plugin(), and update_plugin().
| Extension::$depend |
default depending menu (can be override by config menu)
Definition at line 62 of file extension.class.php.
Referenced by insert_profile_menu().
| Extension::$noalyss_version |
minimum version of NOALYSS for this plugin
Definition at line 60 of file extension.class.php.
| Extension::$order |
$order in the menu (can be override by config menu)
Definition at line 61 of file extension.class.php.
Referenced by insert_profile_menu().
| Extension::$version |
Definition at line 59 of file extension.class.php.
| const Extension::aStandard_plugin |
Definition at line 49 of file extension.class.php.