noalyss Version-9
|
manage the current dossier, everywhere we need to know to which folder we are connected, because we can't use $_SESSION, we need to pass the dossier_id via a _GET or a POST variable private static $variable=array("id"=>"dos_id", "name"=>"dos_name", "desc"=>"dos_description"); More...
Public Member Functions | |
__construct ($p_id) | |
count () | |
Count the number of folder in the repository. More... | |
get_info () | |
get_parameter ($p_string) | |
get_user_folder ($sql="") | |
Return all the users as an array but NOALYSS_ADMINISTRATOR, that user cannot be changed by the interface for administrating user. More... | |
load () | |
save () | |
set_parameter ($p_string, $p_value) | |
update () | |
Static Public Member Functions | |
static | check () |
check if gDossier is set ?? dead code ??? More... | |
static | connect () |
static | get () |
return a string to put to gDossier into a GET More... | |
static | get_version ($p_cn) |
static | hidden () |
return a string to set gDossier into a FORM More... | |
static | id () |
return the 'gDossier' value after a check More... | |
static | name ($id=0) |
retrieve the name of the current dossier More... | |
static | set_current ($p_dossier) |
Set the current dossier to $p_dossier. More... | |
static | show_dossier ($p_type, $p_login="", $p_text="", $limit=0) |
Show the folder where user have access. More... | |
static | synchro_admin ($p_id) |
connect to folder and give to admin. More... | |
static | upgrade () |
Upgrade check if the folder ACCOUNT_REPOSITORY needs to be upgrade thanks the variable DBVERSIONREPO and run all the SQL script named ac-upgradeX.sql from the folder noalyss/include/sql/patch until X equal DBVERSIONREPO-1 After it will call the function apply_patch, remove_inexistant_user and clean_orphan_log for each folder. More... | |
Data Fields | |
$cn | |
Database connexion. More... | |
$dos_description | |
$dos_email | |
$dos_id | |
number of db More... | |
$dos_name | |
Static Private Attributes | |
static | $variable |
manage the current dossier, everywhere we need to know to which folder we are connected, because we can't use $_SESSION, we need to pass the dossier_id via a _GET or a POST variable private static $variable=array("id"=>"dos_id", "name"=>"dos_name", "desc"=>"dos_description");
Definition at line 39 of file dossier.class.php.
Dossier::__construct | ( | $p_id | ) |
Definition at line 53 of file dossier.class.php.
|
static |
check if gDossier is set ?? dead code ???
Definition at line 175 of file dossier.class.php.
References $e, $http, and $id.
Referenced by set_current().
|
static |
Definition at line 295 of file dossier.class.php.
References $cn, $id, and id().
Referenced by Periode_Ledger_Table\__construct(), Operation_Exercice\__construct(), Acc_Ledger_Search\__construct(), Anc_Account_Table\__construct(), Template_Card_Category\add_mandatory_attr(), Print_Ledger\available_ledger(), Acc_Report_MTable\build(), Mobile_Device_MTable\build(), Acc_Other_Tax_MTable\build(), Forecast_Category_MTable\build(), Forecast_Item_MTable\build(), Parameter_Extra_MTable\build(), Print_Operation_Currency\build(), Acc_Operation_Note\build_jrn_id(), Card_Multiple\build_sql(), Document_Option\can_add_comment(), Acc_Plan_MTable\check(), Anc_Account_Table\check(), Template_Card_Category\check(), Tva_Rate_MTable\check(), Periode_Ledger\close(), Card_Multiple\count_sql(), Operation_Exercice\delete(), Anc_Account_Table\delete(), Template_Card_Category\delete(), Tva_Rate_MTable\delete(), Calendar\display(), ITva_Popup\display(), Noalyss\Mobile\display_menu(), Card_Multiple\display_option(), Periode\display_periode_global(), Operation_Exercice\display_result(), Acc_Plan_MTable\display_row(), Anc_Account_Table\display_row(), Acc_Other_Tax_MTable\display_row_custom(), Operation_Exercice\display_total(), Calendar\fill_from_action(), Periode\filter_exercice(), find_default_menu(), Periode\form_exercice_add(), Periode\form_exercice_label(), Periode\form_periode_add(), Fiche\from_qcode(), Calendar\get_preference(), Acc_Account_Ledger\get_used_accounting(), Template_Card_Category\input(), Acc_Other_Tax_MTable\input_custom(), Acc_Plan_MTable\input_custom(), Tag_Group_MTable\input_tag(), Operation_Closing\insert(), Operation_Opening\insert(), Document_Option\is_enable_comment(), Document_Option\is_enable_contact_multiple(), Document_Option\is_enable_editable_description(), Document_Option\is_enable_make_feenote(), Document_Option\is_enable_make_invoice(), Document_Option\is_enable_operation_detail(), Document_Option\is_enable_video_conf(), Html_Input_Noalyss\ledger_supplemental_tax(), Noalyss_Appearance\load(), Noalyss\Mobile\load_module(), Document_Option\option_comment(), Document_Option\option_operation_detail(), Document_Option\option_video_conf(), rebuild_access_code(), Periode_Ledger\reopen(), Acc_Operation_Note\save(), Action_Document_Type_MTable\save(), Currency_MTable\save(), Noalyss_Appearance\save(), Tva_Rate_MTable\save(), Calendar\set_month_year(), Operation_Exercice\submit_transfer(), Acc_Ledger\test_me(), Acc_Bilan\test_me(), Acc_Operation\test_me(), Acc_Reconciliation\test_me(), Anc_Balance_Double\test_me(), Anc_Balance_Simple\test_me(), Anc_Group\test_me(), Anc_Group_Operation\test_me(), Anc_Operation\test_me(), Anc_Plan\test_me(), Fiche\test_me(), Html_Table\test_me(), Operation_Exercice\transform(), Calendar\zoom_calendar(), and Calendar\zoom_list().
Dossier::count | ( | ) |
Count the number of folder in the repository.
Definition at line 129 of file dossier.class.php.
References cn.
Referenced by synchro_admin().
|
static |
return a string to put to gDossier into a GET
Definition at line 192 of file dossier.class.php.
References $http.
Dossier::get_info | ( | ) |
Dossier::get_parameter | ( | $p_string | ) |
Definition at line 221 of file dossier.class.php.
Dossier::get_user_folder | ( | $sql = "" | ) |
Return all the users as an array but NOALYSS_ADMINISTRATOR, that user cannot be changed by the interface for administrating user.
SQL | $sql | sql string to add to the query : |
Definition at line 141 of file dossier.class.php.
References $res, $sql, cn, and NOALYSS_ADMINISTRATOR.
|
static |
Definition at line 290 of file dossier.class.php.
|
static |
return a string to set gDossier into a FORM
Definition at line 202 of file dossier.class.php.
References $http.
Referenced by Operation_Exercice\display_result(), Acc_Parm_Code\form(), Acc_Operation\form_clone_operation(), Tax_Summary\form_export_csv(), Tax_Summary\form_export_pdf(), and Periode\form_periode_add().
|
static |
return the 'gDossier' value after a check
Definition at line 61 of file dossier.class.php.
References $http.
Referenced by Card_Attribut_MTable\__construct(), Manage_Table_SQL\__construct(), Tag_Action\add_clear_button(), Tag_Operation\add_clear_button(), Document\anchor(), Acc_Ledger_Search\build_name_filter(), Acc_Ledger_Search\build_search_filter(), Follow_Up_Other_Concerned\button_action_add_concerned_card(), Acc_Account_Ledger\button_csv(), Fiche\button_csv(), Acc_Account_Ledger\button_pdf(), Fiche\button_pdf(), Acc_Ledger_Search\button_propose_filter(), connect(), Acc_Ledger\CurrencyInput(), Pre_Op_Advanced\display(), Follow_Up\display_children(), Acc_Bilan\display_form(), Follow_Up_Other_Concerned\display_linked_count(), Follow_Up\display_parent(), Operation_Exercice\display_result(), Follow_Up_Other_Concerned\display_row(), Acc_Plan_MTable\display_row(), Follow_Up\display_saved_search(), Noalyss\Mobile\execute_menu(), Anc_Plan\form(), Acc_Operation\form_clone_operation(), Document\generate(), Document_Type\get_list(), Acc_Ledger\input(), ICard\input(), Acc_Plan_MTable\input(), Template_Card_Category\input(), Tva_Rate_MTable\input(), Acc_Other_Tax_MTable\input_custom(), Acc_Report_MTable\input_custom(), Anticipation\input_form(), Acc_Report\input_name(), Tag_Group_MTable\input_tag(), Operation_Closing\insert(), Acc_Ledger_Search\list_operation_to_reconcile(), Profile_Menu\printing(), Acc_Ledger_Search\search_form(), Tag_Action\select_tag_search(), and Profile_Menu\sub_menu().
Dossier::load | ( | ) |
Definition at line 272 of file dossier.class.php.
References $idx, $res, $row, $sql, $variable, cn, DatabaseCore\fetch_array(), and DatabaseCore\num_row().
|
static |
retrieve the name of the current dossier
Definition at line 211 of file dossier.class.php.
Dossier::save | ( | ) |
Definition at line 248 of file dossier.class.php.
References update().
|
static |
Set the current dossier to $p_dossier.
numeric | $p_dossier |
Definition at line 430 of file dossier.class.php.
References check(), and put_global().
Dossier::set_parameter | ( | $p_string, | |
$p_value | |||
) |
Definition at line 232 of file dossier.class.php.
|
static |
Show the folder where user have access.
p_type | string
|
p_login | is the user name |
p_text | is a part of the name where are looking for |
Definition at line 79 of file dossier.class.php.
|
static |
connect to folder and give to admin.
the profile Admin(builtin)
int | $p_id | dossier::id() |
synchro global
Definition at line 309 of file dossier.class.php.
References $cn, $e, $i, $p_id, $repo, count(), echo_warning(), and record_log().
Referenced by upgrade().
Dossier::update | ( | ) |
Definition at line 253 of file dossier.class.php.
References $res, $sql, cn, and noalyss_strlentrim().
Referenced by save().
|
static |
Upgrade check if the folder ACCOUNT_REPOSITORY needs to be upgrade thanks the variable DBVERSIONREPO and run all the SQL script named ac-upgradeX.sql from the folder noalyss/include/sql/patch until X equal DBVERSIONREPO-1 After it will call the function apply_patch, remove_inexistant_user and clean_orphan_log for each folder.
Definition at line 351 of file dossier.class.php.
References $cn, $e, $i, $name, $rep, DBVERSIONREPO, echo_warning(), DatabaseCore\fetch_array(), and synchro_admin().
Dossier::$cn |
Database connexion.
Definition at line 47 of file dossier.class.php.
Referenced by connect(), name(), show_dossier(), synchro_admin(), and upgrade().
Dossier::$dos_description |
Definition at line 50 of file dossier.class.php.
Dossier::$dos_email |
Definition at line 51 of file dossier.class.php.
Dossier::$dos_id |
number of db
Definition at line 48 of file dossier.class.php.
Dossier::$dos_name |
Definition at line 49 of file dossier.class.php.
|
staticprivate |
Definition at line 42 of file dossier.class.php.