/** * 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); }
/** * Compares two plugins. * @param editor_tinymce_plugin $a * @param editor_tinymce_plugin $b * @return Negative number if $a is before $b */ public static function compare_plugins(editor_tinymce_plugin $a, editor_tinymce_plugin $b) { // Use sort order first. $order = $a->get_sort_order() - $b->get_sort_order(); if ($order != 0) { return $order; } // Then sort alphabetically. return strcmp($a->plugin, $b->plugin); }
/** * 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); }
public function test_add_button_before(array &$params, $row, $button, $before = '', $alwaysadd = true) { return parent::add_button_before($params, $row, $button, $before, $alwaysadd); }