Przeglądaj źródła

Adding tool services.

Julio Montoya 10 lat temu
rodzic
commit
df01ef2884

+ 106 - 0
src/ChamiloLMS/CourseBundle/Resources/config/services.yml

@@ -4,6 +4,13 @@ services:
     chamilolms.tool_chain:
         class: %tool_chain.class%
 
+    chamilolms.coursebundle.tool.announcements.class:
+        class: ChamiloLMS\CourseBundle\Tool\Announcements
+        arguments:
+            - document
+        tags:
+            - { name: chamilolm.course.tool }
+
     chamilolms.coursebundle.tool.calendar.class:
         class: ChamiloLMS\CourseBundle\Tool\Calendar
         arguments:
@@ -11,9 +18,108 @@ services:
         tags:
             - { name: chamilolm.course.tool }
 
+    chamilolms.coursebundle.tool.course_description.class:
+        class: ChamiloLMS\CourseBundle\Tool\CourseDescription
+        arguments:
+            - document
+        tags:
+            - { name: chamilolm.course.tool }
+
     chamilolms.coursebundle.tool.document.class:
         class: ChamiloLMS\CourseBundle\Tool\Document
         arguments:
             - document
         tags:
             - { name: chamilolm.course.tool }
+
+    chamilolms.coursebundle.tool.dropbox.class:
+        class: ChamiloLMS\CourseBundle\Tool\Dropbox
+        arguments:
+            - document
+        tags:
+            - { name: chamilolm.course.tool }
+
+    chamilolms.coursebundle.tool.exercise.class:
+        class: ChamiloLMS\CourseBundle\Tool\Exercise
+        arguments:
+            - document
+        tags:
+            - { name: chamilolm.course.tool }
+
+    chamilolms.coursebundle.tool.forum.class:
+        class: ChamiloLMS\CourseBundle\Tool\Forum
+        arguments:
+            - document
+        tags:
+            - { name: chamilolm.course.tool }
+
+    chamilolms.coursebundle.tool.glossary.class:
+        class: ChamiloLMS\CourseBundle\Tool\Glossary
+        arguments:
+            - document
+        tags:
+            - { name: chamilolm.course.tool }
+
+    chamilolms.coursebundle.tool.gradebook.class:
+        class: ChamiloLMS\CourseBundle\Tool\Gradebook
+        arguments:
+            - document
+        tags:
+            - { name: chamilolm.course.tool }
+
+    chamilolms.coursebundle.tool.group.class:
+        class: ChamiloLMS\CourseBundle\Tool\Group
+        arguments:
+            - document
+        tags:
+            - { name: chamilolm.course.tool }
+
+    chamilolms.coursebundle.tool.learning_path.class:
+        class: ChamiloLMS\CourseBundle\Tool\LearningPath
+        arguments:
+            - document
+        tags:
+            - { name: chamilolm.course.tool }
+
+    chamilolms.coursebundle.tool.link.class:
+        class: ChamiloLMS\CourseBundle\Tool\Link
+        arguments:
+            - document
+        tags:
+            - { name: chamilolm.course.tool }
+
+    chamilolms.coursebundle.tool.notebook.class:
+        class: ChamiloLMS\CourseBundle\Tool\Notebook
+        arguments:
+            - document
+        tags:
+            - { name: chamilolm.course.tool }
+
+    chamilolms.coursebundle.tool.survey.class:
+        class: ChamiloLMS\CourseBundle\Tool\Survey
+        arguments:
+            - document
+        tags:
+            - { name: chamilolm.course.tool }
+
+    chamilolms.coursebundle.tool.user.class:
+        class: ChamiloLMS\CourseBundle\Tool\User
+        arguments:
+            - document
+        tags:
+            - { name: chamilolm.course.tool }
+
+    chamilolms.coursebundle.tool.wiki.class:
+        class: ChamiloLMS\CourseBundle\Tool\Wiki
+        arguments:
+            - document
+        tags:
+            - { name: chamilolm.course.tool }
+
+    chamilolms.coursebundle.tool.work.class:
+        class: ChamiloLMS\CourseBundle\Tool\Work
+        arguments:
+            - document
+        tags:
+            - { name: chamilolm.course.tool }
+

+ 36 - 0
src/ChamiloLMS/CourseBundle/Tool/Announcements.php

@@ -0,0 +1,36 @@
+<?php
+
+namespace ChamiloLMS\CourseBundle\Tool;
+
+/**
+ * Class Announcements
+ * @package ChamiloLMS\CourseBundle\Tool
+ */
+class Announcements extends BaseTool
+{
+    /**
+     * {@inheritdoc}
+     */
+    public function getName()
+    {
+        return 'Exercise';
+    }
+
+    /**
+     * {@inheritdoc}
+     */
+    public function getLink()
+    {
+        return 'announcements/announcements.php';
+    }
+
+    public function getTarget()
+    {
+        return '_self';
+    }
+
+    public function getCategory()
+    {
+        return 'authoring';
+    }
+}

+ 36 - 0
src/ChamiloLMS/CourseBundle/Tool/CourseDescription.php

@@ -0,0 +1,36 @@
+<?php
+
+namespace ChamiloLMS\CourseBundle\Tool;
+
+/**
+ * Class CourseDescription
+ * @package ChamiloLMS\CourseBundle\Tool
+ */
+class CourseDescription extends BaseTool
+{
+    /**
+     * {@inheritdoc}
+     */
+    public function getName()
+    {
+        return 'CourseDescription';
+    }
+
+    /**
+     * {@inheritdoc}
+     */
+    public function getLink()
+    {
+        return 'course_description/index.php';
+    }
+
+    public function getTarget()
+    {
+        return '_self';
+    }
+
+    public function getCategory()
+    {
+        return 'authoring';
+    }
+}

+ 36 - 0
src/ChamiloLMS/CourseBundle/Tool/Dropbox.php

@@ -0,0 +1,36 @@
+<?php
+
+namespace ChamiloLMS\CourseBundle\Tool;
+
+/**
+ * Class Dropbox
+ * @package ChamiloLMS\CourseBundle\Tool
+ */
+class Dropbox extends BaseTool
+{
+    /**
+     * {@inheritdoc}
+     */
+    public function getName()
+    {
+        return 'Exercise';
+    }
+
+    /**
+     * {@inheritdoc}
+     */
+    public function getLink()
+    {
+        return 'dropbox/index.php';
+    }
+
+    public function getTarget()
+    {
+        return '_self';
+    }
+
+    public function getCategory()
+    {
+        return 'authoring';
+    }
+}

+ 36 - 0
src/ChamiloLMS/CourseBundle/Tool/Exercise.php

@@ -0,0 +1,36 @@
+<?php
+
+namespace ChamiloLMS\CourseBundle\Tool;
+
+/**
+ * Class Exercise
+ * @package ChamiloLMS\CourseBundle\Tool
+ */
+class Exercise extends BaseTool
+{
+    /**
+     * {@inheritdoc}
+     */
+    public function getName()
+    {
+        return 'Exercise';
+    }
+
+    /**
+     * {@inheritdoc}
+     */
+    public function getLink()
+    {
+        return 'exercice/exercice.php';
+    }
+
+    public function getTarget()
+    {
+        return '_self';
+    }
+
+    public function getCategory()
+    {
+        return 'authoring';
+    }
+}

+ 36 - 0
src/ChamiloLMS/CourseBundle/Tool/Forum.php

@@ -0,0 +1,36 @@
+<?php
+
+namespace ChamiloLMS\CourseBundle\Tool;
+
+/**
+ * Class Forum
+ * @package ChamiloLMS\CourseBundle\Tool
+ */
+class Forum extends BaseTool
+{
+    /**
+     * {@inheritdoc}
+     */
+    public function getName()
+    {
+        return 'Forum';
+    }
+
+    /**
+     * {@inheritdoc}
+     */
+    public function getLink()
+    {
+        return 'forum/index.php';
+    }
+
+    public function getTarget()
+    {
+        return '_self';
+    }
+
+    public function getCategory()
+    {
+        return 'authoring';
+    }
+}

