noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
|
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. | |
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. | |
load () | |
save () | |
set_parameter ($p_string, $p_value) | |
update () | |
Static Public Member Functions | |
static | check () |
check if gDossier is set ?? dead code ??? | |
static | connect () |
static | get () |
return a string to put to gDossier into a GET | |
static | get_version ($p_cn) |
static | hidden () |
return a string to set gDossier into a FORM | |
static | id () |
return the 'gDossier' value after a check | |
static | name ($id=0) |
retrieve the name of the current dossier | |
static | set_current ($p_dossier) |
Set the current dossier to $p_dossier. | |
static | show_dossier ($p_type, $p_login="", $p_text="", $limit=0) |
Show the folder where user have access. | |
static | synchro_admin ($p_id) |
connect to folder and give to admin. | |
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. | |
Data Fields | |
$cn | |
Database connexion. | |
$dos_description | |
$dos_email | |
$dos_id | |
number of db | |
$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.
|
static |
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 | ( | ) |
Definition at line 243 of file dossier.class.php.
Dossier::get_parameter | ( | $p_string | ) |
Definition at line 221 of file dossier.class.php.
References $idx.
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.
|
static |
Dossier::load | ( | ) |
Definition at line 272 of file dossier.class.php.
References $idx, $res, $row, $sql, 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 put_global().
Dossier::set_parameter | ( | $p_string, | |
$p_value ) |
Definition at line 232 of file dossier.class.php.
References $idx.
|
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.