noalyss Version-9
|
This class manages the table todo_list. More...
Public Member Functions | |
__construct ($p_init) | |
add_share ($p_login) | |
Add a share with someone. More... | |
check ($p_idx, &$p_value) | |
delete () | |
display () | |
Display the note. More... | |
display_row ($p_odd, $with_tag='Y') | |
display_user () | |
display all the user to select the user with who we want to share the connected user is not shown @global type $g_user More... | |
get_class () | |
Highlight today. More... | |
get_info () | |
get_parameter ($p_string) | |
insert () | |
is_shared_with ($p_login) | |
return the todo_list_shared.id of the note, if nothing is found then return 0 More... | |
load () | |
load the todo_list row thanks it's ID More... | |
load_all () | |
load all the task More... | |
remove_share ($p_login) | |
remove the share with someone More... | |
remove_shared_with ($p_array) | |
Insert a share for current note in the table todo_list_shared The public shared note cannot be removed. More... | |
save () | |
save_shared_with ($p_array) | |
Insert a share for current note in the table todo_list_shared. More... | |
set_is_public ($p_value) | |
set a note public More... | |
set_parameter ($p_string, $p_value) | |
toXML () | |
transform into xml for ajax answer More... | |
update () | |
verify () | |
Static Public Member Functions | |
static | test_me () |
static testing function More... | |
static | to_object ($p_cn, $p_array) |
Data Fields | |
$tl_desc | |
Private Attributes | |
$cn | |
$is_public | |
$tl_date | |
$tl_id | |
$tl_title | |
$use_login | |
Static Private Attributes | |
static | $variable |
This class manages the table todo_list.
Data Member :
Definition at line 42 of file todo_list.class.php.
Todo_List::__construct | ( | $p_init | ) |
Definition at line 55 of file todo_list.class.php.
References cn.
Todo_List::add_share | ( | $p_login | ) |
Add a share with someone.
type | $p_login |
Definition at line 408 of file todo_list.class.php.
Todo_List::check | ( | $p_idx, | |
& | $p_value | ||
) |
Definition at line 74 of file todo_list.class.php.
References isDate(), isNumber(), and noalyss_strlentrim().
Referenced by set_parameter().
Todo_List::delete | ( | ) |
Definition at line 233 of file todo_list.class.php.
References $g_user, $res, $sql, cn, and SHARENOTEREMOVE.
Todo_List::display | ( | ) |
Display the note.
Definition at line 302 of file todo_list.class.php.
Todo_List::display_row | ( | $p_odd, | |
$with_tag = 'Y' |
|||
) |
Definition at line 322 of file todo_list.class.php.
References $r, and get_class().
Todo_List::display_user | ( | ) |
display all the user to select the user with who we want to share the connected user is not shown @global type $g_user
Definition at line 383 of file todo_list.class.php.
Todo_List::get_class | ( | ) |
Highlight today.
Definition at line 315 of file todo_list.class.php.
References $a.
Referenced by display_row().
Todo_List::get_info | ( | ) |
Todo_List::get_parameter | ( | $p_string | ) |
Definition at line 64 of file todo_list.class.php.
References $idx, and $variable.
Referenced by save().
Todo_List::insert | ( | ) |
Definition at line 128 of file todo_list.class.php.
References $res, $sql, alert(), cn, DatabaseCore\fetch_result(), and verify().
Referenced by save().
Todo_List::is_shared_with | ( | $p_login | ) |
return the todo_list_shared.id of the note, if nothing is found then return 0
$p_login |
Definition at line 398 of file todo_list.class.php.
Todo_List::load | ( | ) |
load the todo_list row thanks it's ID
Definition at line 213 of file todo_list.class.php.
References $idx, $res, $row, $sql, $variable, cn, DatabaseCore\fetch_array(), and DatabaseCore\num_row().
Referenced by display().
Todo_List::load_all | ( | ) |
load all the task
Definition at line 188 of file todo_list.class.php.
References $array, $res, $sql, cn, and DatabaseCore\fetch_all().
Todo_List::remove_share | ( | $p_login | ) |
remove the share with someone
type | $p_login |
Definition at line 416 of file todo_list.class.php.
Todo_List::remove_shared_with | ( | $p_array | ) |
Insert a share for current note in the table todo_list_shared The public shared note cannot be removed.
string | (use_login) |
Definition at line 292 of file todo_list.class.php.
Todo_List::save | ( | ) |
Definition at line 120 of file todo_list.class.php.
References get_parameter(), insert(), and update().
Todo_List::save_shared_with | ( | $p_array | ) |
Insert a share for current note in the table todo_list_shared.
string | (use_login) |
Definition at line 276 of file todo_list.class.php.
Todo_List::set_is_public | ( | $p_value | ) |
set a note public
$p_value | is Y or N |
Definition at line 263 of file todo_list.class.php.
References $g_user, and SHARENOTEPUBLIC.
Todo_List::set_parameter | ( | $p_string, | |
$p_value | |||
) |
Definition at line 96 of file todo_list.class.php.
References $idx, $variable, and check().
|
static |
|
static |
Definition at line 359 of file todo_list.class.php.
Todo_List::toXML | ( | ) |
Todo_List::update | ( | ) |
Definition at line 157 of file todo_list.class.php.
References $res, $sql, cn, and verify().
Referenced by save().
Todo_List::verify | ( | ) |
|
private |
Definition at line 52 of file todo_list.class.php.
|
private |
Definition at line 53 of file todo_list.class.php.
|
private |
Definition at line 53 of file todo_list.class.php.
Todo_List::$tl_desc |
Definition at line 54 of file todo_list.class.php.
|
private |
Definition at line 53 of file todo_list.class.php.
|
private |
Definition at line 53 of file todo_list.class.php.
|
private |
Definition at line 53 of file todo_list.class.php.
|
staticprivate |
Definition at line 45 of file todo_list.class.php.