diff --git a/htdocs/core/boxes/box_last_knowledgerecord.php b/htdocs/core/boxes/box_last_knowledgerecord.php
index 20510a5b3b0..13635481341 100644
--- a/htdocs/core/boxes/box_last_knowledgerecord.php
+++ b/htdocs/core/boxes/box_last_knowledgerecord.php
@@ -30,10 +30,24 @@ require_once DOL_DOCUMENT_ROOT."/core/boxes/modules_boxes.php";
*/
class box_last_knowledgerecord extends ModeleBoxes
{
-
+ /**
+ * @var string boxcode
+ */
public $boxcode = "box_last_knowledgerecord";
+
+ /**
+ * @var string box img
+ */
public $boximg = "knowledgemanagement";
+
+ /**
+ * @var string boc label
+ */
public $boxlabel;
+
+ /**
+ * @var array box dependancies
+ */
public $depends = array("knowledgemanagement");
/**
@@ -41,8 +55,19 @@ class box_last_knowledgerecord extends ModeleBoxes
*/
public $db;
+ /**
+ * @var string param
+ */
public $param;
+
+ /**
+ * @var array box info heads
+ */
public $info_box_head = array();
+
+ /**
+ * @var array box info content
+ */
public $info_box_contents = array();
/**
@@ -67,7 +92,7 @@ class box_last_knowledgerecord extends ModeleBoxes
*/
public function loadBox($max = 5)
{
- global $conf, $user, $langs;
+ global $user, $langs;
$this->max = $max;
@@ -161,14 +186,19 @@ class box_last_knowledgerecord extends ModeleBoxes
}
if ($num == 0) {
- $this->info_box_contents[$i][0] = array('td' => '', 'text' => ''.$langs->trans("BoxLastTicketNoRecordedTickets").'');
+ $this->info_box_contents[$i][0] = array(
+ 'td' => '',
+ 'text' => ''.$langs->trans("BoxLastTicketNoRecordedTickets").'',
+ );
}
} else {
dol_print_error($this->db);
}
} else {
- $this->info_box_contents[0][0] = array('td' => '',
- 'text' => ''.$langs->trans("ReadPermissionNotAllowed").'');
+ $this->info_box_contents[0][0] = array(
+ 'td' => '',
+ 'text' => ''.$langs->trans("ReadPermissionNotAllowed").'',
+ );
}
}
diff --git a/htdocs/core/boxes/box_last_modified_knowledgerecord.php b/htdocs/core/boxes/box_last_modified_knowledgerecord.php
index 5e23ee54602..01ee0771ee1 100644
--- a/htdocs/core/boxes/box_last_modified_knowledgerecord.php
+++ b/htdocs/core/boxes/box_last_modified_knowledgerecord.php
@@ -30,10 +30,24 @@ require_once DOL_DOCUMENT_ROOT."/core/boxes/modules_boxes.php";
*/
class box_last_modified_knowledgerecord extends ModeleBoxes
{
-
+ /**
+ * @var string boxcode
+ */
public $boxcode = "box_last_modified_knowledgerecord";
+
+ /**
+ * @var string box img
+ */
public $boximg = "knowledgemanagement";
+
+ /**
+ * @var string boc label
+ */
public $boxlabel;
+
+ /**
+ * @var array box dependancies
+ */
public $depends = array("knowledgemanagement");
/**
@@ -41,8 +55,19 @@ class box_last_modified_knowledgerecord extends ModeleBoxes
*/
public $db;
+ /**
+ * @var string param
+ */
public $param;
+
+ /**
+ * @var array box info heads
+ */
public $info_box_head = array();
+
+ /**
+ * @var array box info content
+ */
public $info_box_contents = array();
/**
@@ -67,7 +92,7 @@ class box_last_modified_knowledgerecord extends ModeleBoxes
*/
public function loadBox($max = 5)
{
- global $conf, $user, $langs;
+ global $user, $langs;
$this->max = $max;
@@ -161,14 +186,19 @@ class box_last_modified_knowledgerecord extends ModeleBoxes
}
if ($num == 0) {
- $this->info_box_contents[$i][0] = array('td' => '', 'text' => ''.$langs->trans("BoxLastTicketNoRecordedTickets").'');
+ $this->info_box_contents[$i][0] = array(
+ 'td' => '',
+ 'text' => ''.$langs->trans("BoxLastTicketNoRecordedTickets").'',
+ );
}
} else {
dol_print_error($this->db);
}
} else {
- $this->info_box_contents[0][0] = array('td' => '',
- 'text' => ''.$langs->trans("ReadPermissionNotAllowed").'');
+ $this->info_box_contents[0][0] = array(
+ 'td' => '',
+ 'text' => ''.$langs->trans("ReadPermissionNotAllowed").'',
+ );
}
}