noalyss Version-9
|
Public Member Functions | |
__construct ($p_cn, $p_id=0) | |
constructor More... | |
__toString () | |
display ($p_view, $p_gen, $p_base, $retour="") | |
Display the object, the tags for the FORM are in the caller. More... | |
display_children ($p_view, $p_base) | |
Display the tree of childrens of the current Action + related parents. More... | |
display_parent ($p_view, $p_base) | |
Display the list of parent of the current Follow_Up. More... | |
display_short () | |
display a small form to enter a new event More... | |
export_csv ($p_array) | |
export to CSV the query the p_array has More... | |
export_csv_detail ($p_array) | |
export to CSV the detailled actions (tags, comment, related operations...), it could be a query in $p_array * task #0002035 More... | |
fromArray ($p_array) | |
put an array in the variable member, the indice is the member name More... | |
generate_document ($md_id, $p_array) | |
generate the document and add it to the action More... | |
get () | |
This function shows the detail of an action thanks the ag_id. More... | |
get_children ($p_id) | |
Compute an array of the complete tree depending of $p_id. More... | |
get_last ($p_limit) | |
return the last p_limit operation into an array, there is a security on user More... | |
get_late () | |
get the action where the remind day is today More... | |
get_parent () | |
Return the first parent of the event tree, or -1 if not found. More... | |
get_today () | |
get the action where the remind day is today More... | |
insert_action () | |
Insert a related action into the table action_gestion_related. More... | |
insert_operation () | |
insert a related operation More... | |
myList ($p_base, $p_filter="", $p_search="") | |
myList($p_base, $p_filter = "", $p_search = "") Show list of action by default if sorted on date More... | |
remove () | |
remove the action More... | |
remove_operation_deprecated () | |
remove a related operation More... | |
save () | |
Save the document and propose to save the generated document or to upload one, the data are included except the file. More... | |
save_short () | |
Add an event , with the minimum of informations, used in Dashboard and Scheduler. More... | |
tag_add ($p_t_id) | |
show the tags of the current objet normally used by ajax. More... | |
tag_cell ($p_view='UPD') | |
show the cell content in Display for the tags called also by ajax More... | |
tag_clear () | |
tag_get () | |
get the tags of the current objet More... | |
tag_remove ($p_t_id) | |
remove the tags of the current objet normally used by ajax More... | |
update () | |
Update the data into the database, the field ag_description could contain some HTML tags and must be saved in 2 column : one without formatting , one with. More... | |
verify () | |
Verify that data are correct. More... | |
view_list ($query, $extra_sql="") | |
display list of followup , used with card More... | |
Static Public Member Functions | |
static | action_print ($cn, $p_array) |
static | action_remove ($cn, $p_array) |
static | action_set_state ($cn, $p_array) |
static | action_tag_add ($cn, $p_array) |
static | action_tag_clear ($cn, $p_array) |
static | action_tag_remove ($cn, $p_array) |
static | create_query ($cn, $p_array=null) |
Get date from $_GET and create the sql stmt for the query. More... | |
static | display_saved_search () |
display a form with the saved search More... | |
static | display_search ($cn, $inner=false) |
Display only a search box for searching an action. More... | |
static | filter_by_tag ($cn, $p_array=null) |
Create a subquery to filter thanks the selected tag. More... | |
static | get_all_operation ($p_jr_id) |
static | short_list ($cn, $p_sql) |
Show the result of a search in an inner windows, the result is limited to 25. More... | |
static | show_action_add ($pa_param) |
Show a button for adding follow-up action, display the FORM. More... | |
static | show_action_list ($cn, $p_base) |
show a list of documents More... | |
static | SQL_list_action () |
return the SQL to make a list of actions Colum : More... | |
static | sql_security_filter ($cn, $p_mode) |
Create a filter based on the current user,. More... | |
Data Fields | |
$aAction_detail | |
Array of action details. More... | |
$action | |
$action string related action More... | |
$ag_contact | |
$ag_description | |
$ag_description_id | |
$ag_dest | |
$ag_hour | |
$ag_id | |
Follow_Up.ag_id. More... | |
$ag_priority | |
$ag_ref | |
$ag_remind_date | |
$ag_state | |
$ag_timestamp | |
$ag_title | |
$d_filename | |
$d_mimetype | |
$d_number | |
$db | |
$dt_id | |
$f_id | |
$f_id_dest | |
$operation | |
$operation string related operation More... | |
Definition at line 47 of file follow_up.class.php.
Follow_Up::__construct | ( | $p_cn, | |
$p_id = 0 |
|||
) |
constructor
constructor
p_cn | database connection |
Definition at line 90 of file follow_up.class.php.
Follow_Up::__toString | ( | ) |
Definition at line 102 of file follow_up.class.php.
References $r.
|
static |
Definition at line 1852 of file follow_up.class.php.
|
static |
Definition at line 1888 of file follow_up.class.php.
|
static |
Definition at line 1874 of file follow_up.class.php.
|
static |
Definition at line 1822 of file follow_up.class.php.
|
static |
Definition at line 1839 of file follow_up.class.php.
|
static |
Definition at line 1805 of file follow_up.class.php.
|
static |
Get date from $_GET and create the sql stmt for the query.
Definition at line 1420 of file follow_up.class.php.
References $_GET, $_REQUEST, $ag_state, $cn, $fiche, $http, $p_array, $str, filter_by_tag(), isDate(), isNumber(), noalyss_strlentrim(), print, sql_security_filter(), and sql_string().
Referenced by export_csv(), export_csv_detail(), and show_action_list().
Follow_Up::display | ( | $p_view, | |
$p_gen, | |||
$p_base, | |||
$retour = "" |
|||
) |
Display the object, the tags for the FORM are in the caller.
It will be used for adding and updating action
$p_view | form will be in readonly mode (value: READ, UPD or NEW ) |
$p_gen | true we show the tag for generating a doc (value : true or false) and adding files |
$p_base | is the ac parameter |
$retour | is the html code for the return button |
Definition at line 174 of file follow_up.class.php.
References $a, $ag_contact, $ag_dest, $ag_hour, $ag_id, $ag_priority, $ag_ref, $ag_remind_date, $ag_state, $ag_timestamp, $ag_title, $content, $date, $desc, $doc, $doc_type, $dt_id, $filter, $g_user, $iconcerned, $list_recipient, $menu, $num, $r, $readonly, $sp, $text, $tiers, $title, $w, ag_id, ATTR_DEF_FIRST_NAME, ATTR_DEF_NAME, db, elseif, noalyss_strlentrim(), NOTFOUND, HtmlInput\request_to_hidden(), HtmlInput\submit(), and tag_get().
Follow_Up::display_children | ( | $p_view, | |
$p_base | |||
) |
Display the tree of childrens of the current Action + related parents.
Definition at line 2068 of file follow_up.class.php.
References $action, $ag_id, $base, $class, $http, $js, ag_id, db, get_children(), h, id, Dossier\id(), HtmlInput\request_to_string(), and Icon_Action\trash().
Follow_Up::display_parent | ( | $p_view, | |
$p_base | |||
) |
Display the list of parent of the current Follow_Up.
$p_view | form will be in readonly mode (value: READ, UPD or NEW ) |
$p_base | is the ac parameter |
Definition at line 2155 of file follow_up.class.php.
References $base, $class, $http, $js, ag_id, db, h, id, Dossier\id(), HtmlInput\request_to_string(), and Icon_Action\trash().
|
static |
display a form with the saved search
Definition at line 1341 of file follow_up.class.php.
References $http, and Dossier\id().
Referenced by show_action_list().
|
static |
Display only a search box for searching an action.
$cn | database connx |
$inner | true if coming from an ajax (ajax_search_action) |
Show the default button (add action, show search...)
Definition at line 1240 of file follow_up.class.php.
References $_GET, $_REQUEST, $a, $ag_dest, $cn, $end, $f, $f_id, $g_user, $http, $list, $qcode, $start, $supl_hidden, $w, HtmlInput\array_to_hidden(), and HtmlInput\hidden().
Referenced by show_action_list().
Follow_Up::display_short | ( | ) |
display a small form to enter a new event
Definition at line 1924 of file follow_up.class.php.
Follow_Up::export_csv | ( | $p_array | ) |
export to CSV the query the p_array has
array | $p_array |
Definition at line 1580 of file follow_up.class.php.
References $p_array, $ret, $sql, create_query(), db, and DatabaseCore\num_row().
Follow_Up::export_csv_detail | ( | $p_array | ) |
export to CSV the detailled actions (tags, comment, related operations...), it could be a query in $p_array * task #0002035
array | $p_array |
Definition at line 1629 of file follow_up.class.php.
References $export_csv, $i, $p_array, $ret, $row, $sql, create_query(), db, DatabaseCore\fetch_array(), and DatabaseCore\num_row().
|
static |
Create a subquery to filter thanks the selected tag.
$cn | db connx |
$p_array |
Definition at line 1387 of file follow_up.class.php.
References $_GET, $i, $p_array, $query, elseif, isNumber(), and sql_string().
Referenced by create_query().
Follow_Up::fromArray | ( | $p_array | ) |
put an array in the variable member, the indice is the member name
$p_array | to parse
|
Definition at line 1091 of file follow_up.class.php.
References $ag_description, $ag_timestamp, $g_user, $http, $p_array, ag_id, and isDate().
Follow_Up::generate_document | ( | $md_id, | |
$p_array | |||
) |
generate the document and add it to the action
md_id | is the id of the document_modele |
$p_array | contains normally the $_POST |
Definition at line 1060 of file follow_up.class.php.
References $ag_id, $doc, $f_id_dest, $p_array, ag_id, and db.
Follow_Up::get | ( | ) |
This function shows the detail of an action thanks the ag_id.
Definition at line 487 of file follow_up.class.php.
References $r, $row, $sql, ag_id, ATTR_DEF_QUICKCODE, db, and DatabaseCore\fetch_all().
|
static |
Definition at line 1716 of file follow_up.class.php.
Follow_Up::get_children | ( | $p_id | ) |
Compute an array of the complete tree depending of $p_id.
$p_id | ag_id |
Definition at line 2031 of file follow_up.class.php.
References $p_id, $sql, and db.
Referenced by display_children().
Follow_Up::get_last | ( | $p_limit | ) |
return the last p_limit operation into an array, there is a security on user
$p_limit | is the max of operation to return |
Definition at line 1155 of file follow_up.class.php.
Follow_Up::get_late | ( | ) |
get the action where the remind day is today
Definition at line 1191 of file follow_up.class.php.
Follow_Up::get_parent | ( | ) |
Return the first parent of the event tree, or -1 if not found.
The parent is an action with a lower id, so it can happen than an action has several ones
Definition at line 1999 of file follow_up.class.php.
Follow_Up::get_today | ( | ) |
get the action where the remind day is today
Definition at line 1173 of file follow_up.class.php.
References $array, $sql, db, and sql_security_filter().
Follow_Up::insert_action | ( | ) |
Insert a related action into the table action_gestion_related.
Definition at line 1556 of file follow_up.class.php.
Follow_Up::insert_operation | ( | ) |
insert a related operation
Definition at line 1204 of file follow_up.class.php.
Follow_Up::myList | ( | $p_base, | |
$p_filter = "" , |
|||
$p_search = "" |
|||
) |
myList($p_base, $p_filter = "", $p_search = "") Show list of action by default if sorted on date
$p_base | base url with ac... |
$p_filter | filters on the document_type |
$p_search | must a valid sql command ( ex 'and ag_title like upper('hjkh')) |
Definition at line 689 of file follow_up.class.php.
References $_GET, $a_row, $bar, $checkbox, $href, $i, $limit, $max_line, $offset, $ord, $p_filter, $page, $priority, $r, $Res, $row, $sort, $sql, $st, $step, $table, $url, db, DatabaseCore\escape_string(), DatabaseCore\fetch_all(), HtmlInput\filter_table(), format_date(), HtmlInput\get_to_string(), h, ICheckBox\javascript_set_range(), navigation_bar(), noalyss_strlentrim(), SQL_list_action(), td(), and th().
Follow_Up::remove | ( | ) |
remove the action
Definition at line 1129 of file follow_up.class.php.
Follow_Up::remove_operation_deprecated | ( | ) |
remove a related operation
Definition at line 1224 of file follow_up.class.php.
Follow_Up::save | ( | ) |
Save the document and propose to save the generated document or to upload one, the data are included except the file.
Temporary the generated document is save. The files into $_FILES['file_upload'] will be saved
Definition at line 543 of file follow_up.class.php.
References $_POST, $act, $ag_id, $ag_ref, $doc, $dt_id, $http, $i, $sql, $str_file, ag_id, Document_Option\can_add_comment(), db, Fiche\get_by_qcode(), insert_action(), insert_operation(), and noalyss_trim().
Follow_Up::save_short | ( | ) |
Add an event , with the minimum of informations, used in Dashboard and Scheduler.
If ag_ref already exist then compute a new one
Definition at line 1933 of file follow_up.class.php.
References $ag_ref, $g_user, $sql, $str_file, ag_id, and db.
|
static |
Show the result of a search in an inner windows, the result is limited to 25.
Database | $cn | database connx |
string | $p_sql | where clause of the query |
Definition at line 1533 of file follow_up.class.php.
References $a_row, $cn, $limit, $max_line, $Res, $sql, and DatabaseCore\fetch_all().
|
static |
Show a button for adding follow-up action, display the FORM.
array | $pa_param,will | be converted in a HIDDEN input type in the form |
Definition at line 1375 of file follow_up.class.php.
|
static |
show a list of documents
$cn | database connextion |
$p_base | base URL |
Definition at line 1352 of file follow_up.class.php.
References $act, $cn, $query, create_query(), display_saved_search(), display_search(), and HtmlInput\request_to_hidden().
|
static |
return the SQL to make a list of actions Colum :
Definition at line 659 of file follow_up.class.php.
References $sql.
Referenced by myList(), and view_list().
|
static |
Create a filter based on the current user,.
type | $cn | Database connection |
type | $p_mode | Mode is R (for Read) or W (for write) |
Definition at line 135 of file follow_up.class.php.
References $cn, $g_user, $profile, $sql, and record_log().
Referenced by create_query(), and get_today().
Follow_Up::tag_add | ( | $p_t_id | ) |
show the tags of the current objet normally used by ajax.
The same tag cannot be added twice
Definition at line 1751 of file follow_up.class.php.
Follow_Up::tag_cell | ( | $p_view = 'UPD' | ) |
show the cell content in Display for the tags called also by ajax
Definition at line 1779 of file follow_up.class.php.
References $e, $g_user, $js, ag_id, HtmlInput\button(), id, tag_get(), and Icon_Action\trash().
Follow_Up::tag_clear | ( | ) |
Follow_Up::tag_get | ( | ) |
get the tags of the current objet
Definition at line 1733 of file follow_up.class.php.
References $array, $sql, ag_id, and db.
Referenced by display(), and tag_cell().
Follow_Up::tag_remove | ( | $p_t_id | ) |
remove the tags of the current objet normally used by ajax
Definition at line 1767 of file follow_up.class.php.
Follow_Up::update | ( | ) |
Update the data into the database, the field ag_description could contain some HTML tags and must be saved in 2 column : one without formatting , one with.
Definition at line 896 of file follow_up.class.php.
References $_POST, $act, $ag_id, $doc, $http, $i, $old, $tiers, ag_id, db, h2(), insert_action(), insert_operation(), and Document_Option\is_enable_comment().
Follow_Up::verify | ( | ) |
Verify that data are correct.
Exception |
Definition at line 1905 of file follow_up.class.php.
References isDate().
Follow_Up::view_list | ( | $query, | |
$extra_sql = "" |
|||
) |
display list of followup , used with card
$query | string SQL query |
$extra_sql | string extra to add to the query , example "limit 20" |
Definition at line 861 of file follow_up.class.php.
References $sql, and SQL_list_action().
Follow_Up::$aAction_detail |
Array of action details.
Definition at line 68 of file follow_up.class.php.
Follow_Up::$action |
$action string related action
Definition at line 83 of file follow_up.class.php.
Referenced by display_children().
Follow_Up::$ag_contact |
Follow_Up::$ag_description |
description of the action with HTML tag
Definition at line 65 of file follow_up.class.php.
Referenced by fromArray().
Follow_Up::$ag_description_id |
Definition at line 74 of file follow_up.class.php.
Follow_Up::$ag_dest |
$ag_dest person who is in charged
Definition at line 62 of file follow_up.class.php.
Referenced by display(), and display_search().
Follow_Up::$ag_hour |
$ag_hour is the hour of the meeting, action
Definition at line 60 of file follow_up.class.php.
Referenced by display().
Follow_Up::$ag_id |
Follow_Up.ag_id.
Definition at line 66 of file follow_up.class.php.
Referenced by display(), display_children(), generate_document(), save(), and update().
Follow_Up::$ag_priority |
$ag_priority is the priority 1 High, 2 medium, 3 low
Definition at line 61 of file follow_up.class.php.
Referenced by display().
Follow_Up::$ag_ref |
$ag_ref is the ref
Definition at line 59 of file follow_up.class.php.
Referenced by display(), save(), and save_short().
Follow_Up::$ag_remind_date |
Follow_Up::$ag_state |
$ag_state stage of the document (printed, send to client...)
Definition at line 53 of file follow_up.class.php.
Referenced by create_query(), and display().
Follow_Up::$ag_timestamp |
$ag_timestamp document date (ag_gestion.ag_timestamp)
Definition at line 51 of file follow_up.class.php.
Referenced by display(), and fromArray().
Follow_Up::$ag_title |
$ag_title title document
Definition at line 57 of file follow_up.class.php.
Referenced by display().
Follow_Up::$d_filename |
$d_filename filename's document
Definition at line 55 of file follow_up.class.php.
Follow_Up::$d_mimetype |
$d_mimetype document's filename
Definition at line 56 of file follow_up.class.php.
Follow_Up::$d_number |
$d_number number of the document
Definition at line 54 of file follow_up.class.php.
Follow_Up::$db |
$db database connexion
Definition at line 50 of file follow_up.class.php.
Referenced by display_short().
Follow_Up::$dt_id |
$dt_id type of the document (document_type.dt_id)
Definition at line 52 of file follow_up.class.php.
Follow_Up::$f_id |
$f_id fiche id (From field )
Definition at line 58 of file follow_up.class.php.
Referenced by display_search().
Follow_Up::$f_id_dest |
followup action recipient
Definition at line 67 of file follow_up.class.php.
Referenced by generate_document().
Follow_Up::$operation |
$operation string related operation
Definition at line 78 of file follow_up.class.php.