|
|
|
@ -39,7 +39,7 @@ class EmbedRegistryPlugin extends Plugin |
|
|
|
/** |
|
|
|
/** |
|
|
|
* @return string |
|
|
|
* @return string |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function get_title() |
|
|
|
public function getToolTitle() |
|
|
|
{ |
|
|
|
{ |
|
|
|
$title = $this->get(self::SETTING_TITLE); |
|
|
|
$title = $this->get(self::SETTING_TITLE); |
|
|
|
|
|
|
|
|
|
|
|
@ -47,7 +47,7 @@ class EmbedRegistryPlugin extends Plugin |
|
|
|
return $title; |
|
|
|
return $title; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return parent::get_title(); // TODO: Change the autogenerated stub |
|
|
|
return $this->get_title(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -110,7 +110,7 @@ class EmbedRegistryPlugin extends Plugin |
|
|
|
$courses = $em->createQuery('SELECT c.id FROM ChamiloCoreBundle:Course c')->getResult(); |
|
|
|
$courses = $em->createQuery('SELECT c.id FROM ChamiloCoreBundle:Course c')->getResult(); |
|
|
|
|
|
|
|
|
|
|
|
foreach ($courses as $course) { |
|
|
|
foreach ($courses as $course) { |
|
|
|
$this->createLinkToCourseTool($this->get_title(), $course['id']); |
|
|
|
$this->createLinkToCourseTool($this->getToolTitle(), $course['id']); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|