noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
|
define Class fiche and fiche def, those class are using class attribut More...
Public Member Functions | |
__construct ($p_cn, $p_id=0) | |
__toString () | |
Add ($array) | |
Add a fiche category thanks the element from the array you cannot add twice the same cat. name table : insert into fiche_def insert into attr_def. | |
count_category ($p_frd_id) | |
count the number of fiche_def (category) which has the frd_id (type of category) | |
display () | |
Display all card categories into a table. | |
DisplayAttribut ($str="") | |
Display all the attribut of the fiche_def. | |
get () | |
Get attribut of the fiche_def. | |
get_all () | |
Get all the fiche_def. | |
get_attr_min ($p_fiche_def_ref) | |
retrieve the mandatory field of the card model | |
get_by_category ($p_cat) | |
Get all the card where the fiche_def.frd_id is given in parameter. | |
get_by_type ($step=0) | |
Get all the card where the fiche_def.fd_id is given in parameter. | |
getAttribut () | |
Get attribut of a fiche_def. | |
HasAttribute ($p_attr) | |
Check in vw_fiche_def if a fiche has a attribut X. | |
input () | |
show the content of the form to create a new Fiche_Def_Ref | |
input_detail () | |
ask for detail | |
input_new () | |
input for creating a new category | |
insertAttribut ($p_ad_id, $p_order=-1) | |
insert a new attribut for this fiche_def | |
load () | |
alias for Fiche_Def->get(), | |
myList () | |
list the card of a fd_id | |
remove () | |
remove all the card from a categorie after having verify that the card is not used and then remove also the category | |
removeAttribut ($array) | |
remove an attribut for this fiche_def | |
save_class_base ($p_label) | |
Save the class base. | |
save_description ($p_description) | |
save_order ($p_array) | |
save the order of a card, update the column jnt_fic_attr.jnt_order | |
SaveLabel ($p_label) | |
Save the label of the fiche_def. | |
set_autocreate ($p_label) | |
set the auto create accounting item for each card and save it into the database | |
to_array () | |
make an array of attributes of the category of card (FICHE_DEF.FD_ID) The array can be used with the function insert, it will return a struct like this : in the first key (av_textX), X is the ATTR_DEF::AD_ID | |
Static Public Member Functions | |
static | print_available_attribut ($attribut_id, $attribut_text, $class) |
display available attribut | |
static | print_existing_attribut ($attribut_id, $attribut_text) |
display existing attribut | |
Data Fields | |
$all | |
$attribut | |
get from attr_xxx tables | |
$class_base | |
fiche_def.fd_class_base | |
$cn | |
database connection | |
$create_account | |
fd_create_account: flag | |
$fd_description | |
Description of the Card Category. | |
$fiche_def | |
fiche_def.frd_id = fiche_def_ref.frd_id | |
$id | |
id (fiche_def.fd_id | |
$label | |
fiche_def.fd_label | |
define Class fiche and fiche def, those class are using class attribut
Definition at line 30 of file fiche_def.class.php.
Fiche_Def::__construct | ( | $p_cn, | |
$p_id = 0 ) |
Definition at line 42 of file fiche_def.class.php.
Fiche_Def::__toString | ( | ) |
Definition at line 50 of file fiche_def.class.php.
Fiche_Def::Add | ( | $array | ) |
Add a fiche category thanks the element from the array you cannot add twice the same cat. name table : insert into fiche_def insert into attr_def.
$array | array index FICHE_REF nom_mod class_base fd_description create |
Check needed info
Definition at line 202 of file fiche_def.class.php.
References $array, $count, $fd_id, $http, $Res, $row, $sql, _, alert(), ATTR_DEF_ACCOUNT, ATTR_DEF_QUICKCODE, cn, get_attr_min(), noalyss_strlentrim(), noalyss_trim(), and sql_string().
Fiche_Def::count_category | ( | $p_frd_id | ) |
count the number of fiche_def (category) which has the frd_id (type of category)
$p_frd_id | is the frd_id in constant.php the FICHE_TYPE_ |
Definition at line 757 of file fiche_def.class.php.
Fiche_Def::display | ( | ) |
Display all card categories into a table.
Definition at line 169 of file fiche_def.class.php.
Fiche_Def::DisplayAttribut | ( | $str = "" | ) |
Display all the attribut of the fiche_def.
$str | give the action possible values are remove, empty |
Definition at line 474 of file fiche_def.class.php.
References $a, $attribut, $class, $i, $l, $order, $r, $Res, $str, ATTR_DEF_ACCOUNT, ATTR_DEF_NAME, ATTR_DEF_QUICKCODE, cn, DatabaseCore\fetch_array(), DatabaseCore\num_row(), and return.
Fiche_Def::get | ( | ) |
Get attribut of the fiche_def.
Definition at line 106 of file fiche_def.class.php.
References $Max, $row, $sql, cn, DatabaseCore\fetch_array(), label, DatabaseCore\num_row(), and return.
Fiche_Def::get_all | ( | ) |
Get all the fiche_def.
Definition at line 130 of file fiche_def.class.php.
References $all, $i, $Max, $row, $sql, cn, DatabaseCore\fetch_array(), and DatabaseCore\num_row().
Fiche_Def::get_attr_min | ( | $p_fiche_def_ref | ) |
retrieve the mandatory field of the card model
$p_fiche_def_ref |
Definition at line 725 of file fiche_def.class.php.
References $array, $f, $i, $Res, cn, DatabaseCore\fetch_array(), and DatabaseCore\num_row().
Referenced by Add().
Fiche_Def::get_by_category | ( | $p_cat | ) |
Get all the card where the fiche_def.frd_id is given in parameter.
Definition at line 367 of file fiche_def.class.php.
References $all, $i, $Max, $row, $sql, $t, cn, DatabaseCore\fetch_array(), and DatabaseCore\num_row().
Fiche_Def::get_by_type | ( | $step = 0 | ) |
Get all the card where the fiche_def.fd_id is given in parameter.
$step | = 0 we don't use the offset, page_size,... $step = 1 we use the jnr_bar_nav |
Definition at line 344 of file fiche_def.class.php.
Fiche_Def::getAttribut | ( | ) |
Get attribut of a fiche_def.
Definition at line 68 of file fiche_def.class.php.
References $attribut, $i, $Max, $row, $sql, $t, cn, DatabaseCore\fetch_array(), DatabaseCore\num_row(), and return.
Fiche_Def::HasAttribute | ( | $p_attr | ) |
Check in vw_fiche_def if a fiche has a attribut X.
$p_attr | attribut to check |
Definition at line 158 of file fiche_def.class.php.
References cn.
Fiche_Def::input | ( | ) |
show the content of the form to create a new Fiche_Def_Ref
Definition at line 57 of file fiche_def.class.php.
Fiche_Def::input_detail | ( | ) |
ask for detail
Definition at line 767 of file fiche_def.class.php.
References $class_base, $fd_description, $label, $r, _, h, and label.
Fiche_Def::input_new | ( | ) |
input for creating a new category
Definition at line 832 of file fiche_def.class.php.
References $class_base, $fd_description, _, and cn.
Fiche_Def::insertAttribut | ( | $p_ad_id, | |
$p_order = -1 ) |
insert a new attribut for this fiche_def
$p_ad_id | id of the attribut | |
int | $p_order | order of the attribut if -1 then computed |
Definition at line 612 of file fiche_def.class.php.
Fiche_Def::load | ( | ) |
alias for Fiche_Def->get(),
Definition at line 98 of file fiche_def.class.php.
Fiche_Def::myList | ( | ) |
list the card of a fd_id
Definition at line 393 of file fiche_def.class.php.
References $_GET, $_REQUEST, $bar, $i, $Max, $max_line, $offset, $Res, $step, $str, $str_dossier, ATTR_DEF_NAME, cn, DatabaseCore\fetch_array(), h, label, navigation_bar(), and DatabaseCore\num_row().
|
static |
display available attribut
$attribut_id | int SQL attr_def.ad_id |
$attribut_text | SQL attr_def.ad_text |
Definition at line 921 of file fiche_def.class.php.
References $class.
|
static |
display existing attribut
$attribut_id | int SQL attr_def.ad_id |
$attribut_text | SQL attr_def.ad_text |
Definition at line 910 of file fiche_def.class.php.
Fiche_Def::remove | ( | ) |
remove all the card from a categorie after having verify that the card is not used and then remove also the category
Definition at line 683 of file fiche_def.class.php.
Fiche_Def::removeAttribut | ( | $array | ) |
remove an attribut for this fiche_def
array | of ad_id to remove |
Definition at line 635 of file fiche_def.class.php.
Fiche_Def::save_class_base | ( | $p_label | ) |
Save the class base.
$p_label | label |
Definition at line 591 of file fiche_def.class.php.
References $Res, $sql, cn, and sql_string().
Fiche_Def::save_description | ( | $p_description | ) |
Definition at line 601 of file fiche_def.class.php.
References cn.
Fiche_Def::save_order | ( | $p_array | ) |
save the order of a card, update the column jnt_fic_attr.jnt_order
$p_array | containing the order |
Definition at line 659 of file fiche_def.class.php.
Fiche_Def::SaveLabel | ( | $p_label | ) |
Save the label of the fiche_def.
$p_label | label |
Definition at line 555 of file fiche_def.class.php.
References $Res, $sql, cn, and sql_string().
Fiche_Def::set_autocreate | ( | $p_label | ) |
set the auto create accounting item for each card and save it into the database
$p_label | true or false |
Definition at line 573 of file fiche_def.class.php.
Fiche_Def::to_array | ( | ) |
make an array of attributes of the category of card (FICHE_DEF.FD_ID) The array can be used with the function insert, it will return a struct like this : in the first key (av_textX), X is the ATTR_DEF::AD_ID
Example Array ( [av_text1] => Nom [av_text12] => Personne de contact [av_text5] => Poste Comptable [av_text13] => numéro de tva [av_text14] => Adresse [av_text15] => code postal [av_text24] => Ville [av_text16] => pays [av_text17] => téléphone [av_text18] => email [av_text23] => Quick Code )
$pfd_id | FICHE_DEF::FD_ID |
Exception | if the cat of card doesn't exist, Exception.getCode()=1 |
Definition at line 885 of file fiche_def.class.php.
References $a, $array, $idx, $ret, $sql, _, cn, and noalyss_str_replace().
Fiche_Def::$all |
Definition at line 38 of file fiche_def.class.php.
Referenced by get_all(), and get_by_category().
Fiche_Def::$attribut |
get from attr_xxx tables
Definition at line 39 of file fiche_def.class.php.
Referenced by DisplayAttribut(), and getAttribut().
Fiche_Def::$class_base |
fiche_def.fd_class_base
Definition at line 35 of file fiche_def.class.php.
Referenced by input_detail(), and input_new().
Fiche_Def::$cn |
database connection
Definition at line 32 of file fiche_def.class.php.
Fiche_Def::$create_account |
fd_create_account: flag
Definition at line 37 of file fiche_def.class.php.
Fiche_Def::$fd_description |
Description of the Card Category.
Definition at line 40 of file fiche_def.class.php.
Referenced by input_detail(), and input_new().
Fiche_Def::$fiche_def |
fiche_def.frd_id = fiche_def_ref.frd_id
Definition at line 36 of file fiche_def.class.php.
Fiche_Def::$id |
Fiche_Def::$label |