noalyss Version-9
|
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. More... | |
count_category ($p_frd_id) | |
count the number of fiche_def (category) which has the frd_id (type of category) More... | |
display () | |
Display all card categories into a table. More... | |
DisplayAttribut ($str="") | |
Display all the attribut of the fiche_def. More... | |
get () | |
Get attribut of the fiche_def. More... | |
get_all () | |
Get all the fiche_def. More... | |
get_attr_min ($p_fiche_def_ref) | |
retrieve the mandatory field of the card model More... | |
get_by_category ($p_cat) | |
Get all the card where the fiche_def.frd_id is given in parameter. More... | |
get_by_type ($step=0) | |
Get all the card where the fiche_def.fd_id is given in parameter. More... | |
getAttribut () | |
Get attribut of a fiche_def. More... | |
HasAttribute ($p_attr) | |
Check in vw_fiche_def if a fiche has a attribut X. More... | |
input () | |
show the content of the form to create a new Fiche_Def_Ref More... | |
input_base () | |
show input for the basic attribute : label, class_base, create_account use only when we want to update More... | |
input_detail () | |
input_new () | |
insertAttribut ($p_ad_id, $p_order=-1) | |
insert a new attribut for this fiche_def More... | |
load () | |
alias for Fiche_Def->get(), More... | |
myList () | |
list the card of a fd_id More... | |
remove () | |
remove all the card from a categorie after having verify that the card is not used and then remove also the category More... | |
removeAttribut ($array) | |
remove an attribut for this fiche_def More... | |
save_class_base ($p_label) | |
Save the class base. More... | |
save_description ($p_description) | |
save_order ($p_array) | |
save the order of a card, update the column jnt_fic_attr.jnt_order More... | |
SaveLabel ($p_label) | |
Save the label of the fiche_def. More... | |
set_autocreate ($p_label) | |
set the auto create accounting item for each card and save it into the database More... | |
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 More... | |
Data Fields | |
$all | |
$attribut | |
get from attr_xxx tables More... | |
$class_base | |
fiche_def.fd_class_base More... | |
$cn | |
database connection More... | |
$create_account | |
fd_create_account: flag More... | |
$fd_description | |
Description of the Card Category. More... | |
$fiche_def | |
fiche_def.frd_id = fiche_def_ref.frd_id More... | |
$id | |
id (fiche_def.fd_id More... | |
$label | |
fiche_def.fd_label More... | |
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 214 of file fiche_def.class.php.
References $array, $count, $fd_id, $http, $order, $Res, $row, $sql, alert(), ATTR_DEF_ACCOUNT, ATTR_DEF_NAME, cn, get_attr_min(), noalyss_strlentrim(), 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 778 of file fiche_def.class.php.
Fiche_Def::display | ( | ) |
Display all card categories into a table.
Definition at line 181 of file fiche_def.class.php.
References $_GET, $order, $res, $tab, $url, cn, and HtmlInput\get_to_string().
Fiche_Def::DisplayAttribut | ( | $str = "" | ) |
Display all the attribut of the fiche_def.
$str | give the action possible values are remove, empty |
Definition at line 498 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.
Referenced by input_detail().
Fiche_Def::get | ( | ) |
Get attribut of the fiche_def.
Definition at line 118 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 142 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 748 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 357 of file fiche_def.class.php.
References $all, $i, $Max, $row, $sql, 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 334 of file fiche_def.class.php.
Fiche_Def::getAttribut | ( | ) |
Get attribut of a fiche_def.
Definition at line 80 of file fiche_def.class.php.
References $attribut, $i, $Max, $row, $sql, 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 170 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.
References $class_base, $fd_description, and cn.
Referenced by input_new().
Fiche_Def::input_base | ( | ) |
show input for the basic attribute : label, class_base, create_account use only when we want to update
Definition at line 465 of file fiche_def.class.php.
References $ck, $class_base, $fd_description, $label, $r, and label.
Referenced by input_detail().
Fiche_Def::input_detail | ( | ) |
Definition at line 783 of file fiche_def.class.php.
References $r, DisplayAttribut(), h, HtmlInput\hidden(), input_base(), label, p(), and HtmlInput\submit().
Fiche_Def::input_new | ( | ) |
Definition at line 829 of file fiche_def.class.php.
References HtmlInput\hidden(), input(), and HtmlInput\submit().
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 635 of file fiche_def.class.php.
Fiche_Def::load | ( | ) |
alias for Fiche_Def->get(),
Definition at line 110 of file fiche_def.class.php.
Fiche_Def::myList | ( | ) |
list the card of a fd_id
Definition at line 383 of file fiche_def.class.php.
References $_GET, $_REQUEST, $bar, $i, $Max, $max_line, $offset, $page, $Res, $step, $str, $str_dossier, ATTR_DEF_NAME, cn, DatabaseCore\fetch_array(), h, HtmlInput\hidden(), label, navigation_bar(), DatabaseCore\num_row(), and HtmlInput\submit().
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 706 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 658 of file fiche_def.class.php.
Fiche_Def::save_class_base | ( | $p_label | ) |
Save the class base.
$p_label | label |
Definition at line 614 of file fiche_def.class.php.
References $Res, $sql, cn, and sql_string().
Fiche_Def::save_description | ( | $p_description | ) |
Definition at line 624 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 682 of file fiche_def.class.php.
Fiche_Def::SaveLabel | ( | $p_label | ) |
Save the label of the fiche_def.
$p_label | label |
Definition at line 579 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 597 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 867 of file fiche_def.class.php.
References $a, $array, $idx, $ret, $sql, $val, 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(), and input_base().
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(), and input_base().
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 |