noalyss Version-9
|
contains the attributes of a card , manage them, save them , ... More...
Public Member Functions | |
__construct ($cn, $ad_id=0) | |
__toString () | |
build_input ($p_fiche_def=null) | |
build the needed elements to display More... | |
get_ad_extra () | |
get_ad_id () | |
get_ad_size () | |
get_ad_text () | |
get_ad_type () | |
get_av_text () | |
get_jnt_order () | |
getDisplayMode () | |
input ($p_fiche_def=null) | |
input a property of a card More... | |
print () | |
Compute a HTML string in a TR element with information of this card property. More... | |
set_ad_extra ($ad_extra) | |
set_ad_id ($ad_id) | |
set_ad_size ($ad_size) | |
set_ad_text ($ad_text) | |
set_ad_type ($ad_type) | |
set_av_text ($av_text) | |
set_jnt_order ($jnt_order) | |
setDisplayMode ($p_mode) | |
Static Public Member Functions | |
static | findProperty ($attr_def_id, $a_property) |
return the Property of an array of property with the right ad_id More... | |
static | load (Fiche $fiche) |
Load all the attribute of a card , it modifies the parameter $fiche. More... | |
static | update (Fiche $p_fiche) |
update all the data of the card , including f_enable. if we are in a transaction we don't commit here , else if not then a transaction is started and committed . The member attributes $p_fiche->attribut will be saved into fiche_detail after transforming if needed. If a transaction is started if there is none, so updating a card is always in a transaction. More... | |
Data Fields | |
$ad_extra | |
ad_extra extra info for a attribute More... | |
$ad_id | |
ad_id int id of the attribute attr_def.ad_id More... | |
$ad_size | |
ad_size int size of the attribute More... | |
$ad_text | |
ad_text string label of the attribute attr_def.ad_def More... | |
$ad_type | |
ad_type string : type of this attribute (select, text ,...) More... | |
$av_text | |
av_text string value of this attribute More... | |
$cn | |
cn database connexion More... | |
$jnt_order | |
jnt_order order to display More... | |
Protected Attributes | |
$display_mode | |
display mode values are large , window , display Property depending of this mode. More... | |
Private Member Functions | |
add_link ($p_ad_id, $p_text) | |
add a link More... | |
contains the attributes of a card , manage them, save them , ...
Definition at line 32 of file card_property.class.php.
Card_Property::__construct | ( | $cn, | |
$ad_id = 0 |
|||
) |
Definition at line 53 of file card_property.class.php.
Card_Property::__toString | ( | ) |
Definition at line 59 of file card_property.class.php.
|
private |
add a link
$p_ad_id | |
$p_text |
Definition at line 660 of file card_property.class.php.
References $url, ATTR_DEF_EMAIL, ATTR_DEF_FAX, ATTR_DEF_WEBSITE, elseif, linkTo(), and mailTo().
Card_Property::build_input | ( | $p_fiche_def = null | ) |
build the needed elements to display
Object | Fiche_Def $p_fiche_def |
Definition at line 156 of file card_property.class.php.
References $a, $ad_extra, $ad_id, $ad_size, $ad_text, $av_text, $filter, $result, $sql, ATTR_DEF_ACCOUNT, ATTR_DEF_NAME, ATTR_DEF_QUICKCODE, ATTR_DEF_TVA, cn, elseif, DatabaseCore\fetch_array(), Icon_Action\infobulle(), noalyss_strlentrim(), value, and Icon_Action\warnbulle().
Referenced by input().
|
static |
return the Property of an array of property with the right ad_id
int | $attr_def_id | the search attr_def_id |
array | $a_property | array of Card_Property |
Definition at line 679 of file card_property.class.php.
References $i, $nb, and get_ad_id().
Card_Property::get_ad_extra | ( | ) |
Definition at line 101 of file card_property.class.php.
References $ad_extra.
Card_Property::get_ad_id | ( | ) |
Definition at line 76 of file card_property.class.php.
References $ad_id.
Referenced by findProperty().
Card_Property::get_ad_size | ( | ) |
Definition at line 96 of file card_property.class.php.
References $ad_size.
Card_Property::get_ad_text | ( | ) |
Definition at line 81 of file card_property.class.php.
References $ad_text.
Card_Property::get_ad_type | ( | ) |
Definition at line 91 of file card_property.class.php.
References $ad_type.
Card_Property::get_av_text | ( | ) |
Definition at line 86 of file card_property.class.php.
References $av_text.
Card_Property::get_jnt_order | ( | ) |
Card_Property::getDisplayMode | ( | ) |
Definition at line 71 of file card_property.class.php.
References $display_mode.
Card_Property::input | ( | $p_fiche_def = null | ) |
input a property of a card
Fiche_Def | $p_fiche_def |
Definition at line 373 of file card_property.class.php.
References $r, $result, $url, build_input(), input(), and td().
Referenced by input().
|
static |
Load all the attribute of a card , it modifies the parameter $fiche.
Usually called from fiche::insert and fiche::update . In the same time, it will synchronize the attributes which the database. The attributes (public.fiche_detail) will be ordered in the member attribute $fiche->attribut
$fiche | Fiche Full fill this card with all the attributes |
Definition at line 293 of file card_property.class.php.
References $e, $f, $fiche, $fiche_def, $flag, $i, $Max, $row, $sql, elseif, DatabaseCore\fetch_array(), and DatabaseCore\num_row().
Referenced by Fiche\getAttribut().
Card_Property::print | ( | ) |
Compute a HTML string in a TR element with information of this card property.
Definition at line 394 of file card_property.class.php.
References $av_text, $class, $msg, $ret, $url, $value, $w, ATTR_DEF_NAME, ATTR_DEF_QUICKCODE, cn, Icon_Action\infobulle(), and Icon_Action\warnbulle().
Card_Property::set_ad_extra | ( | $ad_extra | ) |
Definition at line 136 of file card_property.class.php.
References $ad_extra.
Card_Property::set_ad_id | ( | $ad_id | ) |
Definition at line 111 of file card_property.class.php.
References $ad_id.
Card_Property::set_ad_size | ( | $ad_size | ) |
Definition at line 131 of file card_property.class.php.
References $ad_size.
Card_Property::set_ad_text | ( | $ad_text | ) |
Definition at line 116 of file card_property.class.php.
References $ad_text.
Card_Property::set_ad_type | ( | $ad_type | ) |
Definition at line 126 of file card_property.class.php.
References $ad_type.
Card_Property::set_av_text | ( | $av_text | ) |
Definition at line 121 of file card_property.class.php.
References $av_text.
Card_Property::set_jnt_order | ( | $jnt_order | ) |
Definition at line 141 of file card_property.class.php.
References $jnt_order.
Card_Property::setDisplayMode | ( | $p_mode | ) |
Definition at line 63 of file card_property.class.php.
|
static |
update all the data of the card , including f_enable. if we are in a transaction we don't commit here , else if not then a transaction is started and committed . The member attributes $p_fiche->attribut will be saved into fiche_detail after transforming if needed. If a transaction is started if there is none, so updating a card is always in a transaction.
Definition at line 454 of file card_property.class.php.
References $e, $name, $sql, $tmp, $value, ATTR_DEF_ACCOUNT, ATTR_DEF_NAME, ATTR_DEF_QUICKCODE, ATTR_DEF_TVA, DatabaseCore\fetch_array(), Fiche\get_f_enable(), h, noalyss_strip_tags(), noalyss_strlentrim(), DatabaseCore\num_row(), record_log(), sql_string(), and Fiche\strAttribut().
Referenced by Fiche\insert(), and Fiche\update().
Card_Property::$ad_extra |
ad_extra extra info for a attribute
Definition at line 45 of file card_property.class.php.
Referenced by build_input(), get_ad_extra(), and set_ad_extra().
Card_Property::$ad_id |
ad_id int id of the attribute attr_def.ad_id
Definition at line 35 of file card_property.class.php.
Referenced by __construct(), build_input(), get_ad_id(), and set_ad_id().
Card_Property::$ad_size |
ad_size int size of the attribute
Definition at line 43 of file card_property.class.php.
Referenced by build_input(), get_ad_size(), and set_ad_size().
Card_Property::$ad_text |
ad_text string label of the attribute attr_def.ad_def
Definition at line 37 of file card_property.class.php.
Referenced by build_input(), get_ad_text(), and set_ad_text().
Card_Property::$ad_type |
ad_type string : type of this attribute (select, text ,...)
Definition at line 41 of file card_property.class.php.
Referenced by get_ad_type(), and set_ad_type().
Card_Property::$av_text |
av_text string value of this attribute
Definition at line 39 of file card_property.class.php.
Referenced by build_input(), get_av_text(), print(), and set_av_text().
Card_Property::$cn |
cn database connexion
Definition at line 49 of file card_property.class.php.
Referenced by __construct().
|
protected |
display mode values are large , window , display Property depending of this mode.
Definition at line 51 of file card_property.class.php.
Referenced by getDisplayMode().
Card_Property::$jnt_order |
jnt_order order to display
Definition at line 47 of file card_property.class.php.
Referenced by get_jnt_order(), and set_jnt_order().