noalyss Version-9
Public Member Functions | Static Public Member Functions | Protected Attributes
Follow_Up_Filter Class Reference
+ Collaboration diagram for Follow_Up_Filter:

Public Member Functions

 __construct ($name, $json_content)
 
 getaContent ()
 
 getName ()
 
 save ()
 
 setaContent ($json_content)
 
 setName ($name)
 

Static Public Member Functions

static display_list ($login)
 display the list of recorded search More...
 

Protected Attributes

 $json_content
 
 $name
 

Detailed Description

Definition at line 22 of file follow_up_filter.class.php.

Constructor & Destructor Documentation

◆ __construct()

Follow_Up_Filter::__construct (   $name,
  $json_content 
)

Definition at line 27 of file follow_up_filter.class.php.

28 {
29 $this->name=$name;
30 $this->json_content=$json_content;
31 }
$from_poste name

References $json_content, $name, and name.

Member Function Documentation

◆ display_list()

static Follow_Up_Filter::display_list (   $login)
static

display the list of recorded search

Parameters
$loginstring Login of the user
Returns
void

Definition at line 90 of file follow_up_filter.class.php.

90 :void
91 {
92
93 require NOALYSS_TEMPLATE."/follow_up_filter-display_list.php";
94 }

◆ getaContent()

Follow_Up_Filter::getaContent ( )
Returns
mixed

Definition at line 53 of file follow_up_filter.class.php.

53 :array
54 {
56 }

References $json_content.

◆ getName()

Follow_Up_Filter::getName ( )
Returns
mixed

Definition at line 36 of file follow_up_filter.class.php.

36 :string
37 {
38 return $this->name;
39 }

References $name.

◆ save()

Follow_Up_Filter::save ( )

Definition at line 67 of file follow_up_filter.class.php.

67 {
68 global $cn,$g_user;
69 $this->name=trim($this->name);
70
71 $exist=$cn->get_value("select count(*) from action_gestion_filter where af_user=$1 and
72 af_name=$2" , [$g_user->getLogin(),$this->name]);
73 if ( $exist == 0 ) {
74 $cn->exec_sql("insert into action_gestion_filter(af_user,af_name,af_search) values ($1,$2,$3)",
75 [$g_user->getLogin(),$this->name,$this->json_content]);
76 } else {
77 $cn->exec_sql("update action_gestion_filter set af_search=$3 where
78 af_user=$1 and
79 af_name=$2" ,
80 [$g_user->getLogin(),$this->name,$this->json_content]);
81 }
82
83 }
global $g_user
if no group available , then stop

References $cn, $g_user, and name.

◆ setaContent()

Follow_Up_Filter::setaContent (   $json_content)
Parameters
mixed$json_content

Definition at line 61 of file follow_up_filter.class.php.

62 {
63 $this->json_content = $json_content;
64 return $this;
65 }

References $json_content.

◆ setName()

Follow_Up_Filter::setName (   $name)
Parameters
mixed$name

Definition at line 44 of file follow_up_filter.class.php.

45 {
46 $this->name = $name;
47 return $this;
48 }

References $name, and name.

Field Documentation

◆ $json_content

Follow_Up_Filter::$json_content
protected

Definition at line 25 of file follow_up_filter.class.php.

Referenced by __construct(), getaContent(), and setaContent().

◆ $name

Follow_Up_Filter::$name
protected

Definition at line 24 of file follow_up_filter.class.php.

Referenced by __construct(), getName(), and setName().


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