예제 #1
0
파일: lib.php 프로젝트: vinoth4891/clinique
 /**
  * Gets a named plugin object. Will cause fatal error if plugin doesn't
  * exist. This is intended for use by plugin files themselves.
  *
  * @param string $plugin Name of plugin e.g. 'moodleemoticon'
  * @return editor_tinymce_plugin Plugin object
  */
 public function get_plugin($plugin)
 {
     global $CFG;
     require_once $CFG->dirroot . '/lib/editor/tinymce/classes/plugin.php';
     return editor_tinymce_plugin::get($plugin);
 }
예제 #2
0
 /**
  * Gets a named plugin object. Will cause fatal error if plugin doesn't
  * exist. This is intended for use by plugin files themselves.
  *
  * @param string $plugin Name of plugin e.g. 'moodleemoticon'
  * @return editor_tinymce_plugin Plugin object
  */
 public function get_plugin($plugin)
 {
     global $CFG;
     return editor_tinymce_plugin::get($plugin);
 }