|
noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
|
Manage the menu of a profile. More...
Inheritance diagram for Profile_Menu:
Collaboration diagram for Profile_Menu:Public Member Functions | |
| __construct ($p_cn, $p_id=-1) | |
| available_profile () | |
| Show the available profile for the profile $p_id, it concerns only the action of management (action-gestion) | |
| available_repository () | |
| Show the available repository for the profile $p_id. | |
| display_module ($ap_module) | |
| Display the module, with a javascript inside to show the menu contained in the module Used for setting the configuration. | |
| display_module_menu ($p_module_id, $p_level) | |
| Display all menu and submenu of a module. | |
| display_profile_menu_detail () | |
| Show a table with all the menu and the type. | |
| mobile_device () | |
| menu for device | |
| printing () | |
| display all the accessible export of a profile $p_id | |
| sub_menu ($resource, $p_id) | |
| Display the content of a profile menu for printing. | |
Public Member Functions inherited from Profile_Menu_sql | |
| __construct (&$p_cn, $p_id=-1) | |
Public Member Functions inherited from Table_Data_SQL | |
| build_query () | |
| Build the SQL select statement for querying the object and returns it. | |
| column_update ($column_expr, $value) | |
| update the value of a column with an expression for $value for the current record | |
| count ($p_where="", $p_array=null) | |
| return the number of count in the table corresponding to the where condition | |
| delete () | |
| exist () | |
| Count the number of record with the id ,. | |
| get_all_to_array ($p_key_col, $p_cond="", $p_array=NULL) | |
| Get all the row and use the p_key_code are the key value of array. | |
| insert () | |
| load () | |
| Load the current row return false if not found. | |
| seek ($cond='', $p_array=null) | |
| retrieve array of object thanks a condition | |
| update () | |
Public Member Functions inherited from Data_SQL | |
| __construct (DatabaseCore $p_cn, $p_id=-1) | |
| __toString () | |
| collect_objects ($cond='', $p_array=null) | |
| return an array of objects. | |
| from_array ($p_array) | |
| Transform an array into object. | |
| get ($p_string) | |
| get the value thanks the colum name and not the alias (name). | |
| get_cn () | |
| get_info () | |
| get_name () | |
| get_object ($p_ret, $idx) | |
| get_pk_value () | |
| get_primary_key () | |
| get_type () | |
| getp ($p_string) | |
| set the value thanks the alias name instead of the colum name | |
| next ($ret, $i) | |
| get_seek return the next object, the return of the query must have all the column of the object | |
| save () | |
| Insert or update : if the row already exists, update otherwise insert. | |
| set ($p_string, $p_value) | |
| set the value thanks the colum name and not the alias (name) | |
| set_cn ($cn) | |
| set_name ($name) | |
| set_pk_value ($p_value) | |
| set_primary_key ($primary_key) | |
| set_type ($type) | |
| setp ($p_string, $p_value) | |
| set the value thanks the alias name instead of the colum name | |
| to_array ($prefix="") | |
| Turn an object (row) into an array, and the key could be prefixed with $prefix. | |
| to_row ($p_array) | |
| turns a row fetched from the DB into a SQL object in updating all his attribute | |
| verify () | |
Additional Inherited Members | |
Data Fields inherited from Data_SQL | |
| $cn | |
| $date_format | |
| Type of the data. | |
| $default | |
| defaullt date format | |
| $name | |
| Database connection. | |
| $primary_key | |
| Array of logical and real name. | |
| $table | |
| $type | |
| Column name of the primary key. | |
Manage the menu of a profile.
Definition at line 33 of file profile_menu.class.php.
| Profile_Menu::__construct | ( | $p_cn, | |
| $p_id = -1 ) |
Reimplemented from Table_Data_SQL.
Definition at line 37 of file profile_menu.class.php.
| Profile_Menu::available_profile | ( | ) |
Show the available profile for the profile $p_id, it concerns only the action of management (action-gestion)
| $p_id | is the profile p_id |
Definition at line 236 of file profile_menu.class.php.
| Profile_Menu::available_repository | ( | ) |
Show the available repository for the profile $p_id.
| $p_id | is the profile p_id |
Definition at line 262 of file profile_menu.class.php.
| Profile_Menu::display_module | ( | $ap_module | ) |
Display the module, with a javascript inside to show the menu contained in the module Used for setting the configuration.
| $ap_module | $array of module received from display_profile_menu_detail |
Definition at line 167 of file profile_menu.class.php.
Referenced by display_profile_menu_detail().
| Profile_Menu::display_module_menu | ( | $p_module_id, | |
| $p_level ) |
Display all menu and submenu of a module.
Definition at line 177 of file profile_menu.class.php.
| Profile_Menu::display_profile_menu_detail | ( | ) |
Show a table with all the menu and the type.
| type | $p_id | profile.p_id |
Definition at line 109 of file profile_menu.class.php.
References $a_module, $ret, cn, display_module(), and p_id.
Here is the call graph for this function:| Profile_Menu::mobile_device | ( | ) |
menu for device
Definition at line 285 of file profile_menu.class.php.
References $profile_mobile, Mobile_Device_MTable\build(), create_script(), and p_id.
Here is the call graph for this function:| Profile_Menu::printing | ( | ) |
display all the accessible export of a profile $p_id
| type | $p_id | profile.p_id |
Definition at line 207 of file profile_menu.class.php.
References $gDossier, $ret, cn, p_id, and sub_menu().
Here is the call graph for this function:| Profile_Menu::sub_menu | ( | $resource, | |
| $p_id ) |
Display the content of a profile menu for printing.
| type | $resource | |
| type | $p_id |
Definition at line 48 of file profile_menu.class.php.
References $e, $gDossier, $me_code, $menu, $p_id, cn, DatabaseCore\fetch_array(), DatabaseCore\num_row(), span(), and Icon_Action\trash().
Referenced by printing().
Here is the call graph for this function: