Internal: Plugin: Add tool classes needed to create course tools from plugins #5073
parent
bbeabba6f1
commit
1715dde8c7
@ -0,0 +1,15 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
/* For licensing terms, see /license.txt */ |
||||||
|
|
||||||
|
declare(strict_types=1); |
||||||
|
|
||||||
|
namespace Chamilo\CoreBundle\Tool; |
||||||
|
|
||||||
|
abstract class AbstractPlugin extends AbstractCourseTool implements ToolInterface |
||||||
|
{ |
||||||
|
public function getCategory(): string |
||||||
|
{ |
||||||
|
return 'plugin'; |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,30 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
/* For licensing terms, see /license.txt */ |
||||||
|
|
||||||
|
declare(strict_types=1); |
||||||
|
|
||||||
|
namespace Chamilo\CoreBundle\Tool; |
||||||
|
|
||||||
|
class CustomCertificate extends AbstractPlugin |
||||||
|
{ |
||||||
|
public function getTitle(): string |
||||||
|
{ |
||||||
|
return 'customcertificate'; |
||||||
|
} |
||||||
|
|
||||||
|
public function getLink(): string |
||||||
|
{ |
||||||
|
return '/plugin/customcertificate/start.php'; |
||||||
|
} |
||||||
|
|
||||||
|
public function getIcon(): string |
||||||
|
{ |
||||||
|
return 'mdi-certificate-outline'; |
||||||
|
} |
||||||
|
|
||||||
|
public function getTitleToShow(): string |
||||||
|
{ |
||||||
|
return 'Custom certificate'; |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,29 @@ |
|||||||
|
<?php |
||||||
|
/* For licensing terms, see /license.txt */ |
||||||
|
|
||||||
|
declare(strict_types=1); |
||||||
|
|
||||||
|
namespace Chamilo\CoreBundle\Tool; |
||||||
|
|
||||||
|
class NotebookTeacher extends AbstractPlugin |
||||||
|
{ |
||||||
|
public function getTitle(): string |
||||||
|
{ |
||||||
|
return 'notebookteacher'; |
||||||
|
} |
||||||
|
|
||||||
|
public function getLink(): string |
||||||
|
{ |
||||||
|
return '/plugin/notebookteacher/start.php'; |
||||||
|
} |
||||||
|
|
||||||
|
public function getIcon(): string |
||||||
|
{ |
||||||
|
return 'mdi-note-edit'; |
||||||
|
} |
||||||
|
|
||||||
|
public function getTitleToShow(): string |
||||||
|
{ |
||||||
|
return 'Teacher notes'; |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,25 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
/* For licensing terms, see /license.txt */ |
||||||
|
|
||||||
|
declare(strict_types=1); |
||||||
|
|
||||||
|
namespace Chamilo\CoreBundle\Tool; |
||||||
|
|
||||||
|
class Positioning extends AbstractPlugin |
||||||
|
{ |
||||||
|
public function getTitle(): string |
||||||
|
{ |
||||||
|
return 'positioning'; |
||||||
|
} |
||||||
|
|
||||||
|
public function getLink(): string |
||||||
|
{ |
||||||
|
return '/plugin/positioning/start.php'; |
||||||
|
} |
||||||
|
|
||||||
|
public function getIcon(): string |
||||||
|
{ |
||||||
|
return 'mdi-radar'; |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,30 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
/* For licensing terms, see /license.txt */ |
||||||
|
|
||||||
|
declare(strict_types=1); |
||||||
|
|
||||||
|
namespace Chamilo\CoreBundle\Tool; |
||||||
|
|
||||||
|
class Test2Pdf extends AbstractPlugin |
||||||
|
{ |
||||||
|
public function getTitle(): string |
||||||
|
{ |
||||||
|
return 'test2pdf'; |
||||||
|
} |
||||||
|
|
||||||
|
public function getLink(): string |
||||||
|
{ |
||||||
|
return '/plugin/test2pdf/start.php'; |
||||||
|
} |
||||||
|
|
||||||
|
public function getIcon(): string |
||||||
|
{ |
||||||
|
return 'mdi-file-pdf-box'; |
||||||
|
} |
||||||
|
|
||||||
|
public function getTitleToShow(): string |
||||||
|
{ |
||||||
|
return 'Test to Pdf (Test2Pdf)'; |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,30 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
/* For licensing terms, see /license.txt */ |
||||||
|
|
||||||
|
declare(strict_types=1); |
||||||
|
|
||||||
|
namespace Chamilo\CoreBundle\Tool; |
||||||
|
|
||||||
|
class Zoom extends AbstractPlugin |
||||||
|
{ |
||||||
|
public function getTitle(): string |
||||||
|
{ |
||||||
|
return 'zoom'; |
||||||
|
} |
||||||
|
|
||||||
|
public function getLink(): string |
||||||
|
{ |
||||||
|
return 'plugin/zoom/start.php'; |
||||||
|
} |
||||||
|
|
||||||
|
public function getIcon(): string |
||||||
|
{ |
||||||
|
return 'mdi-video-box'; |
||||||
|
} |
||||||
|
|
||||||
|
public function getTitleToShow(): string |
||||||
|
{ |
||||||
|
return 'Zoom Videoconference'; |
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue