noalyss Version-9
Static Public Member Functions
Document_Option Class Reference

in follow-up , you have action which can be set with different options depending of the type of documents like invoicing, meeting, ... More...

+ Collaboration diagram for Document_Option:

Static Public Member Functions

static can_add_comment ($p_id)
 Returns true if we can add a comment , or false if it is not possible. More...
 
static is_enable_comment ($p_document_type)
 returns true if comment are available otherwise false More...
 
static is_enable_contact_multiple ($p_document_type)
 returns true if the operation_detail is enable, otherwise false More...
 
static is_enable_editable_description ($p_document_type)
 returns true if it is possible to edit the description , otherwise false More...
 
static is_enable_make_feenote ($p_document_type)
 returns true if the operation_detail is enable, otherwise false More...
 
static is_enable_make_invoice ($p_document_type)
 returns true if the operation_detail is enable, otherwise false More...
 
static is_enable_operation_detail ($p_document_type)
 returns true if the operation_detail is enable, otherwise false More...
 
static is_enable_video_conf ($p_document_type)
 returns true there is a videoconf enable More...
 
static option_comment ($p_document_type)
 returns option from the operation_detail More...
 
static option_operation_detail ($p_document_type)
 returns option from the operation_detail More...
 
static option_video_conf ($p_document_type)
 returns the videoconf server More...
 

Detailed Description

in follow-up , you have action which can be set with different options depending of the type of documents like invoicing, meeting, ...

Definition at line 33 of file document_option.class.php.

Member Function Documentation

◆ can_add_comment()

static Document_Option::can_add_comment (   $p_id)
static

Returns true if we can add a comment , or false if it is not possible.

Parameters
integer$p_idis the action_gestion.ag_id

Definition at line 141 of file document_option.class.php.

141 {
143 $document_type=$cn->get_value("select ag_type from action_gestion where ag_id=$1",[$p_id]);
145 // If comment are disable, only the first one is authorized as event description
146 $cnt=$cn->get_value("select count(*) from action_gestion_comment where ag_id=$1",[$p_id]);
147 if ($cnt == 0 ) return true;
148 return false;
149
150 }
static is_enable_comment($p_document_type)
returns true if comment are available otherwise false
static connect()
$document_type[]

References $cn, $document_type, $p_id, Dossier\connect(), and is_enable_comment().

Referenced by Follow_Up\save().

+ Here is the call graph for this function:

◆ is_enable_comment()

static Document_Option::is_enable_comment (   $p_document_type)
static

returns true if comment are available otherwise false

Parameters
int$p_document_typeDocument_Type.dt_id
Returns
boolean

Definition at line 59 of file document_option.class.php.

60 {
61 $display_operation=false;
63 if ($cn->get_value("select do_enable from document_option where document_type_id=$1 and do_code = $2",
64 [$p_document_type, 'followup_comment'])=='1')
65 {
66 $display_operation=true;
67 }
68 return $display_operation;
69 }

References $cn, and Dossier\connect().

Referenced by can_add_comment(), and Follow_Up\update().

+ Here is the call graph for this function:

◆ is_enable_contact_multiple()

static Document_Option::is_enable_contact_multiple (   $p_document_type)
static

returns true if the operation_detail is enable, otherwise false

Parameters
int$p_document_typeDocument_Type.dt_id
Returns
boolean

Definition at line 91 of file document_option.class.php.

92 {
93 $return=false;
95 if ($cn->get_value("select do_enable from document_option where document_type_id=$1 and do_code = $2",
96 [$p_document_type, 'contact_multiple'])=='1')
97 {
98 $return=true;
99 }
100 return $return;
101 }

References $cn, and Dossier\connect().

+ Here is the call graph for this function:

◆ is_enable_editable_description()

static Document_Option::is_enable_editable_description (   $p_document_type)
static

returns true if it is possible to edit the description , otherwise false

Parameters
int$p_document_typeDocument_Type.dt_id
Returns
boolean

Definition at line 173 of file document_option.class.php.

174 {
175 $return=false;
177 if ($cn->get_value("select do_enable from document_option where document_type_id=$1 and do_code = $2",
178 [$p_document_type, 'editable_description'])=='1')
179 {
180 $return=true;
181 }
182 return $return;
183 }

References $cn, and Dossier\connect().

+ Here is the call graph for this function:

◆ is_enable_make_feenote()

static Document_Option::is_enable_make_feenote (   $p_document_type)
static

returns true if the operation_detail is enable, otherwise false

Parameters
int$p_document_typeDocument_Type.dt_id
Returns
boolean

Definition at line 126 of file document_option.class.php.

127 {
128 $return=false;
130 if ($cn->get_value("select do_enable from document_option where document_type_id=$1 and do_code = $2",
131 [$p_document_type, 'make_feenote'])=='1')
132 {
133 $return=true;
134 }
135 return $return;
136 }

References $cn, and Dossier\connect().

+ Here is the call graph for this function:

◆ is_enable_make_invoice()

static Document_Option::is_enable_make_invoice (   $p_document_type)
static

returns true if the operation_detail is enable, otherwise false

Parameters
int$p_document_typeDocument_Type.dt_id
Returns
boolean

Definition at line 109 of file document_option.class.php.

110 {
111 $return=false;
113 if ($cn->get_value("select do_enable from document_option where document_type_id=$1 and do_code = $2",
114 [$p_document_type, 'make_invoice'])=='1')
115 {
116 $return=true;
117 }
118 return $return;
119 }

References $cn, and Dossier\connect().

+ Here is the call graph for this function:

◆ is_enable_operation_detail()

static Document_Option::is_enable_operation_detail (   $p_document_type)
static

returns true if the operation_detail is enable, otherwise false

Parameters
int$p_document_typeDocument_Type.dt_id
Returns
boolean

Definition at line 42 of file document_option.class.php.

43 {
44 $display_operation=false;
46 if ($cn->get_value("select do_enable from document_option where document_type_id=$1 and do_code = $2",
47 [$p_document_type, 'detail_operation'])=='1')
48 {
49 $display_operation=true;
50 }
51 return $display_operation;
52 }

References $cn, and Dossier\connect().

+ Here is the call graph for this function:

◆ is_enable_video_conf()

static Document_Option::is_enable_video_conf (   $p_document_type)
static

returns true there is a videoconf enable

Parameters
int$p_document_typeDocument_Type.dt_id
Returns
boolean

Definition at line 191 of file document_option.class.php.

192 {
193 $return=false;
195 if ($cn->get_value("select do_enable from document_option where document_type_id=$1 and do_code = $2",
196 [$p_document_type, 'videoconf_server'])=='1')
197 {
198 $return=true;
199 }
200 return $return;
201 }

References $cn, and Dossier\connect().

+ Here is the call graph for this function:

◆ option_comment()

static Document_Option::option_comment (   $p_document_type)
static

returns option from the operation_detail

Parameters
int$p_document_typeDocument_Type.dt_id
Returns
string ONE_EDIT or SOME_FIXED

Definition at line 158 of file document_option.class.php.

159 {
161 $option_operation = $cn->get_value("select do_option from document_option where document_type_id=$1 "
162 . " and do_code = $2",
163 [$p_document_type, 'followup_comment']);
164 return $option_operation;
165 }

References $cn, and Dossier\connect().

+ Here is the call graph for this function:

◆ option_operation_detail()

static Document_Option::option_operation_detail (   $p_document_type)
static

returns option from the operation_detail

Parameters
int$p_document_typeDocument_Type.dt_id
Returns
string

Definition at line 76 of file document_option.class.php.

77 {
79 $option_operation = $cn->get_value("select do_option from document_option where document_type_id=$1 "
80 . " and do_code = $2",
81 [$p_document_type, 'detail_operation']);
82 return $option_operation;
83 }

References $cn, and Dossier\connect().

+ Here is the call graph for this function:

◆ option_video_conf()

static Document_Option::option_video_conf (   $p_document_type)
static

returns the videoconf server

Parameters
int$p_document_typeDocument_Type.dt_id
Returns
string with url to videoconf server

Definition at line 209 of file document_option.class.php.

210 {
212 $option_operation = $cn->get_value("select do_option from document_option where document_type_id=$1 "
213 . " and do_code = $2",
214 [$p_document_type, 'videoconf_server']);
215 return $option_operation;
216 }

References $cn, and Dossier\connect().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: