ÿØÿà JFIF    ÿÛ „  ( %!1"%)+...383-7(-.+  -%%--------+------------/----------------------------ÿÀ  ¶" ÿÄ     ÿÄ @    !1AQaq‘¡"±ÁÑð2’BRráS‚ñ3b¢CT²Ò #cÿÄ    ÿÄ '   1!AQ2a"‘±#ÿÚ   ? ò(/p‘—–¢·,M|¯G»R£üešT. ôŸEoCFñ‡ 4ÔkåóxR|µÁ¨ÓDà!Ç´µ˜‡p ÍQ‹§!þž^õWsŒy  åÁ§$á«%ºq˜™JyyË0y«^Ϗ -3ÃÏËÈ£Æ\P’ä„s&•‹Üs üô'àWt¹pñCp$bÚF`·7.^)¾!)ÒÙ˜–ÅÏš^h¾ø³·ìe±ŒaeÖ—Í,e=B}Jéߦ$$½—šÙÜCC¯¶è8β–Åkèwx LÉngT±æ¹£Ócœ¿Í/©Éÿ ‰ÚCÒ­mq;Tt¶–}0"zÖPcd1š­¤tˆ„ÐÓâqú[™öUCŠ2޿د­É(¸ßúçšmW,Ò ºf‹Ån™ÄLêÁ8üÁkÁ€L¥ÍuJ1œôrÂSŒÓöt!7EUíïb)AËi¬â-ÙHk8òÁiXYwÅ)O^"ÇØriÛô{»wRUKÙÏÚlÓ¬€‚’שT ] ªb—ÊîKC^×M“xùäñz¬zJ× {4[¹M'IÆeH1LCWÕ]œûº WDæà°OÅ‚¹c²ÞuA–rL`HšpCez‡V’— Ž‚Ë„–ñ­'µR0ÕÖ=À:±G»C\nÆÉ5*¢ †3šhQ4ýÒi$Õ1"Ü]¢p-q3zcQ$ªö¨¥æf›‘»´ÝÚHá„e²JÇ–iÊ:·à¬Øc5Åk»Laª*wi [0Ówk ¦a¦0Õ²ÅÅ‚T¸’³q:Æ<¹ú Ò˜Æ}2VE•Ѐp¡Ô3Úº …h³^LJºçì¥Ánó|˜ÖˆÎˆ+« ¦dø‘Mº–d\ªDðÛ„Ì×LÝ——Ð9Ç|•FèçVm™¨€™3õS–9Äå¢<̉Ìm¢±`·º˜&Z²ž Ë®D«¶»6™‰©­HÈ Àá«h­i³04æ’hxœi3ï¨(ÓL·†‹¶ËpŒ ƒÜÒ? :õdsÀ –3æÓ·Üjâ¬9—]8n¼&]I F£¼…ì–—Œ0v°LǐÅfÛ2TÖ’aµ˜N@ÖBSÏ^à´4-±°b×nÈÈœÆD=KdŒø…ÄÈK,›ÖR§fjü$^ÔÎ!„6^ s:Üun\ôkCÞò÷<—Lúl Í›G¹ÀPá¼Nc¡šÒ…ÙWͳœ±vÊáЄ×9‹P‰cEØ‘™›µŸP<×g1 º©Ø¬wiÁ^l5× I/';Ë+´Z‡ÓÄFÕp[Èð’ HÄ ó 9¬Dl4“é±Ï”V=^Hð;žLädÉa‚°Ë,#/Ž~²BÔÛ QãñQtIeórVB,ÏÂf‹4#Μc‹É3ZIÖ Œ¢¥·üxa‡Ãçè„jŠ[5 Ä!U?,3žÎ×…ðdÓ÷háŠA‰ìÄ4÷ÃÜZÃE{‰®+W\ZÍE[‰»µk»MÝ­`¢©†˜ÃV‹-f¢¡†¢a«eŠ%«Y¨©q%jâd,Ôq`) ¤¦…šˆ ¦E>0Ùb²t–Ÿ  ÷jsςҒKÈcø(é›;k(’#ôŒQ ™C> õ³M9óºÆµ¤çâ;uÀ)5>RÔ¸fÓ~Ȧ—’-$fe«"FâUˆÊwµPÏu w+"åÉó¨6s™Û9(À¨ù©hE°½†n`m~“@©›p!Vkhµ Á1šbEqqÊ@ºèl›2 –Yã%‘‚hÛ{a¶‡ÅÞM²¬çL34®Çl]®‹ŽØŒm'RÜe35æöˆ­Á­ cP9šeÁköo´L³Ì=p8]”‡B¶,šº|ɏdzXˆØk*ÇÚ{#ñ‰pã(€¶‡9ý'šÜ³½¯kƒ†Â’ëSOƒ•Å®H6+a¢µˆ‹Y¨b˜b+XˆÖ!°u!¢"µˆˆn2ˆ Å0Ä`Å Ô®c(ÓÜGº•Ä»Œ âWî%q.áÐÄ÷î%umÍ£+ÜQ,Vn¦-GphU¸¢X­&,Gt ·K¢ÅÅ·¥RÄÊÉbKn N­R2g$VµÕó Qr#–ÓZUÏð0ÎtÙÀœz ëöo“Îk¯n„T°"SÞ+³/…€½"ižãO%Í%&Δâ‘ËØ´IˆÓ°Ë‰ÞM3.™yçÁzit›`4C`k¢¼á!álÄï sÂ[×!¤l¾æo"ƒIÔ'@ªu)3›ô®“@Z à¾] üœ'‡4¸PÞkÁ-qÄH‰ÓÍBd´ÿ —¹°ÄA&ÊUC„öz‚‚RæŠtf¬>˜ÑidšEçÑL÷áý¡V±h§­c¿¥¨ƒ@g¼…Ýö^ÞËc.ž„æ“I[ ª+·zÐÒÚ,½Ð»¶€C›7jk$๖€Ž¾ÅÙpp¶ÍþéΤ ½ØÎŒq ñpæžÅ¥#Øâ49ÃÂK^MYV“,¶Éz_òæ:…;Õ«¦I3âJ£¤û5$7Èxün\â]Êe¯(Ÿ&Ž‹¶2<6Ćf× æ¢ƱqWı[(ÙÂŽç‚T7¨@ÈÉÍß‚ïÙ"&3TYlGށ†)†#5ŠA©^T2ÆÁ†)©†©†¤yGXÁ†©"†)©¼ÅV WS†#©]R–r‹q5ÕbâWþBh¯u+ªÅÄ×ü„nÑ^êkªÁj‰jeœWˆÕÕ`µDµ2Ì+Ä µDµµ5Ô{¤Þ0RF’H÷AÛ<ÊÁ§ ƈæ0Ñ£ê4 öÚµ[¬/1²€â<-¬šö²r×0o×w ´xÐÒË„ g01¬„åEM蛇Ã\6µE›‘fÙO k÷CºnÓ1`iîÒ² áÂ!ÑLÄÿ ³¬\õ*:M=Ç»c‹2[‰ØsÕLò\ŒK L^™üÄN\¶#» Ç\……ßïIœÉ$¸ÎñÍ®ÔHÇ Ûí/´>Li”„†g^$ 7NÍÑÑ2M2ªNg=k½Ð}Ÿl6‡ —JWˆ”ÞéT·+µ¦üÂFè¢Vs6ýÆ4»2+2IÝ9ô9®ÇGÙÇ1+Ä8;*Õ§ž½D*îÑWÚçá3Ma¤·ˆ¥t}š²Ü…Q+Æüµ8HíS”üxGéÁˆ¦Ël„éÈ 5 µÄƒ6äÜ(kIš¯S†fÖ&¸®×v|Äyˆ*禌Éù@7-®Ä[]ÎÖ¿ê`º…=:…žJVnݳvðÖKE¼‚ »mà ÷f®:Ë ™–4rð¡4` ܹçž~‹C=œ…¾Ïj|VDtK.ƒ"9 Ï ­–éXá³6WÒïIL-Ї Ç home/smkb8269/public_html/lms.smk-almanshuriyah.sch.id/mod/forum/search.php000064400000037327152267106610022570 0ustar00. /** * @package mod_forum * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com} * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ require_once('../../config.php'); require_once('lib.php'); $id = required_param('id', PARAM_INT); // course id $search = trim(optional_param('search', '', PARAM_NOTAGS)); // search string $page = optional_param('page', 0, PARAM_INT); // which page to show $perpage = optional_param('perpage', 10, PARAM_INT); // how many per page $showform = optional_param('showform', 0, PARAM_INT); // Just show the form $user = trim(optional_param('user', '', PARAM_NOTAGS)); // Names to search for $userid = trim(optional_param('userid', 0, PARAM_INT)); // UserID to search for $forumid = trim(optional_param('forumid', 0, PARAM_INT)); // ForumID to search for $subject = trim(optional_param('subject', '', PARAM_NOTAGS)); // Subject $phrase = trim(optional_param('phrase', '', PARAM_NOTAGS)); // Phrase $words = trim(optional_param('words', '', PARAM_NOTAGS)); // Words $fullwords = trim(optional_param('fullwords', '', PARAM_NOTAGS)); // Whole words $notwords = trim(optional_param('notwords', '', PARAM_NOTAGS)); // Words we don't want $tags = optional_param_array('tags', [], PARAM_TEXT); $timefromrestrict = optional_param('timefromrestrict', 0, PARAM_INT); // Use starting date $fromday = optional_param('fromday', 0, PARAM_INT); // Starting date $frommonth = optional_param('frommonth', 0, PARAM_INT); // Starting date $fromyear = optional_param('fromyear', 0, PARAM_INT); // Starting date $fromhour = optional_param('fromhour', 0, PARAM_INT); // Starting date $fromminute = optional_param('fromminute', 0, PARAM_INT); // Starting date if ($timefromrestrict) { $calendartype = \core_calendar\type_factory::get_calendar_instance(); $gregorianfrom = $calendartype->convert_to_gregorian($fromyear, $frommonth, $fromday); $datefrom = make_timestamp($gregorianfrom['year'], $gregorianfrom['month'], $gregorianfrom['day'], $fromhour, $fromminute); } else { $datefrom = optional_param('datefrom', 0, PARAM_INT); // Starting date } $timetorestrict = optional_param('timetorestrict', 0, PARAM_INT); // Use ending date $today = optional_param('today', 0, PARAM_INT); // Ending date $tomonth = optional_param('tomonth', 0, PARAM_INT); // Ending date $toyear = optional_param('toyear', 0, PARAM_INT); // Ending date $tohour = optional_param('tohour', 0, PARAM_INT); // Ending date $tominute = optional_param('tominute', 0, PARAM_INT); // Ending date if ($timetorestrict) { $calendartype = \core_calendar\type_factory::get_calendar_instance(); $gregorianto = $calendartype->convert_to_gregorian($toyear, $tomonth, $today); $dateto = make_timestamp($gregorianto['year'], $gregorianto['month'], $gregorianto['day'], $tohour, $tominute); } else { $dateto = optional_param('dateto', 0, PARAM_INT); // Ending date } $starredonly = optional_param('starredonly', false, PARAM_BOOL); // Include only favourites. $params = [ 'id' => $id, 'perpage' => $perpage, ]; if ($search !== '') { $params['search'] = $search; } if ($page) { $params['page'] = $page; } if ($showform) { $params['showform'] = $showform; } if ($user !== '') { $params['user'] = $user; } if ($userid) { $params['userid'] = $userid; } if ($forumid) { $params['forumid'] = $forumid; } if ($subject !== '') { $params['subject'] = $subject; } if ($phrase !== '') { $params['phrase'] = $phrase; } if ($words !== '') { $params['words'] = $words; } if ($fullwords !== '') { $params['fullwords'] = $fullwords; } if ($notwords !== '') { $params['notwords'] = $notwords; } if ($timefromrestrict) { $params['timefromrestrict'] = $timefromrestrict; } if ($fromday) { $params['fromday'] = $fromday; } if ($fromhour) { $params['fromhour'] = $fromhour; } if ($fromminute) { $params['fromminute'] = $fromminute; } if ($frommonth) { $params['frommonth'] = $frommonth; } if ($fromyear) { $params['fromyear'] = $fromyear; } if ($datefrom) { $params['datefrom'] = $datefrom; } if ($timetorestrict) { $params['timetorestrict'] = $timetorestrict; } if ($today) { $params['today'] = $today; } if ($tohour) { $params['tohour'] = $tohour; } if ($tominute) { $params['tominute'] = $tominute; } if ($tomonth) { $params['tomonth'] = $tomonth; } if ($toyear) { $params['toyear'] = $toyear; } if ($dateto) { $params['dateto'] = $dateto; } if ($starredonly) { $params['starredonly'] = $starredonly; } $PAGE->set_pagelayout('standard'); $PAGE->set_url(new moodle_url('/mod/forum/search.php', $params)); $PAGE->set_secondary_active_tab("coursehome"); if (empty($search)) { // Check the other parameters instead if (!empty($words)) { $search .= ' '.$words; } if (!empty($userid)) { $search .= ' userid:'.$userid; } if (!empty($forumid)) { $search .= ' forumid:'.$forumid; } if (!empty($user)) { $search .= ' '.forum_clean_search_terms($user, 'user:'); } if (!empty($subject)) { $search .= ' '.forum_clean_search_terms($subject, 'subject:'); } if (!empty($fullwords)) { $search .= ' '.forum_clean_search_terms($fullwords, '+'); } if (!empty($notwords)) { $search .= ' '.forum_clean_search_terms($notwords, '-'); } if (!empty($phrase)) { $search .= ' "'.$phrase.'"'; } if (!empty($datefrom)) { $search .= ' datefrom:'.$datefrom; } if (!empty($dateto)) { $search .= ' dateto:'.$dateto; } if (!empty($tags)) { $search .= ' tags:' . implode(',', $tags); } if (!empty($starredonly)) { $search .= ' starredonly:on'; } $individualparams = true; } else { $individualparams = false; } if ($search) { $search = forum_clean_search_terms($search); } if (!$course = $DB->get_record('course', array('id'=>$id))) { throw new \moodle_exception('invalidcourseid'); } require_course_login($course); $params = array( 'context' => $PAGE->context, 'other' => array('searchterm' => $search) ); $event = \mod_forum\event\course_searched::create($params); $event->trigger(); $strforums = get_string("modulenameplural", "forum"); $strsearch = get_string("search", "forum"); $strsearchresults = get_string("searchresults", "forum"); $strpage = get_string("page"); if (!$search || $showform) { $url = new moodle_url('/mod/forum/index.php', array('id' => $course->id)); $PAGE->navbar->add($strforums, $url); $url = new moodle_url('/mod/forum/search.php', array('id' => $course->id)); $PAGE->navbar->add(get_string('advancedsearch', 'forum'), $url); $PAGE->set_title($strsearch); $PAGE->set_heading($course->fullname); echo $OUTPUT->header(); forum_print_big_search_form($course); echo $OUTPUT->footer(); exit; } /// We need to do a search now and print results $searchterms = str_replace('forumid:', 'instance:', $search); $searchterms = explode(' ', $searchterms); $searchform = forum_search_form($course, $search); $PAGE->navbar->add($strsearch, new moodle_url('/mod/forum/search.php', array('id'=>$course->id))); $PAGE->navbar->add($strsearchresults); if (!$posts = forum_search_posts($searchterms, $course->id, $page*$perpage, $perpage, $totalcount)) { $PAGE->set_title($strsearchresults); $PAGE->set_heading($course->fullname); echo $OUTPUT->header(); if (!$PAGE->has_secondary_navigation()) { echo $OUTPUT->heading($strforums, 2); } $PAGE->activityheader->set_title($strsearchresults); $searchresultsheadinglevel = $PAGE->activityheader->get_heading_level(); echo $OUTPUT->heading($strsearchresults, $searchresultsheadinglevel); echo $OUTPUT->heading(get_string("noposts", "forum"), $searchresultsheadinglevel + 1); if (!$individualparams) { $words = $search; } forum_print_big_search_form($course); echo $OUTPUT->footer(); exit; } //including this here to prevent it being included if there are no search results require_once($CFG->dirroot.'/rating/lib.php'); //set up the ratings information that will be the same for all posts $ratingoptions = new stdClass(); $ratingoptions->component = 'mod_forum'; $ratingoptions->ratingarea = 'post'; $ratingoptions->userid = $USER->id; $ratingoptions->returnurl = $PAGE->url->out(false); $rm = new rating_manager(); $PAGE->set_title($strsearchresults); $PAGE->set_heading($course->fullname); $PAGE->add_header_action($searchform); echo $OUTPUT->header(); echo ''; echo $OUTPUT->heading($strforums, 2); echo $OUTPUT->heading("$strsearchresults: $totalcount", 3); $url = new moodle_url('search.php', array('search' => $search, 'id' => $course->id, 'perpage' => $perpage)); echo $OUTPUT->paging_bar($totalcount, $page, $perpage, $url); //added to implement highlighting of search terms found only in HTML markup //fiedorow - 9/2/2005 $strippedsearch = str_replace('user:','',$search); $strippedsearch = str_replace('subject:','',$strippedsearch); $strippedsearch = str_replace('"','',$strippedsearch); $searchterms = explode(' ', $strippedsearch); // Search for words independently foreach ($searchterms as $key => $searchterm) { if (preg_match('/^\-/',$searchterm)) { unset($searchterms[$key]); } else { $searchterms[$key] = preg_replace('/^\+/','',$searchterm); } } $strippedsearch = implode(' ', $searchterms); // Rebuild the string $entityfactory = mod_forum\local\container::get_entity_factory(); $vaultfactory = mod_forum\local\container::get_vault_factory(); $rendererfactory = mod_forum\local\container::get_renderer_factory(); $managerfactory = mod_forum\local\container::get_manager_factory(); $legacydatamapperfactory = mod_forum\local\container::get_legacy_data_mapper_factory(); $forumdatamapper = $legacydatamapperfactory->get_forum_data_mapper(); $discussionvault = $vaultfactory->get_discussion_vault(); $discussionids = array_keys(array_reduce($posts, function($carry, $post) { $carry[$post->discussion] = true; return $carry; }, [])); $discussions = $discussionvault->get_from_ids($discussionids); $discussionsbyid = array_reduce($discussions, function($carry, $discussion) { $carry[$discussion->get_id()] = $discussion; return $carry; }, []); $forumvault = $vaultfactory->get_forum_vault(); $forumids = array_keys(array_reduce($discussions, function($carry, $discussion) { $carry[$discussion->get_forum_id()] = true; return $carry; }, [])); $forums = $forumvault->get_from_ids($forumids); $forumsbyid = array_reduce($forums, function($carry, $forum) { $carry[$forum->get_id()] = $forum; return $carry; }, []); $postids = array_map(function($post) { return $post->id; }, $posts); $poststorender = []; foreach ($posts as $post) { // Replace the simple subject with the three items forum name -> thread name -> subject // (if all three are appropriate) each as a link. if (!isset($discussionsbyid[$post->discussion])) { throw new \moodle_exception('invaliddiscussionid', 'forum'); } $discussion = $discussionsbyid[$post->discussion]; if (!isset($forumsbyid[$discussion->get_forum_id()])) { throw new \moodle_exception('invalidforumid', 'forum'); } $forum = $forumsbyid[$discussion->get_forum_id()]; $capabilitymanager = $managerfactory->get_capability_manager($forum); $postentity = $entityfactory->get_post_from_stdclass($post); if (!$capabilitymanager->can_view_post($USER, $discussion, $postentity)) { // Don't render posts that the user can't view. continue; } if ($postentity->is_deleted()) { // Don't render deleted posts. continue; } $poststorender[] = $postentity; } $renderer = $rendererfactory->get_posts_search_results_renderer($searchterms); echo $renderer->render( $USER, $forumsbyid, $discussionsbyid, $poststorender ); echo $OUTPUT->paging_bar($totalcount, $page, $perpage, $url); echo $OUTPUT->footer(); /** * Print a full-sized search form for the specified course. * * @param stdClass $course The Course that will be searched. * @return void The function prints the form. */ function forum_print_big_search_form($course) { global $PAGE, $words, $subject, $phrase, $user, $fullwords, $notwords, $datefrom, $dateto, $forumid, $tags, $starredonly; $renderable = new \mod_forum\output\big_search_form($course, $user); $renderable->set_words($words); $renderable->set_phrase($phrase); $renderable->set_notwords($notwords); $renderable->set_fullwords($fullwords); $renderable->set_datefrom($datefrom); $renderable->set_dateto($dateto); $renderable->set_subject($subject); $renderable->set_user($user); $renderable->set_forumid($forumid); $renderable->set_tags($tags); $renderable->set_starredonly($starredonly); $output = $PAGE->get_renderer('mod_forum'); echo $output->render($renderable); } /** * This function takes each word out of the search string, makes sure they are at least * two characters long and returns an string of the space-separated search * terms. * * @param string $words String containing space-separated strings to search for. * @param string $prefix String to prepend to the each token taken out of $words. * @return string The filtered search terms, separated by spaces. * @todo Take the hardcoded limit out of this function and put it into a user-specified parameter. */ function forum_clean_search_terms($words, $prefix='') { $searchterms = explode(' ', $words); foreach ($searchterms as $key => $searchterm) { if (strlen($searchterm) < 2) { unset($searchterms[$key]); } else if ($prefix) { $searchterms[$key] = $prefix.$searchterm; } } return trim(implode(' ', $searchterms)); } /** * Retrieve a list of the forums that this user can view. * * @param stdClass $course The Course to use. * @return array A set of formatted forum names stored against the forum id. */ function forum_menu_list($course) { $menu = array(); $modinfo = get_fast_modinfo($course); if (empty($modinfo->instances['forum'])) { return $menu; } foreach ($modinfo->instances['forum'] as $cm) { if (!$cm->uservisible) { continue; } $context = context_module::instance($cm->id); if (!has_capability('mod/forum:viewdiscussion', $context)) { continue; } $menu[$cm->instance] = format_string($cm->name); } return $menu; } home/smkb8269/public_html/lms.smk-almanshuriyah.sch.id/mod/wiki/search.php000064400000005710152267121630022371 0ustar00. /** * @package mod_wiki * @copyright 2010 Dongsheng Cai * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ require_once('../../config.php'); require_once($CFG->dirroot . '/mod/wiki/lib.php'); require_once($CFG->dirroot . '/mod/wiki/locallib.php'); require_once($CFG->dirroot . '/mod/wiki/pagelib.php'); $search = optional_param('searchstring', null, PARAM_TEXT); $courseid = optional_param('courseid', 0, PARAM_INT); $searchcontent = optional_param('searchwikicontent', 0, PARAM_INT); $cmid = optional_param('cmid', 0, PARAM_INT); $subwikiid = optional_param('subwikiid', 0, PARAM_INT); $userid = optional_param('uid', 0, PARAM_INT); if (!$course = $DB->get_record('course', array('id' => $courseid))) { throw new \moodle_exception('invalidcourseid'); } if (!$cm = get_coursemodule_from_id('wiki', $cmid)) { throw new \moodle_exception('invalidcoursemodule'); } require_login($course, true, $cm); // Checking wiki instance if (!$wiki = wiki_get_wiki($cm->instance)) { throw new \moodle_exception('incorrectwikiid', 'wiki'); } if ($subwikiid) { // Subwiki id is specified. $subwiki = wiki_get_subwiki($subwikiid); if (!$subwiki || $subwiki->wikiid != $wiki->id) { throw new \moodle_exception('incorrectsubwikiid', 'wiki'); } } else { // Getting current group id $gid = groups_get_activity_group($cm); // Getting current user id if ($wiki->wikimode == 'individual') { $userid = $userid ? $userid : $USER->id; } else { $userid = 0; } if (!$subwiki = wiki_get_subwiki_by_group($cm->instance, $gid, $userid)) { // Subwiki does not exist yet, redirect to the view page (which will redirect to create page if allowed). $params = array('wid' => $wiki->id, 'group' => $gid, 'uid' => $userid, 'title' => $wiki->firstpagetitle); $url = new moodle_url('/mod/wiki/view.php', $params); redirect($url); } } if ($subwiki && !wiki_user_can_view($subwiki, $wiki)) { throw new \moodle_exception('cannotviewpage', 'wiki'); } $wikipage = new page_wiki_search($wiki, $subwiki, $cm); $wikipage->set_search_string($search, $searchcontent); $wikipage->set_title(get_string('search')); $wikipage->print_header(); $wikipage->print_content(); $wikipage->print_footer(); home/smkb8269/public_html/lms.smk-almanshuriyah.sch.id/lib/classes/plugininfo/search.php000064400000003075152267535340025235 0ustar00. /** * Defines classes used for plugin info. * * @package core * @copyright 2015 Daniel Neis * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace core\plugininfo; defined('MOODLE_INTERNAL') || die(); /** * Class for search plugins * * @package core * @copyright 2015 Daniel Neis * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class search extends base { /** * Is uninstall allowed or not. * * @return bool */ public function is_uninstall_allowed() { return true; } /** * Returns the node name used in admin settings menu for this plugin settings (if applicable). * * @return null|string node name or null if plugin does not create settings node (default) */ public function get_settings_section_name() { return 'searchsetting' . $this->name; } }