';
+ }
+
+ if ($answerType == UNIQUE_ANSWER_IMAGE) {
+ if ($show_comment) {
+ if (empty($comment)) {
+ $s .= '';
+ } else {
+ $s .= '
';
+ }
+ } else {
+ $s .= '
';
+ }
+ }
+
$answer = Security::remove_XSS($answer, STUDENT);
$s .= Display::input(
'hidden',
@@ -289,7 +311,15 @@ class ExerciseLib
'0'
);
- $answer_input = '
';
+ $answer_input = null;
+
+ if ($answerType == UNIQUE_ANSWER_IMAGE) {
+ $attributes['style'] = 'display: none;';
+
+ $answer = '' . $answer . '
';
+ }
+
+ $answer_input .= '';
$answer_input .= Display::input(
'radio',
'choice[' . $questionId . ']',
@@ -299,8 +329,11 @@ class ExerciseLib
$answer_input .= $answer;
$answer_input .= ' ';
+ if ($answerType == UNIQUE_ANSWER_IMAGE) {
+ $answer_input .= " ";
+ }
+
if ($show_comment) {
- $s .= '
';
$s .= $answer_input;
$s .= ' ';
$s .= '';
@@ -311,7 +344,8 @@ class ExerciseLib
$s .= $answer_input;
}
- } elseif ($answerType == MULTIPLE_ANSWER ||
+ } elseif (
+ $answerType == MULTIPLE_ANSWER ||
$answerType == MULTIPLE_ANSWER_TRUE_FALSE ||
$answerType == GLOBAL_MULTIPLE_ANSWER
) {
diff --git a/main/inc/lib/tracking.lib.php b/main/inc/lib/tracking.lib.php
index 2f97da27a6..b724f25d00 100755
--- a/main/inc/lib/tracking.lib.php
+++ b/main/inc/lib/tracking.lib.php
@@ -3078,7 +3078,7 @@ class Tracking
$sql = "SELECT DISTINCT code, c_id
FROM $tbl_session_course sc
INNER JOIN $courseTable c
- sc.c_id = c.id
+ ON sc.c_id = c.id
WHERE session_id= $session_id";
$result = Database::query($sql);
diff --git a/main/inc/local.inc.php b/main/inc/local.inc.php
index 142d9c5003..ad9c8ea0e3 100755
--- a/main/inc/local.inc.php
+++ b/main/inc/local.inc.php
@@ -1089,7 +1089,7 @@ if ((isset($uidReset) && $uidReset) || (isset($cidReset) && $cidReset)) {
$is_sessionAdmin = true;
} else {
// Am I a session coach for this session?
- $sql = "SELECT id, id_coach FROM $tbl_session session
+ $sql = "SELECT session.id, session.id_coach FROM $tbl_session session
INNER JOIN $tbl_session_course sc
ON sc.session_id = session.id
WHERE session.id = $session_id
diff --git a/main/lang/english/trad4all.inc.php b/main/lang/english/trad4all.inc.php
index a53bdde9c6..43b3811155 100644
--- a/main/lang/english/trad4all.inc.php
+++ b/main/lang/english/trad4all.inc.php
@@ -7084,4 +7084,5 @@ $BadgesManagement = "Badges management";
$CurrentBadges = "Current badges";
$SaveBadge = "Save badge";
$BadgeMeasuresXPixelsInPNG = "Badge measures 200x200 pixels in PNG";
+$UniqueAnswerImage = "Unique answer image";
?>
\ No newline at end of file
diff --git a/main/lang/spanish/trad4all.inc.php b/main/lang/spanish/trad4all.inc.php
index 8956f74ab1..0c80bd085e 100644
--- a/main/lang/spanish/trad4all.inc.php
+++ b/main/lang/spanish/trad4all.inc.php
@@ -6826,7 +6826,7 @@ $NumberOfPublishedExercises = "Nro de ejercicios publicados";
$NumberOfPublishedLps = "Nro de Lecciones publicadas";
$ChatConnected = "Chat (Conectado)";
$ChatDisconnected = "Chat (Desconectado)";
-$AddCourseDescription = "Agregar descripción del curso";
+$AddCourseDescription = "Describir el curso";
$ThingsToDo = "Primeras actividades sugeridas";
$RecordAnswer = "Grabar respuesta";
$UseTheMessageBelowToAddSomeComments = "Utilizar el siguiente campo de texto para escribir un comentario al profesor";
@@ -7100,6 +7100,9 @@ $WorkEmailAlertActivateOnlyForTeachers = "Activar sólo para profesores el aviso
$WorkEmailAlertActivateOnlyForStudents = "Activar sólo para alumnos el aviso por correo electrónico del envío de una nueva tarea";
$Uncategorized = "Sin categoría";
$NaturalYear = "Año natural";
+$AutoWeight = "Auto-ponderación";
+$AutoWeightExplanation = "La ponderación automática permite ganar algo de tiempo. Esta funcionalidad distribuirá el peso total entre los elementos a bajo de manera equilibrada.";
+$EditWeight = "Editar ponderación";
$TheSkillHasBeenCreated = "La competencia ha sido creada";
$CreateSkill = "Crear competencia";
$CannotCreateSkill = "No se puede crear la competencia";
@@ -7110,4 +7113,6 @@ $BadgesManagement = "Gestionar las insignias";
$CurrentBadges = "Insignias actuales";
$SaveBadge = "Guardar insignia";
$BadgeMeasuresXPixelsInPNG = "Medidas de la insignia 200x200 píxeles en formato PNG";
+$SetTutor = "Hacer tutor";
+$UniqueAnswerImage = "Respuesta de imagen única";
?>
\ No newline at end of file
diff --git a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/AgendaStudent.php b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/AgendaStudent.php
index ae15774c95..30e45c8e69 100644
--- a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/AgendaStudent.php
+++ b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/AgendaStudent.php
@@ -14,6 +14,10 @@ class AgendaStudent extends Basic
public $plugins = array(
);
+ /**
+ * Get the toolbar config
+ * @return array
+ */
public function getConfig()
{
if (api_get_setting('more_buttons_maximized_mode') != 'true') {
@@ -27,6 +31,10 @@ class AgendaStudent extends Basic
return $config;
}
+ /**
+ * Get the toolbar configuration when CKEditor is maximized
+ * @return array
+ */
protected function getMaximizedToolbar()
{
return [
@@ -60,6 +68,10 @@ class AgendaStudent extends Basic
];
}
+ /**
+ * Get the default toolbar configuration when the setting more_buttons_maximized_mode is false
+ * @return array
+ */
protected function getNormalToolbar()
{
return [
@@ -88,6 +100,10 @@ class AgendaStudent extends Basic
];
}
+ /**
+ * Get the toolbar configuration when CKEditor is minimized
+ * @return array
+ */
protected function getMinimizedToolbar()
{
return [
diff --git a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Announcements.php b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Announcements.php
index 525478fff0..b1e5f90f28 100644
--- a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Announcements.php
+++ b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Announcements.php
@@ -12,7 +12,8 @@ class Announcements extends Basic
{
/**
- * @return mixed
+ * Get the toolbar config
+ * @return array
*/
public function getConfig()
{
@@ -25,6 +26,10 @@ class Announcements extends Basic
return $config;
}
+ /**
+ * Get the default toolbar configuration when the setting more_buttons_maximized_mode is false
+ * @return array
+ */
protected function getNormalToolbar()
{
return [
@@ -54,6 +59,10 @@ class Announcements extends Basic
];
}
+ /**
+ * Get the toolbar configuration when CKEditor is minimized
+ * @return array
+ */
protected function getMinimizedToolbar()
{
return [
diff --git a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/AssessmentsIntroduction.php b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/AssessmentsIntroduction.php
index 45ca1692ab..077f6dfa72 100644
--- a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/AssessmentsIntroduction.php
+++ b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/AssessmentsIntroduction.php
@@ -11,7 +11,8 @@ namespace Chamilo\CoreBundle\Component\Editor\CkEditor\Toolbar;
class AssessmentsIntroduction extends Basic
{
/**
- * @return mixed
+ * Get the toolbar config
+ * @return array
*/
public function getConfig()
{
@@ -24,6 +25,10 @@ class AssessmentsIntroduction extends Basic
return $config;
}
+ /**
+ * Get the default toolbar configuration when the setting more_buttons_maximized_mode is false
+ * @return array
+ */
protected function getNormalToolbar()
{
return [
@@ -40,6 +45,10 @@ class AssessmentsIntroduction extends Basic
];
}
+ /**
+ * Get the toolbar configuration when CKEditor is minimized
+ * @return array
+ */
protected function getMinimizedToolbar()
{
return [
diff --git a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Basic.php b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Basic.php
index ee4f087e2c..637e76d964 100644
--- a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Basic.php
+++ b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Basic.php
@@ -77,7 +77,7 @@ class Basic extends Toolbar
// Adding plugins depending of platform conditions
$plugins = array();
- if (api_get_setting('show_glossary_in_documents') != 'none') {
+ if (api_get_setting('show_glossary_in_documents') == 'ismanual') {
$plugins[] = 'glossary';
}
@@ -131,6 +131,7 @@ class Basic extends Toolbar
}
/**
+ * Get the toolbar config
* @return array
*/
public function getConfig()
@@ -191,7 +192,7 @@ class Basic extends Toolbar
}
/**
- * Get the small toolbar configuration
+ * Get the toolbar configuration when CKEditor is minimized
* @return array
*/
protected function getMinimizedToolbar()
diff --git a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Careers.php b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Careers.php
index b3cd3cb405..80fc41e918 100644
--- a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Careers.php
+++ b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Careers.php
@@ -12,7 +12,8 @@ class Careers extends Basic
{
/**
- * @return mixed
+ * Get the toolbar config
+ * @return array
*/
public function getConfig()
{
@@ -26,6 +27,10 @@ class Careers extends Basic
return $config;
}
+ /**
+ * Get the toolbar configuration when CKEditor is maximized
+ * @return array
+ */
protected function getMaximizedToolbar()
{
return [
@@ -57,6 +62,10 @@ class Careers extends Basic
];
}
+ /**
+ * Get the default toolbar configuration when the setting more_buttons_maximized_mode is false
+ * @return array
+ */
protected function getNormalToolbar()
{
return [
@@ -70,6 +79,10 @@ class Careers extends Basic
];
}
+ /**
+ * Get the toolbar configuration when CKEditor is minimized
+ * @return array
+ */
protected function getMinimizedToolbar()
{
return [
diff --git a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Documents.php b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Documents.php
index 29cf910544..d50ac39d7d 100644
--- a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Documents.php
+++ b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Documents.php
@@ -13,7 +13,8 @@ class Documents extends Basic
public $plugins = array();
/**
- * @return mixed
+ * Get the toolbar config
+ * @return array
*/
public function getConfig()
{
@@ -45,6 +46,10 @@ class Documents extends Basic
return $plugins;
}
+ /**
+ * Get the default toolbar configuration when the setting more_buttons_maximized_mode is false
+ * @return array
+ */
protected function getNormalToolbar()
{
return [
@@ -72,6 +77,10 @@ class Documents extends Basic
];
}
+ /**
+ * Get the toolbar configuration when CKEditor is minimized
+ * @return array
+ */
protected function getMinimizedToolbar()
{
return [
diff --git a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/DocumentsStudent.php b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/DocumentsStudent.php
index 6926ee9bbe..1a9981b6b9 100644
--- a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/DocumentsStudent.php
+++ b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/DocumentsStudent.php
@@ -12,7 +12,8 @@ class DocumentsStudent extends Basic
{
/**
- * @return mixed
+ * Get the toolbar config
+ * @return array
*/
public function getConfig()
{
@@ -28,6 +29,10 @@ class DocumentsStudent extends Basic
return $config;
}
+ /**
+ * Get the toolbar configuration when CKEditor is maximized
+ * @return array
+ */
protected function getMaximizedToolbar()
{
return [
@@ -61,6 +66,10 @@ class DocumentsStudent extends Basic
];
}
+ /**
+ * Get the default toolbar configuration when the setting more_buttons_maximized_mode is false
+ * @return array
+ */
protected function getNormalToolbar()
{
return [
@@ -77,6 +86,10 @@ class DocumentsStudent extends Basic
];
}
+ /**
+ * Get the toolbar configuration when CKEditor is minimized
+ * @return array
+ */
protected function getMinimizedToolbar()
{
return [
diff --git a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/FAQ.php b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/FAQ.php
index e4e5e0d4a9..465d6b0851 100644
--- a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/FAQ.php
+++ b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/FAQ.php
@@ -12,7 +12,8 @@ class FAQ extends Basic
{
/**
- * @return mixed
+ * Get the toolbar config
+ * @return array
*/
public function getConfig()
{
@@ -27,6 +28,10 @@ class FAQ extends Basic
return $config;
}
+ /**
+ * Get the toolbar configuration when CKEditor is maximized
+ * @return array
+ */
protected function getMaximizedToolbar()
{
return [
@@ -58,6 +63,10 @@ class FAQ extends Basic
];
}
+ /**
+ * Get the default toolbar configuration when the setting more_buttons_maximized_mode is false
+ * @return array
+ */
protected function getNormalToolbar()
{
return [
@@ -65,6 +74,10 @@ class FAQ extends Basic
];
}
+ /**
+ * Get the toolbar configuration when CKEditor is minimized
+ * @return array
+ */
protected function getMinimizedToolbar()
{
return [
diff --git a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Forum.php b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Forum.php
index 02627e9532..2cefdfe731 100644
--- a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Forum.php
+++ b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Forum.php
@@ -11,6 +11,10 @@ namespace Chamilo\CoreBundle\Component\Editor\CkEditor\Toolbar;
class Forum extends Basic
{
+ /**
+ * Get the toolbar config
+ * @return array
+ */
public function getConfig()
{
if (api_get_setting('more_buttons_maximized_mode') != 'true') {
@@ -22,6 +26,10 @@ class Forum extends Basic
return $config;
}
+ /**
+ * Get the default toolbar configuration when the setting more_buttons_maximized_mode is false
+ * @return array
+ */
protected function getNormalToolbar()
{
return [
@@ -51,6 +59,10 @@ class Forum extends Basic
];
}
+ /**
+ * Get the toolbar configuration when CKEditor is minimized
+ * @return array
+ */
protected function getMinimizedToolbar()
{
return [
diff --git a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/ForumStudent.php b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/ForumStudent.php
index a5111dcea4..c40b11d834 100644
--- a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/ForumStudent.php
+++ b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/ForumStudent.php
@@ -11,6 +11,10 @@ namespace Chamilo\CoreBundle\Component\Editor\CkEditor\Toolbar;
class ForumStudent extends Basic
{
+ /**
+ * Get the toolbar config
+ * @return array
+ */
public function getConfig()
{
if (api_get_setting('more_buttons_maximized_mode') != 'true') {
@@ -24,6 +28,10 @@ class ForumStudent extends Basic
return $config;
}
+ /**
+ * Get the toolbar configuration when CKEditor is maximized
+ * @return array
+ */
protected function getMaximizedToolbar()
{
return [
@@ -57,6 +65,10 @@ class ForumStudent extends Basic
];
}
+ /**
+ * Get the default toolbar configuration when the setting more_buttons_maximized_mode is false
+ * @return array
+ */
protected function getNormalToolbar()
{
return [
@@ -73,6 +85,10 @@ class ForumStudent extends Basic
];
}
+ /**
+ * Get the toolbar configuration when CKEditor is minimized
+ * @return array
+ */
protected function getMinimizedToolbar()
{
return [
diff --git a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Glossary.php b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Glossary.php
index 122dbf80e9..ed5712b1d5 100644
--- a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Glossary.php
+++ b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Glossary.php
@@ -12,7 +12,8 @@ class Glossary extends Basic
{
/**
- * @return mixed
+ * Get the toolbar config
+ * @return array
*/
public function getConfig()
{
@@ -25,6 +26,10 @@ class Glossary extends Basic
return $config;
}
+ /**
+ * Get the default toolbar configuration when the setting more_buttons_maximized_mode is false
+ * @return array
+ */
protected function getNormalToolbar()
{
return [
@@ -40,6 +45,10 @@ class Glossary extends Basic
];
}
+ /**
+ * Get the toolbar configuration when CKEditor is minimized
+ * @return array
+ */
protected function getMinimizedToolbar()
{
return [
diff --git a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/LearningPathAuthor.php b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/LearningPathAuthor.php
index 0cb11b94b9..aae311015d 100644
--- a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/LearningPathAuthor.php
+++ b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/LearningPathAuthor.php
@@ -12,7 +12,8 @@ class LearningPathAuthor extends Basic
{
/**
- * @return mixed
+ * Get the toolbar config
+ * @return array
*/
public function getConfig()
{
@@ -28,6 +29,10 @@ class LearningPathAuthor extends Basic
return $config;
}
+ /**
+ * Get the toolbar configuration when CKEditor is maximized
+ * @return array
+ */
protected function getMaximizedToolbar()
{
return [
@@ -36,6 +41,10 @@ class LearningPathAuthor extends Basic
];
}
+ /**
+ * Get the default toolbar configuration when the setting more_buttons_maximized_mode is false
+ * @return array
+ */
protected function getNormalToolbar()
{
return [
@@ -43,6 +52,10 @@ class LearningPathAuthor extends Basic
];
}
+ /**
+ * Get the toolbar configuration when CKEditor is minimized
+ * @return array
+ */
protected function getMinimizedToolbar()
{
return [
diff --git a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/LearningPathDocuments.php b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/LearningPathDocuments.php
index b02f52d487..ee7be710d2 100644
--- a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/LearningPathDocuments.php
+++ b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/LearningPathDocuments.php
@@ -12,7 +12,8 @@ class LearningPathDocuments extends Basic
{
/**
- * @return mixed
+ * Get the toolbar config
+ * @return array
*/
public function getConfig()
{
@@ -28,6 +29,10 @@ class LearningPathDocuments extends Basic
return $config;
}
+ /**
+ * Get the toolbar configuration when CKEditor is maximized
+ * @return array
+ */
protected function getMaximizedToolbar()
{
return [
@@ -61,6 +66,10 @@ class LearningPathDocuments extends Basic
];
}
+ /**
+ * Get the default toolbar configuration when the setting more_buttons_maximized_mode is false
+ * @return array
+ */
protected function getNormalToolbar()
{
return [
@@ -96,6 +105,10 @@ class LearningPathDocuments extends Basic
];
}
+ /**
+ * Get the toolbar configuration when CKEditor is minimized
+ * @return array
+ */
protected function getMinimizedToolbar()
{
return [
diff --git a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Messages.php b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Messages.php
index 6f5eb5992f..3b1163abbb 100644
--- a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Messages.php
+++ b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Messages.php
@@ -10,8 +10,10 @@ namespace Chamilo\CoreBundle\Component\Editor\CkEditor\Toolbar;
*/
class Messages extends Basic
{
+
/**
- * @return mixed
+ * Get the toolbar config
+ * @return array
*/
public function getConfig()
{
@@ -28,6 +30,10 @@ class Messages extends Basic
return $config;
}
+ /**
+ * Get the toolbar configuration when CKEditor is maximized
+ * @return array
+ */
protected function getMaximizedToolbar()
{
return [
@@ -62,6 +68,10 @@ class Messages extends Basic
];
}
+ /**
+ * Get the default toolbar configuration when the setting more_buttons_maximized_mode is false
+ * @return array
+ */
protected function getNormalToolbar()
{
return [
@@ -77,6 +87,10 @@ class Messages extends Basic
];
}
+ /**
+ * Get the toolbar configuration when CKEditor is minimized
+ * @return array
+ */
protected function getMinimizedToolbar()
{
return [
diff --git a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/NotebookStudent.php b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/NotebookStudent.php
index 94b44529b9..aa241ea6db 100644
--- a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/NotebookStudent.php
+++ b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/NotebookStudent.php
@@ -11,6 +11,10 @@ namespace Chamilo\CoreBundle\Component\Editor\CkEditor\Toolbar;
class NotebookStudent extends Basic
{
+ /**
+ * Get the toolbar config
+ * @return array
+ */
public function getConfig()
{
if (api_get_setting('more_buttons_maximized_mode') != 'true') {
@@ -23,6 +27,10 @@ class NotebookStudent extends Basic
return $config;
}
+ /**
+ * Get the toolbar configuration when CKEditor is maximized
+ * @return array
+ */
protected function getMaximizedToolbar()
{
return [
@@ -56,6 +64,10 @@ class NotebookStudent extends Basic
];
}
+ /**
+ * Get the default toolbar configuration when the setting more_buttons_maximized_mode is false
+ * @return array
+ */
protected function getNormalToolbar()
{
return [
@@ -72,6 +84,10 @@ class NotebookStudent extends Basic
];
}
+ /**
+ * Get the toolbar configuration when CKEditor is minimized
+ * @return array
+ */
protected function getMinimizedToolbar()
{
return [
diff --git a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/PortalNews.php b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/PortalNews.php
index 328d5707ff..53cf3c7aa6 100644
--- a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/PortalNews.php
+++ b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/PortalNews.php
@@ -11,6 +11,10 @@ namespace Chamilo\CoreBundle\Component\Editor\CkEditor\Toolbar;
class PortalNews extends Basic
{
+ /**
+ * Get the toolbar config
+ * @return array
+ */
public function getConfig()
{
if (api_get_setting('more_buttons_maximized_mode') != 'true') {
@@ -23,6 +27,10 @@ class PortalNews extends Basic
return $config;
}
+ /**
+ * Get the toolbar configuration when CKEditor is maximized
+ * @return array
+ */
protected function getMaximizedToolbar()
{
return [
@@ -57,6 +65,10 @@ class PortalNews extends Basic
];
}
+ /**
+ * Get the default toolbar configuration when the setting more_buttons_maximized_mode is false
+ * @return array
+ */
protected function getNormalToolbar()
{
return [
@@ -72,6 +84,10 @@ class PortalNews extends Basic
];
}
+ /**
+ * Get the toolbar configuration when CKEditor is minimized
+ * @return array
+ */
protected function getMinimizedToolbar()
{
return [
diff --git a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Profile.php b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Profile.php
index 6a9d13161d..d778a8e865 100644
--- a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Profile.php
+++ b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Profile.php
@@ -10,8 +10,10 @@ namespace Chamilo\CoreBundle\Component\Editor\CkEditor\Toolbar;
*/
class Profile extends Basic
{
+
/**
- * @return mixed
+ * Get the toolbar config
+ * @return array
*/
public function getConfig()
{
@@ -25,6 +27,10 @@ class Profile extends Basic
return $config;
}
+ /**
+ * Get the toolbar configuration when CKEditor is maximized
+ * @return array
+ */
protected function getMaximizedToolbar()
{
return [
@@ -56,6 +62,10 @@ class Profile extends Basic
];
}
+ /**
+ * Get the default toolbar configuration when the setting more_buttons_maximized_mode is false
+ * @return array
+ */
protected function getNormalToolbar()
{
return [
@@ -71,6 +81,10 @@ class Profile extends Basic
];
}
+ /**
+ * Get the toolbar configuration when CKEditor is minimized
+ * @return array
+ */
protected function getMinimizedToolbar()
{
return [
diff --git a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Project.php b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Project.php
index 73b0b68ade..46a9071536 100644
--- a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Project.php
+++ b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Project.php
@@ -10,6 +10,11 @@ namespace Chamilo\CoreBundle\Component\Editor\CkEditor\Toolbar;
*/
class Project extends Basic
{
+
+ /**
+ * Get the toolbar config
+ * @return array
+ */
public function getConfig()
{
if (api_get_setting('more_buttons_maximized_mode') != 'true') {
@@ -22,6 +27,10 @@ class Project extends Basic
return $config;
}
+ /**
+ * Get the toolbar configuration when CKEditor is maximized
+ * @return array
+ */
protected function getMaximizedToolbar()
{
return [
@@ -54,6 +63,10 @@ class Project extends Basic
];
}
+ /**
+ * Get the default toolbar configuration when the setting more_buttons_maximized_mode is false
+ * @return array
+ */
protected function getNormalToolbar()
{
return [
@@ -68,6 +81,10 @@ class Project extends Basic
];
}
+ /**
+ * Get the toolbar configuration when CKEditor is minimized
+ * @return array
+ */
protected function getMinimizedToolbar()
{
return [
diff --git a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/ProjectComment.php b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/ProjectComment.php
index cfd0eae894..da9c3f278a 100644
--- a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/ProjectComment.php
+++ b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/ProjectComment.php
@@ -10,6 +10,11 @@ namespace Chamilo\CoreBundle\Component\Editor\CkEditor\Toolbar;
*/
class ProjectComment extends Basic
{
+
+ /**
+ * Get the toolbar config
+ * @return array
+ */
public function getConfig()
{
if (api_get_setting('more_buttons_maximized_mode') != 'true') {
@@ -22,6 +27,10 @@ class ProjectComment extends Basic
return $config;
}
+ /**
+ * Get the toolbar configuration when CKEditor is maximized
+ * @return array
+ */
protected function getMaximizedToolbar()
{
return [
@@ -54,6 +63,10 @@ class ProjectComment extends Basic
];
}
+ /**
+ * Get the default toolbar configuration when the setting more_buttons_maximized_mode is false
+ * @return array
+ */
protected function getNormalToolbar()
{
return [
@@ -67,6 +80,10 @@ class ProjectComment extends Basic
];
}
+ /**
+ * Get the toolbar configuration when CKEditor is minimized
+ * @return array
+ */
protected function getMinimizedToolbar()
{
return [
diff --git a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/ProjectCommentStudent.php b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/ProjectCommentStudent.php
index 3d01ee8858..aa9e0f640b 100644
--- a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/ProjectCommentStudent.php
+++ b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/ProjectCommentStudent.php
@@ -10,6 +10,11 @@ namespace Chamilo\CoreBundle\Component\Editor\CkEditor\Toolbar;
*/
class ProjectCommentStudent extends Basic
{
+
+ /**
+ * Get the toolbar config
+ * @return array
+ */
public function getConfig()
{
if (api_get_setting('more_buttons_maximized_mode') != 'true') {
@@ -22,6 +27,10 @@ class ProjectCommentStudent extends Basic
return $config;
}
+ /**
+ * Get the toolbar configuration when CKEditor is maximized
+ * @return array
+ */
protected function getMaximizedToolbar()
{
return [
@@ -54,6 +63,10 @@ class ProjectCommentStudent extends Basic
];
}
+ /**
+ * Get the default toolbar configuration when the setting more_buttons_maximized_mode is false
+ * @return array
+ */
protected function getNormalToolbar()
{
return [
@@ -67,6 +80,10 @@ class ProjectCommentStudent extends Basic
];
}
+ /**
+ * Get the toolbar configuration when CKEditor is minimized
+ * @return array
+ */
protected function getMinimizedToolbar()
{
return [
diff --git a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/ProjectStudent.php b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/ProjectStudent.php
index a7233a93d5..9f22760a91 100644
--- a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/ProjectStudent.php
+++ b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/ProjectStudent.php
@@ -10,6 +10,11 @@ namespace Chamilo\CoreBundle\Component\Editor\CkEditor\Toolbar;
*/
class ProjectStudent extends Basic
{
+
+ /**
+ * Get the toolbar config
+ * @return array
+ */
public function getConfig()
{
if (api_get_setting('more_buttons_maximized_mode') != 'true') {
@@ -22,6 +27,10 @@ class ProjectStudent extends Basic
return $config;
}
+ /**
+ * Get the toolbar configuration when CKEditor is maximized
+ * @return array
+ */
protected function getMaximizedToolbar()
{
return [
@@ -54,6 +63,10 @@ class ProjectStudent extends Basic
];
}
+ /**
+ * Get the default toolbar configuration when the setting more_buttons_maximized_mode is false
+ * @return array
+ */
protected function getNormalToolbar()
{
return [
@@ -68,6 +81,10 @@ class ProjectStudent extends Basic
];
}
+ /**
+ * Get the toolbar configuration when CKEditor is minimized
+ * @return array
+ */
protected function getMinimizedToolbar()
{
return [
diff --git a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Register.php b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Register.php
index 42f0aa8178..6e769987a9 100644
--- a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Register.php
+++ b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Register.php
@@ -14,6 +14,10 @@ class Register extends Basic
public $plugins = array(
);
+ /**
+ * Get the toolbar config
+ * @return array
+ */
public function getConfig()
{
if (api_get_setting('more_buttons_maximized_mode') != 'true') {
@@ -26,6 +30,10 @@ class Register extends Basic
return $config;
}
+ /**
+ * Get the default toolbar configuration when the setting more_buttons_maximized_mode is false
+ * @return array
+ */
protected function getNormalToolbar()
{
return [
@@ -36,6 +44,10 @@ class Register extends Basic
];
}
+ /**
+ * Get the toolbar configuration when CKEditor is minimized
+ * @return array
+ */
protected function getMinimizedToolbar()
{
return [
diff --git a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Survey.php b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Survey.php
index 74dee538ab..71adf029d1 100644
--- a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Survey.php
+++ b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Survey.php
@@ -11,6 +11,10 @@ namespace Chamilo\CoreBundle\Component\Editor\CkEditor\Toolbar;
class Survey extends Basic
{
+ /**
+ * Get the toolbar config
+ * @return array
+ */
public function getConfig()
{
if (api_get_setting('more_buttons_maximized_mode') != 'true') {
@@ -23,6 +27,10 @@ class Survey extends Basic
return $config;
}
+ /**
+ * Get the toolbar configuration when CKEditor is maximized
+ * @return array
+ */
protected function getMaximizedToolbar()
{
return [
@@ -56,6 +64,10 @@ class Survey extends Basic
];
}
+ /**
+ * Get the default toolbar configuration when the setting more_buttons_maximized_mode is false
+ * @return array
+ */
protected function getNormalToolbar()
{
return [
@@ -70,6 +82,10 @@ class Survey extends Basic
];
}
+ /**
+ * Get the toolbar configuration when CKEditor is minimized
+ * @return array
+ */
protected function getMinimizedToolbar()
{
return [
diff --git a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/TermsAndConditions.php b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/TermsAndConditions.php
index 17255579c1..378a41ebfe 100644
--- a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/TermsAndConditions.php
+++ b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/TermsAndConditions.php
@@ -11,6 +11,10 @@ namespace Chamilo\CoreBundle\Component\Editor\CkEditor\Toolbar;
class TermsAndConditions extends Basic
{
+ /**
+ * Get the toolbar config
+ * @return array
+ */
public function getConfig()
{
if (api_get_setting('more_buttons_maximized_mode') != 'true') {
@@ -23,6 +27,10 @@ class TermsAndConditions extends Basic
return $config;
}
+ /**
+ * Get the default toolbar configuration when the setting more_buttons_maximized_mode is false
+ * @return array
+ */
protected function getNormalToolbar()
{
return [
diff --git a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/TestAnswerFeedback.php b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/TestAnswerFeedback.php
index 4993f9c809..878b6087d9 100644
--- a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/TestAnswerFeedback.php
+++ b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/TestAnswerFeedback.php
@@ -11,7 +11,8 @@ namespace Chamilo\CoreBundle\Component\Editor\CkEditor\Toolbar;
class TestAnswerFeedback extends Basic
{
/**
- * @return mixed
+ * Get the toolbar config
+ * @return array
*/
public function getConfig()
{
@@ -53,6 +54,10 @@ class TestAnswerFeedback extends Basic
return $config;
}
+ /**
+ * Get the toolbar configuration when CKEditor is maximized
+ * @return array
+ */
protected function getMaximizedToolbar()
{
return [
@@ -73,6 +78,10 @@ class TestAnswerFeedback extends Basic
];
}
+ /**
+ * Get the default toolbar configuration when the setting more_buttons_maximized_mode is false
+ * @return array
+ */
protected function getNormalToolbar()
{
return [
@@ -80,6 +89,10 @@ class TestAnswerFeedback extends Basic
];
}
+ /**
+ * Get the toolbar configuration when CKEditor is minimized
+ * @return array
+ */
protected function getMinimizedToolbar()
{
return [
diff --git a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/TestFreeAnswer.php b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/TestFreeAnswer.php
index 429488f857..750bb95ae0 100644
--- a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/TestFreeAnswer.php
+++ b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/TestFreeAnswer.php
@@ -11,7 +11,8 @@ namespace Chamilo\CoreBundle\Component\Editor\CkEditor\Toolbar;
class TestFreeAnswer extends Basic
{
/**
- * @return mixed
+ * Get the toolbar config
+ * @return array
*/
public function getConfig()
{
@@ -42,6 +43,10 @@ class TestFreeAnswer extends Basic
return $config;
}
+ /**
+ * Get the toolbar configuration when CKEditor is maximized
+ * @return array
+ */
protected function getMaximizedToolbar()
{
return [
@@ -62,6 +67,10 @@ class TestFreeAnswer extends Basic
];
}
+ /**
+ * Get the default toolbar configuration when the setting more_buttons_maximized_mode is false
+ * @return array
+ */
protected function getNormalToolbar()
{
return [
@@ -80,6 +89,10 @@ class TestFreeAnswer extends Basic
];
}
+ /**
+ * Get the toolbar configuration when CKEditor is minimized
+ * @return array
+ */
protected function getMinimizedToolbar()
{
return [
diff --git a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/TestFreeAnswerStrict.php b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/TestFreeAnswerStrict.php
index 2697bd3f76..605490b3f5 100644
--- a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/TestFreeAnswerStrict.php
+++ b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/TestFreeAnswerStrict.php
@@ -11,7 +11,8 @@ namespace Chamilo\CoreBundle\Component\Editor\CkEditor\Toolbar;
class TestFreeAnswerStrict extends Basic
{
/**
- * @return mixed
+ * Get the toolbar config
+ * @return array
*/
public function getConfig()
{
@@ -42,6 +43,10 @@ class TestFreeAnswerStrict extends Basic
return $config;
}
+ /**
+ * Get the default toolbar configuration when the setting more_buttons_maximized_mode is false
+ * @return array
+ */
protected function getNormalToolbar()
{
return [];
diff --git a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/TestProposedAnswer.php b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/TestProposedAnswer.php
index 0ceb3a811a..eeae353bc2 100644
--- a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/TestProposedAnswer.php
+++ b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/TestProposedAnswer.php
@@ -11,7 +11,8 @@ namespace Chamilo\CoreBundle\Component\Editor\CkEditor\Toolbar;
class TestProposedAnswer extends Basic
{
/**
- * @return mixed
+ * Get the toolbar config
+ * @return array
*/
public function getConfig()
{
@@ -66,6 +67,10 @@ class TestProposedAnswer extends Basic
return $plugins;
}
+ /**
+ * Get the toolbar configuration when CKEditor is maximized
+ * @return array
+ */
protected function getMaximizedToolbar()
{
return [
@@ -99,6 +104,10 @@ class TestProposedAnswer extends Basic
];
}
+ /**
+ * Get the default toolbar configuration when the setting more_buttons_maximized_mode is false
+ * @return array
+ */
protected function getNormalToolbar()
{
return [
@@ -117,6 +126,10 @@ class TestProposedAnswer extends Basic
];
}
+ /**
+ * Get the toolbar configuration when CKEditor is minimized
+ * @return array
+ */
protected function getMinimizedToolbar()
{
return [
diff --git a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/TestQuestionDescription.php b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/TestQuestionDescription.php
index c5bd2c9e4f..76ac138fb5 100644
--- a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/TestQuestionDescription.php
+++ b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/TestQuestionDescription.php
@@ -10,7 +10,8 @@ namespace Chamilo\CoreBundle\Component\Editor\CkEditor\Toolbar;
class TestQuestionDescription extends Basic
{
/**
- * @return mixed
+ * Get the toolbar config
+ * @return array
*/
public function getConfig()
{
@@ -59,6 +60,10 @@ class TestQuestionDescription extends Basic
return $plugins;
}
+ /**
+ * Get the toolbar configuration when CKEditor is maximized
+ * @return array
+ */
protected function getMaximizedToolbar()
{
return [
@@ -92,6 +97,10 @@ class TestQuestionDescription extends Basic
];
}
+ /**
+ * Get the default toolbar configuration when the setting more_buttons_maximized_mode is false
+ * @return array
+ */
protected function getNormalToolbar()
{
return [
@@ -107,6 +116,10 @@ class TestQuestionDescription extends Basic
];
}
+ /**
+ * Get the toolbar configuration when CKEditor is minimized
+ * @return array
+ */
protected function getMinimizedToolbar()
{
return [
diff --git a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/UniqueAnswerImage.php b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/UniqueAnswerImage.php
index 929c3c6987..1c7f03b6fb 100644
--- a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/UniqueAnswerImage.php
+++ b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/UniqueAnswerImage.php
@@ -11,7 +11,8 @@ namespace Chamilo\CoreBundle\Component\Editor\CkEditor\Toolbar;
class UniqueAnswerImage extends Basic
{
/**
- * @return mixed
+ * Get the toolbar config
+ * @return array
*/
public function getConfig()
{
diff --git a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Wiki.php b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Wiki.php
index 7e81c0e9c5..45da525217 100644
--- a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Wiki.php
+++ b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Wiki.php
@@ -11,6 +11,10 @@ namespace Chamilo\CoreBundle\Component\Editor\CkEditor\Toolbar;
class Wiki extends Basic
{
+ /**
+ * Get the toolbar config
+ * @return array
+ */
public function getConfig()
{
if (api_get_setting('more_buttons_maximized_mode') != 'true') {
@@ -28,6 +32,10 @@ class Wiki extends Basic
return $config;
}
+ /**
+ * Get the default toolbar configuration when the setting more_buttons_maximized_mode is false
+ * @return array
+ */
protected function getNormalToolbar()
{
return [
@@ -76,6 +84,10 @@ class Wiki extends Basic
];
}
+ /**
+ * Get the toolbar configuration when CKEditor is minimized
+ * @return array
+ */
protected function getMinimizedToolbar()
{
return [
diff --git a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/WikiStudent.php b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/WikiStudent.php
index fe78492311..ae72d9b12e 100644
--- a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/WikiStudent.php
+++ b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/WikiStudent.php
@@ -11,6 +11,10 @@ namespace Chamilo\CoreBundle\Component\Editor\CkEditor\Toolbar;
class WikiStudent extends Basic
{
+ /**
+ * Get the toolbar config
+ * @return array
+ */
public function getConfig()
{
if (api_get_setting('more_buttons_maximized_mode') != 'true') {
@@ -29,6 +33,10 @@ class WikiStudent extends Basic
return $config;
}
+ /**
+ * Get the toolbar configuration when CKEditor is maximized
+ * @return array
+ */
protected function getMaximizedToolbar()
{
return [
@@ -62,6 +70,10 @@ class WikiStudent extends Basic
];
}
+ /**
+ * Get the default toolbar configuration when the setting more_buttons_maximized_mode is false
+ * @return array
+ */
protected function getNormalToolbar()
{
return [
@@ -107,6 +119,10 @@ class WikiStudent extends Basic
];
}
+ /**
+ * Get the toolbar configuration when CKEditor is minimized
+ * @return array
+ */
protected function getMinimizedToolbar()
{
return [
diff --git a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/WikiTask.php b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/WikiTask.php
index 18770e50ac..7ff8fc8cd2 100644
--- a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/WikiTask.php
+++ b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/WikiTask.php
@@ -11,6 +11,10 @@ namespace Chamilo\CoreBundle\Component\Editor\CkEditor\Toolbar;
class WikiTask extends Basic
{
+ /**
+ * Get the toolbar config
+ * @return array
+ */
public function getConfig()
{
if (api_get_setting('more_buttons_maximized_mode') != 'true') {
@@ -23,6 +27,10 @@ class WikiTask extends Basic
return $config;
}
+ /**
+ * Get the toolbar configuration when CKEditor is maximized
+ * @return array
+ */
protected function getMaximizedToolbar()
{
return [
@@ -54,6 +62,10 @@ class WikiTask extends Basic
];
}
+ /**
+ * Get the default toolbar configuration when the setting more_buttons_maximized_mode is false
+ * @return array
+ */
protected function getNormalToolbar()
{
return [
@@ -67,6 +79,10 @@ class WikiTask extends Basic
];
}
+ /**
+ * Get the toolbar configuration when CKEditor is minimized
+ * @return array
+ */
protected function getMinimizedToolbar()
{
return [
diff --git a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Work.php b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Work.php
index d4484463ac..8b234821ff 100644
--- a/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Work.php
+++ b/src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Work.php
@@ -15,7 +15,8 @@ class Work extends Basic
);
/**
- * @return mixed
+ * Get the toolbar config
+ * @return array
*/
public function getConfig()
{
@@ -30,6 +31,10 @@ class Work extends Basic
return $config;
}
+ /**
+ * Get the toolbar configuration when CKEditor is maximized
+ * @return array
+ */
protected function getMaximizedToolbar()
{
return [
@@ -62,6 +67,10 @@ class Work extends Basic
];
}
+ /**
+ * Get the default toolbar configuration when the setting more_buttons_maximized_mode is false
+ * @return array
+ */
protected function getNormalToolbar()
{
return [
@@ -77,6 +86,10 @@ class Work extends Basic
];
}
+ /**
+ * Get the toolbar configuration when CKEditor is minimized
+ * @return array
+ */
protected function getMinimizedToolbar()
{
return [
diff --git a/tests/datafiller/data_users.php b/tests/datafiller/data_users.php
index cf9b60dddd..5f49a3d9d0 100755
--- a/tests/datafiller/data_users.php
+++ b/tests/datafiller/data_users.php
@@ -201,26 +201,26 @@ $users[] = array('username' => 'tsandyman', 'pass'=> 'tsandyman', 'firstname' =>
$users[] = array('username' => 'wgamwich', 'pass'=> 'wgamwich', 'firstname' => 'Wiseman', 'lastname' => 'Gamwich', 'status' => 5, 'auth_source' => 'platform', 'email' => 'wgamwich@example.com', 'creator_id' => 1, 'active' => 1);
$users[] = array('username' => 'mhalles','pass' => 'mhalles','firstname' => 'Maria','lastname' => 'Halles','status' => 5,'auth_source' => 'platform','email' => 'mhalles@example.com','creator_id' => 1,'active' => 1);
-$users[] = array('username' => 'adaniel','pass' => 'adaniel','firstname' => 'Annaa','lastname' => 'Daniel','status' => 5,'auth_source' => 'platform','email' => 'adaniel@example.com','creator_id' => 1,'active' => 1);
-$users[] = array('username' => 'ppiedra','pass' => 'ppiedra','firstname' => 'Pirot','lastname' => 'Piedra','status' => 5,'auth_source' => 'platform','email' => 'ppiedra@example.com','creator_id' => 1,'active' => 1);
+$users[] = array('username' => 'adaniel','pass' => 'adaniel','firstname' => 'Anna','lastname' => 'Daniel','status' => 5,'auth_source' => 'platform','email' => 'adaniel@example.com','creator_id' => 1,'active' => 1);
+$users[] = array('username' => 'hstein','pass' => 'ppiedra','firstname' => 'Hansel','lastname' => 'Stein','status' => 5,'auth_source' => 'platform','email' => 'ppiedra@example.com','creator_id' => 1,'active' => 1);
$users[] = array('username' => 'amartin','pass' => 'amartin','firstname' => 'Angel','lastname' => 'Martin','status' => 5,'auth_source' => 'platform','email' => 'amartin@example.com','creator_id' => 1,'active' => 1);
-$users[] = array('username' => 'mhingis','pass' => 'mhingis','firstname' => 'Marsi','lastname' => 'Hingis','status' => 5,'auth_source' => 'platform','email' => 'mhingis@example.com','creator_id' => 1,'active' => 1);
-$users[] = array('username' => 'jlennon','pass' => 'jlennon','firstname' => 'Johny','lastname' => 'Lennon','status' => 5,'auth_source' => 'platform','email' => 'jlennon@example.com','creator_id' => 1,'active' => 1);
+$users[] = array('username' => 'mhiggins','pass' => 'mhingis','firstname' => 'Marc','lastname' => 'Higgins','status' => 5,'auth_source' => 'platform','email' => 'mhingis@example.com','creator_id' => 1,'active' => 1);
+$users[] = array('username' => 'jlennon','pass' => 'jlennon','firstname' => 'Johnny','lastname' => 'Lennon','status' => 5,'auth_source' => 'platform','email' => 'jlennon@example.com','creator_id' => 1,'active' => 1);
$users[] = array('username' => 'pchavez','pass' => 'pchavez','firstname' => 'Parol','lastname' => 'Chavez','status' => 5,'auth_source' => 'platform','email' => 'pchavez@example.com','creator_id' => 1,'active' => 1);
$users[] = array('username' => 'cvallejo','pass' => 'cvallejo','firstname' => 'César','lastname' => 'Vallejo','status' => 5,'auth_source' => 'platform','email' => 'cvallejo@example.com','creator_id' => 1,'active' => 1);
$users[] = array('username' => 'ftruffaut','pass'=> 'ftruffaut','firstname' => 'François','lastname' => 'Truffaut','status' => 5,'auth_source' => 'platform','email' => 'ftruffaut@example.com','creator_id' => 1,'active' => 1);
-$users[] = array('username' => 'mjoy','pass'=> 'mjoy','firstname' => 'Marion','lastname' => 'Joy','status' => 5,'auth_source' => 'platform','email' => 'marion@example.com','creator_id' => 1,'active' => 1);
+$users[] = array('username' => 'mjoy','pass'=> 'mjoy','firstname' => 'Mary','lastname' => 'Joy','status' => 5,'auth_source' => 'platform','email' => 'marion@example.com','creator_id' => 1,'active' => 1);
$users[] = array('username' => 'dmassa','pass'=> 'dmassa','firstname' => 'Diego','lastname' => 'Massa','status' => 5,'auth_source' => 'platform','email' => 'dmassa@example.com','creator_id' => 1,'active' => 1);
-$users[] = array('username' => 'mjagger','pass'=> 'mjagger','firstname' => 'Mick','lastname' => 'Jag','status' => 5,'auth_source' => 'platform','email' => 'mjagger@example.com','creator_id' => 1,'active' => 1);
+$users[] = array('username' => 'mjagger','pass'=> 'mjagger','firstname' => 'Mick','lastname' => 'Jagger','status' => 5,'auth_source' => 'platform','email' => 'mjagger@example.com','creator_id' => 1,'active' => 1);
$users[] = array('username' => 'mcotilla','pass'=> 'mcotilla','firstname' => 'Marion','lastname' => 'Cotillard','status' => 5,'auth_source' => 'platform','email' => 'mcotilla@example.com','creator_id' => 1,'active' => 1);
$users[] = array('username' => 'pepelepew','pass'=> 'pepelepew','firstname' => 'Pepe','lastname' => 'Le Pew','status' => 5,'auth_source' => 'platform','email' => 'pepelepew@example.com','creator_id' => 1,'active' => 1);
-$users[] = array('username' => 'nrubia','pass'=> 'nrubia','firstname' => 'Nathalie','lastname' => 'Rubia','status' => 5,'auth_source' => 'platform','email' => 'nrubia@example.com','creator_id' => 1,'active' => 1);
+$users[] = array('username' => 'nrubio','pass'=> 'nrubia','firstname' => 'Nathalie','lastname' => 'Rubio','status' => 5,'auth_source' => 'platform','email' => 'nrubia@example.com','creator_id' => 1,'active' => 1);
$users[] = array('username' => 'psanchez','pass'=> 'psanchez','firstname' => 'Peri','lastname' => 'Sanchez','status' => 5,'auth_source' => 'platform','email' => 'psanchez@example.com','creator_id' => 1,'active' => 1);
-$users[] = array('username' => 'acostea','pass'=> 'acostea','firstname' => 'Andreea','lastname' => 'Costea','status' => 5,'auth_source' => 'platform','email' => 'acostea@example.com','creator_id' => 1,'active' => 1);
+$users[] = array('username' => 'acostea','pass'=> 'acostea','firstname' => 'Andrea','lastname' => 'Costea','status' => 5,'auth_source' => 'platform','email' => 'acostea@example.com','creator_id' => 1,'active' => 1);
$users[] = array('username' => 'telera','pass'=> 'telera','firstname' => 'Tania','lastname' => 'Helera','status' => 5,'auth_source' => 'platform','email' => 'telera@example.com','creator_id' => 1,'active' => 1);
$users[] = array('username' => 'dstrauss','pass'=> 'dstrauss','firstname' => 'Domingo','lastname' => 'Strauss','status' => 5,'auth_source' => 'platform','email' => 'dstrauss@example.com','creator_id' => 1,'active' => 1);
$users[] = array('username' => 'helena','pass'=> 'helena','firstname' => 'Helena','lastname' => 'Duarte','status' => 5,'auth_source' => 'platform','email' => 'helena@example.com','creator_id' => 1,'active' => 1);
$users[] = array('username' => 'cgonzales','pass'=> 'cgonzales','firstname' => 'Cecilia','lastname' => 'Gonzales','status' => 5,'auth_source' => 'platform','email' => 'cgonzales@example.com','creator_id' => 1,'active' => 1);
-$users[] = array('username' => 'amann','pass'=> 'amann','firstname' => 'Aimee','lastname' => 'Mann','status' => 5,'auth_source' => 'platform','email' => 'amann@example.com','creator_id' => 1,'active' => 1);
-$users[] = array('username' => 'zazup','pass'=> 'zazup','firstname' => 'Zazup','lastname' => 'Zazupar','status' => 5,'auth_source' => 'platform','email' => 'zazup@example.com','creator_id' => 1,'active' => 1);
+$users[] = array('username' => 'amann','pass'=> 'amann','firstname' => 'Aimée','lastname' => 'Mann','status' => 5,'auth_source' => 'platform','email' => 'amann@example.com','creator_id' => 1,'active' => 1);
+$users[] = array('username' => 'zzaouidi','pass'=> 'zazup','firstname' => 'Zatar','lastname' => 'Zaouidi','status' => 5,'auth_source' => 'platform','email' => 'zazup@example.com','creator_id' => 1,'active' => 1);