+ 36 - 0
src/ChamiloLMS/CourseBundle/Tool/Glossary.php

@@ -0,0 +1,36 @@
+<?php
+
+namespace ChamiloLMS\CourseBundle\Tool;
+
+/**
+ * Class LearningPath
+ * @package ChamiloLMS\CourseBundle\Tool
+ */
+class Glossary extends BaseTool
+{
+    /**
+     * {@inheritdoc}
+     */
+    public function getName()
+    {
+        return 'Glossary';
+    }
+
+    /**
+     * {@inheritdoc}
+     */
+    public function getLink()
+    {
+        return 'glossary/index.php';
+    }
+
+    public function getTarget()
+    {
+        return '_self';
+    }
+
+    public function getCategory()
+    {
+        return 'authoring';
+    }
+}

+ 36 - 0
src/ChamiloLMS/CourseBundle/Tool/Gradebook.php

@@ -0,0 +1,36 @@
+<?php
+
+namespace ChamiloLMS\CourseBundle\Tool;
+
+/**
+ * Class Gradebook
+ * @package ChamiloLMS\CourseBundle\Tool
+ */
+class Gradebook extends BaseTool
+{
+    /**
+     * {@inheritdoc}
+     */
+    public function getName()
+    {
+        return 'Gradebook';
+    }
+
+    /**
+     * {@inheritdoc}
+     */
+    public function getLink()
+    {
+        return 'gradebook/index.php';
+    }
+
+    public function getTarget()
+    {
+        return '_self';
+    }
+
+    public function getCategory()
+    {
+        return 'authoring';
+    }
+}

+ 36 - 0
src/ChamiloLMS/CourseBundle/Tool/Group.php

@@ -0,0 +1,36 @@
+<?php
+
+namespace ChamiloLMS\CourseBundle\Tool;
+
+/**
+ * Class Dropbox
+ * @package ChamiloLMS\CourseBundle\Tool
+ */
+class Group extends BaseTool
+{
+    /**
+     * {@inheritdoc}
+     */
+    public function getName()
+    {
+        return 'Group';
+    }
+
+    /**
+     * {@inheritdoc}
+     */
+    public function getLink()
+    {
+        return 'group/group.php';
+    }
+
+    public function getTarget()
+    {
+        return '_self';
+    }
+
+    public function getCategory()
+    {
+        return 'authoring';
+    }
+}

+ 36 - 0
src/ChamiloLMS/CourseBundle/Tool/LearningPath.php

@@ -0,0 +1,36 @@
+<?php
+
+namespace ChamiloLMS\CourseBundle\Tool;
+
+/**
+ * Class LearningPath
+ * @package ChamiloLMS\CourseBundle\Tool
+ */
+class LearningPath extends BaseTool
+{
+    /**
+     * {@inheritdoc}
+     */
+    public function getName()
+    {
+        return 'LearningPath';
+    }
+
+    /**
+     * {@inheritdoc}
+     */
+    public function getLink()
+    {
+        return 'exercice/exercice.php';
+    }
+
+    public function getTarget()
+    {
+        return '_self';
+    }
+
+    public function getCategory()
+    {
+        return 'authoring';
+    }
+}

+ 36 - 0
src/ChamiloLMS/CourseBundle/Tool/Link.php

@@ -0,0 +1,36 @@
+<?php
+
+namespace ChamiloLMS\CourseBundle\Tool;
+
+/**
+ * Class LearningPath
+ * @package ChamiloLMS\CourseBundle\Tool
+ */
+class Link extends BaseTool
+{
+    /**
+     * {@inheritdoc}
+     */
+    public function getName()
+    {
+        return 'Link';
+    }
+
+    /**
+     * {@inheritdoc}
+     */
+    public function getLink()
+    {
+        return 'link/link.php';
+    }
+
+    public function getTarget()
+    {
+        return '_self';
+    }
+
+    public function getCategory()
+    {
+        return 'authoring';
+    }
+}

