noalyss
Version-9
|
Manage the table attr_def. More...
Public Member Functions | |
__construct ($p_cn, $p_id=0) | |
delete () | |
get_parameter ($p_string) | |
save () | |
Insert or update : if the row already exists, update otherwise insert. More... | |
set_parameter ($p_string, $p_value) | |
to_array ($prefix="") | |
Turn an object (row) into an array, and the key could be prefixed with $prefix. More... | |
update () | |
verify () | |
Public Member Functions inherited from Attr_def_SQL | |
__construct (DatabaseCore $p_cn, $p_id=-1) | |
Public Member Functions inherited from Table_Data_SQL | |
build_query () | |
Build the SQL select statement for querying the object and returns it. More... | |
count ($p_where="", $p_array=null) | |
return the number of count in the table corresponding to the where condition More... | |
exist () | |
Count the number of record with the id ,. More... | |
get_all_to_array ($p_key_col, $p_cond="", $p_array=NULL) | |
Get all the row and use the p_key_code are the key value of array. More... | |
insert () | |
load () | |
seek ($cond='', $p_array=null) | |
retrieve array of object thanks a condition More... | |
Public Member Functions inherited from Data_SQL | |
collect_objects ($cond='', $p_array=null) | |
return an array of objects. More... | |
from_array ($p_array) | |
Transform an array into object. More... | |
get ($p_string) | |
get the value thanks the colum name and not the alias (name). More... | |
get_cn () | |
get_info () | |
get_name () | |
get_object ($p_ret, $idx) | |
get_pk_value () | |
get_primary_key () | |
get_type () | |
getp ($p_string) | |
set the value thanks the alias name instead of the colum name More... | |
next ($ret, $i) | |
get_seek return the next object, the return of the query must have all the column of the object More... | |
set ($p_string, $p_value) | |
set the value thanks the colum name and not the alias (name) More... | |
set_cn ($cn) | |
set_name ($name) | |
set_pk_value ($p_value) | |
set_primary_key ($primary_key) | |
set_type ($type) | |
setp ($p_string, $p_value) | |
set the value thanks the alias name instead of the colum name More... | |
Static Public Member Functions | |
static | sort_by_id ($o1, $o2) |
Additional Inherited Members | |
Data Fields inherited from Data_SQL | |
$cn | |
$date_format | |
Type of the data. More... | |
$default | |
defaullt date format More... | |
$name | |
Database connection. More... | |
$primary_key | |
Array of logical and real name. More... | |
$type | |
Column name of the primary key. More... | |
Manage the table attr_def.
Definition at line 13 of file fiche_attr.class.php.
Fiche_Attr::__construct | ( | $p_cn, | |
$p_id = 0 |
|||
) |
Reimplemented from Table_Data_SQL.
Definition at line 17 of file fiche_attr.class.php.
References $p_id.
Fiche_Attr::delete | ( | ) |
Fiche_Attr::get_parameter | ( | $p_string | ) |
Definition at line 22 of file fiche_attr.class.php.
References Data_SQL\getp().
Fiche_Attr::save | ( | ) |
Insert or update : if the row already exists, update otherwise insert.
Reimplemented from Data_SQL.
Definition at line 133 of file fiche_attr.class.php.
References Table_Data_SQL\insert(), and update().
Fiche_Attr::set_parameter | ( | $p_string, | |
$p_value | |||
) |
Definition at line 27 of file fiche_attr.class.php.
References Data_SQL\setp().
|
static |
Definition at line 124 of file fiche_attr.class.php.
Fiche_Attr::to_array | ( | $prefix = "" | ) |
Turn an object (row) into an array, and the key could be prefixed with $prefix.
string | $prefix | before the key |
Reimplemented from Data_SQL.
Definition at line 145 of file fiche_attr.class.php.
Fiche_Attr::update | ( | ) |
Reimplemented from Table_Data_SQL.
Definition at line 90 of file fiche_attr.class.php.
References $e, record_log(), and verify().
Referenced by save().
Fiche_Attr::verify | ( | ) |
Reimplemented from Data_SQL.
Definition at line 32 of file fiche_attr.class.php.
References $e, cn, h, isNumber(), and record_log().
Referenced by update().