noalyss Version-9
|
manage the extension, it involves the table extension More...
Public Member Functions | |
__toString () | |
can_request ($p_login) | |
return 1 if the user given in parameter can access this extension otherwise returns 0 More... | |
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. More... | |
insert_plugin () | |
Insert a plugin into the given profile, by default always insert into EXT. More... | |
insert_profile_menu ($p_id=1) | |
insert into the table profile_menu for the given profile id and depending of the module $p_module More... | |
remove_from_profile_menu ($p_id) | |
remove_plugin () | |
search ($p_what) | |
search a extension, the what is the column (extends_code More... | |
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 More... | |
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 More... | |
static | clean (Database $p_cn) |
remove all the standard plugins schema More... | |
static | find_extension_code ($a_extension, $access_code) |
find the extension with the me_code = last part of access_code More... | |
static | get_version ($xml_file, $plugin_code) |
retrieve the version of the current plugin More... | |
static | make_array ($cn) |
make an array of the available plugin for the current user More... | |
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. More... | |
Data Fields | |
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 410 of file extension.class.php.
References $r.
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 85 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 277 of file extension.class.php.
References $g_user.
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 120 of file extension.class.php.
References $i, $version_noalyss, alert(), and check_plugin_version().
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 308 of file extension.class.php.
References $ex, $i, $nb_plugin, and $xml.
|
static |
remove all the standard plugins schema
Database | $p_cn |
Definition at line 259 of file extension.class.php.
References $i, DatabaseCore\exec_sql(), and DatabaseCore\exist_schema().
|
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 398 of file extension.class.php.
References $access_code, 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 433 of file extension.class.php.
References find_extension_code(), and read_definition().
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 204 of file extension.class.php.
References $count, alert(), cn, and verify().
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 139 of file extension.class.php.
References $cn, $i, $me_code, $module, $nb_dep, $order, $p_id, $profile, and Noalyss\Dbg\echo_var().
|
static |
make an array of the available plugin for the current user
Definition at line 103 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 352 of file extension.class.php.
References $cn, $dom, $ex, $i, $nb_plugin, $xml, and echo_warning().
Referenced by get_version().
Extension::remove_from_profile_menu | ( | $p_id | ) |
Definition at line 190 of file extension.class.php.
Extension::remove_plugin | ( | ) |
Extension::search | ( | $p_what | ) |
search a extension, the what is the column (extends_code
Definition at line 71 of file extension.class.php.
Extension::update_plugin | ( | ) |
Definition at line 225 of file extension.class.php.
References alert(), cn, and verify().
Extension::verify | ( | ) |
Definition at line 56 of file extension.class.php.
Referenced by insert_plugin(), and update_plugin().
const Extension::aStandard_plugin |
Definition at line 49 of file extension.class.php.