+ 36 - 0
src/ChamiloLMS/CourseBundle/Tool/Notebook.php

@@ -0,0 +1,36 @@
+<?php
+
+namespace ChamiloLMS\CourseBundle\Tool;
+
+/**
+ * Class Announcements
+ * @package ChamiloLMS\CourseBundle\Tool
+ */
+class Notebook extends BaseTool
+{
+    /**
+     * {@inheritdoc}
+     */
+    public function getName()
+    {
+        return 'Exercise';
+    }
+
+    /**
+     * {@inheritdoc}
+     */
+    public function getLink()
+    {
+        return 'notebook/index.php';
+    }
+
+    public function getTarget()
+    {
+        return '_self';
+    }
+
+    public function getCategory()
+    {
+        return 'authoring';
+    }
+}

+ 36 - 0
src/ChamiloLMS/CourseBundle/Tool/Survey.php

@@ -0,0 +1,36 @@
+<?php
+
+namespace ChamiloLMS\CourseBundle\Tool;
+
+/**
+ * Class Announcements
+ * @package ChamiloLMS\CourseBundle\Tool
+ */
+class Survey extends BaseTool
+{
+    /**
+     * {@inheritdoc}
+     */
+    public function getName()
+    {
+        return 'Survey';
+    }
+
+    /**
+     * {@inheritdoc}
+     */
+    public function getLink()
+    {
+        return 'survey/survey_list.php';
+    }
+
+    public function getTarget()
+    {
+        return '_self';
+    }
+
+    public function getCategory()
+    {
+        return 'authoring';
+    }
+}

+ 36 - 0
src/ChamiloLMS/CourseBundle/Tool/User.php

@@ -0,0 +1,36 @@
+<?php
+
+namespace ChamiloLMS\CourseBundle\Tool;
+
+/**
+ * Class Exercise
+ * @package ChamiloLMS\CourseBundle\Tool
+ */
+class User extends BaseTool
+{
+    /**
+     * {@inheritdoc}
+     */
+    public function getName()
+    {
+        return 'User';
+    }
+
+    /**
+     * {@inheritdoc}
+     */
+    public function getLink()
+    {
+        return 'user/user.php';
+    }
+
+    public function getTarget()
+    {
+        return '_self';
+    }
+
+    public function getCategory()
+    {
+        return 'authoring';
+    }
+}

+ 36 - 0
src/ChamiloLMS/CourseBundle/Tool/Wiki.php

@@ -0,0 +1,36 @@
+<?php
+
+namespace ChamiloLMS\CourseBundle\Tool;
+
+/**
+ * Class Wiki
+ * @package ChamiloLMS\CourseBundle\Tool
+ */
+class Wiki extends BaseTool
+{
+    /**
+     * {@inheritdoc}
+     */
+    public function getName()
+    {
+        return 'Exercise';
+    }
+
+    /**
+     * {@inheritdoc}
+     */
+    public function getLink()
+    {
+        return 'wiki/index.php';
+    }
+
+    public function getTarget()
+    {
+        return '_self';
+    }
+
+    public function getCategory()
+    {
+        return 'authoring';
+    }
+}

+ 36 - 0
src/ChamiloLMS/CourseBundle/Tool/Work.php

@@ -0,0 +1,36 @@
+<?php
+
+namespace ChamiloLMS\CourseBundle\Tool;
+
+/**
+ * Class Dropbox
+ * @package ChamiloLMS\CourseBundle\Tool
+ */
+class Work extends BaseTool
+{
+    /**
+     * {@inheritdoc}
+     */
+    public function getName()
+    {
+        return 'Exercise';
+    }
+
+    /**
+     * {@inheritdoc}
+     */
+    public function getLink()
+    {
+        return 'work/work.php';
+    }
+
+    public function getTarget()
+    {
+        return '_self';
+    }
+
+    public function getCategory()
+    {
+        return 'authoring';
+    }
+}