Adding missing tools.

1.10.x
Julio Montoya 11 years ago
parent 9f1b390213
commit 37ea0349b8
  1. 36
      src/ChamiloLMS/CourseBundle/Resources/config/services.yml
  2. 0
      src/ChamiloLMS/CourseBundle/Tool/Announcement.php
  3. 8
      src/ChamiloLMS/CourseBundle/Tool/Assignment.php
  4. 25
      src/ChamiloLMS/CourseBundle/Tool/Attendance.php
  5. 32
      src/ChamiloLMS/CourseBundle/Tool/Chat.php
  6. 32
      src/ChamiloLMS/CourseBundle/Tool/CourseProgress.php
  7. 2
      src/ChamiloLMS/CourseBundle/Tool/Dropbox.php
  8. 2
      src/ChamiloLMS/CourseBundle/Tool/Forum.php
  9. 2
      src/ChamiloLMS/CourseBundle/Tool/Group.php
  10. 2
      src/ChamiloLMS/CourseBundle/Tool/Notebook.php
  11. 2
      src/ChamiloLMS/CourseBundle/Tool/Survey.php
  12. 2
      src/ChamiloLMS/CourseBundle/Tool/User.php
  13. 2
      src/ChamiloLMS/CourseBundle/Tool/Wiki.php

@ -16,12 +16,25 @@ services:
- { name: chamilolm.course.tool }
chamilolms.coursebundle.tool.announcements.class:
class: ChamiloLMS\CourseBundle\Tool\Announcements
class: ChamiloLMS\CourseBundle\Tool\Announcement
arguments:
- document
tags:
- { name: chamilolm.course.tool }
chamilolms.coursebundle.tool.assignment.class:
class: ChamiloLMS\CourseBundle\Tool\Assignment
arguments:
- document
tags:
- { name: chamilolm.course.tool }
chamilolms.coursebundle.tool.attendance.class:
class: ChamiloLMS\CourseBundle\Tool\Attendance
arguments:
- attendance
tags:
- { name: chamilolm.course.tool }
chamilolms.coursebundle.tool.course_description.class:
class: ChamiloLMS\CourseBundle\Tool\CourseDescription
@ -30,6 +43,20 @@ services:
tags:
- { name: chamilolm.course.tool }
chamilolms.coursebundle.tool.chat.class:
class: ChamiloLMS\CourseBundle\Tool\Chat
arguments:
- chat
tags:
- { name: chamilolm.course.tool }
chamilolms.coursebundle.tool.course_progress.class:
class: ChamiloLMS\CourseBundle\Tool\CourseProgress
arguments:
- course_progress
tags:
- { name: chamilolm.course.tool }
chamilolms.coursebundle.tool.document.class:
class: ChamiloLMS\CourseBundle\Tool\Document
arguments:
@ -114,10 +141,5 @@ services:
tags:
- { name: chamilolm.course.tool }
chamilolms.coursebundle.tool.work.class:
class: ChamiloLMS\CourseBundle\Tool\Work
arguments:
- document
tags:
- { name: chamilolm.course.tool }

@ -4,17 +4,17 @@
namespace ChamiloLMS\CourseBundle\Tool;
/**
* Class Work
* Class Assignment
* @package ChamiloLMS\CourseBundle\Tool
*/
class Work extends BaseTool
class Assignment extends BaseTool
{
/**
* {@inheritdoc}
*/
public function getName()
{
return 'Work';
return 'Assignment';
}
/**
@ -32,6 +32,6 @@ class Work extends BaseTool
public function getCategory()
{
return 'authoring';
return 'interaction';
}
}

@ -0,0 +1,25 @@
<?php
/* For licensing terms, see /license.txt */
namespace ChamiloLMS\CourseBundle\Tool;
/**
* Class Attendance
* @package ChamiloLMS\CourseBundle\Tool
*/
class Attendance extends BaseTool
{
/**
* {@inheritdoc}
*/
public function getLink()
{
return 'attendance/index.php';
}
public function getCategory()
{
return 'authoring';
}
}

@ -0,0 +1,32 @@
<?php
/* For licensing terms, see /license.txt */
namespace ChamiloLMS\CourseBundle\Tool;
/**
* Class CourseDescription
* @package ChamiloLMS\CourseBundle\Tool
*/
class Chat extends BaseTool
{
/**
* {@inheritdoc}
*/
public function getName()
{
return 'chat';
}
/**
* {@inheritdoc}
*/
public function getLink()
{
return 'chat/chat.php';
}
public function getCategory()
{
return 'interaction';
}
}

@ -0,0 +1,32 @@
<?php
/* For licensing terms, see /license.txt */
namespace ChamiloLMS\CourseBundle\Tool;
/**
* Class CourseDescription
* @package ChamiloLMS\CourseBundle\Tool
*/
class CourseProgress extends BaseTool
{
/**
* {@inheritdoc}
*/
public function getName()
{
return 'course_progress';
}
/**
* {@inheritdoc}
*/
public function getLink()
{
return 'course_progress/index.php';
}
public function getCategory()
{
return 'authoring';
}
}

@ -32,6 +32,6 @@ class Dropbox extends BaseTool
public function getCategory()
{
return 'authoring';
return 'interaction';
}
}

@ -32,6 +32,6 @@ class Forum extends BaseTool
public function getCategory()
{
return 'authoring';
return 'interaction';
}
}

@ -32,6 +32,6 @@ class Group extends BaseTool
public function getCategory()
{
return 'authoring';
return 'interaction';
}
}

@ -32,6 +32,6 @@ class Notebook extends BaseTool
public function getCategory()
{
return 'authoring';
return 'interaction';
}
}

@ -32,6 +32,6 @@ class Survey extends BaseTool
public function getCategory()
{
return 'authoring';
return 'interaction';
}
}

@ -32,6 +32,6 @@ class User extends BaseTool
public function getCategory()
{
return 'authoring';
return 'interaction';
}
}

@ -32,6 +32,6 @@ class Wiki extends BaseTool
public function getCategory()
{
return 'authoring';
return 'interaction';
}
}

Loading…
Cancel
Save