37 parent::__construct($p_table);
47 [
"value"=>1,
"label"=>_(
"Oui")],
48 [
"value"=>0,
"label"=>_(
"Non")]
57 $this->
set_order([
"me_code",
"pmo_order",
"pmo_default"]);
93 return $mobile_device_table;
98 if ( $p_key ==
"me_code") {
101 $select->value=
$cn->make_array(
"select me_code , me_code ||' '||coalesce(me_description,'') from menu_ref
103 me_type in ('PL','ME') and trim(me_code) != 'new_line'
113 if ( $p_key ==
'me_code') {
128 $profile_mobile_sql->me_code=strtoupper($profile_mobile_sql->getp(
'me_code'));
129 $me_code=$profile_mobile_sql->me_code;
132 $pmo_id=$profile_mobile_sql->getp(
"pmo_id");
135 if (
$cn->get_value(
"select count(*) from profile_mobile where p_id = $1 and me_code=$2 and pmo_id <> $3",
138 $this->
set_error(
"me_code", _(
"Doublon"));
141 if (
isNumber($profile_mobile_sql->getp(
"pmo_order")) != 1 ) {
142 $this->
set_error(
"pmo_order", _(
"doit ĂȘtre un nombre"));
145 if (
$cn->get_value(
"select count(*) from menu_ref where me_code=$1",[
$me_code]) == 0) {
146 $this->
set_error (
"me_code",_(
'Menu code invalide'));
td($p_string='', $p_extra='')
surround the string with td
Html Input , create a tag <SELECT> ... </SELECT> if readonly == true then display the label correspon...
Purpose is to propose a librairy to display a table content and allow to update and delete row ,...
count_error()
returns the nb of errors found
set_delete_row($p_value)
Enable or disable the deletion of rows.
set_append_row($p_value)
Enable or disable the appending of rows.
set_col_sort($p_num)
When adding an element ,we place it thanks the DOM Attribute sort_value set it to -1 if you want one ...
set_col_tips($p_key, $p_comment)
Set the info for a column, use Icon_Action::infobulle the message are in message_javascript....
set_col_type($p_key, $p_value, $p_array=NULL)
set the type of a column , it will change in the input db box , the select must supply an array of po...
set_header_option($p_key, $p_value)
add extra to column Header, normally class or style
set_object_name($p_object_name)
Set the object_name.
set_sort_column($p_col)
set the column to sort by default
add_json_param($p_attribute, $p_value)
Add json parameter to the current one.
set_callback($p_file)
set the callback function that is passed to javascript
set_property_visible($p_key, $p_value)
set a column of the data row visible or not
set_error($p_col, $p_message)
set the error message for a wrong input
set_col_label($p_key, $p_display)
set the name to display for a column
Manage the table profile_mobile.
$profile_id
profile_mobile.p_id profile
static build($p_id, $profile_id)
set_profile_id($profile_id)
check()
before inserting or updating, check that the data are correct ,
__construct(Profile_Mobile_SQL $p_table)
input_custom($p_key, $p_value)
this function let you create your own input , for example for a ITEXT , a IRADIO ,...
display_row_custom($p_key, $p_value, $p_id=0)
When displaying a row, if a column has the type "custom" , we can call this function to display prope...
ORM abstract of the table public.profile_mobile.