當前位置: 首頁>>代碼示例>>PHP>>正文


PHP repository::print_search方法代碼示例

本文整理匯總了PHP中repository::print_search方法的典型用法代碼示例。如果您正苦於以下問題:PHP repository::print_search方法的具體用法?PHP repository::print_search怎麽用?PHP repository::print_search使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在repository的用法示例。


在下文中一共展示了repository::print_search方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: print_search

 public function print_search() {
     $str = parent::print_search();
     $str .= '<label>Space: </label><br /><select name="space">';
     foreach ($this->user_session->stores as $v) {
         $str .= '<option ';
         if ($v->__toString() === 'workspace://SpacesStore') {
             $str .= 'selected ';
         }
         $str .= 'value="';
         $str .= $v->__toString().'">';
         $str .= $v->__toString();
         $str .= '</option>';
     }
     $str .= '</select>';
     return $str;
 }
開發者ID:nigeli,項目名稱:moodle,代碼行數:16,代碼來源:lib.php

示例2: print_search

 public function print_search()
 {
     $str = parent::print_search();
     $str .= html_writer::label(get_string('space', 'repository_alfresco'), 'repository_alfresco_space', false, array('class' => 'accesshide'));
     $str .= '<select id="repository_alfresco_space" class="alfresco-workplace" name="space">';
     foreach ($this->user_session->stores as $v) {
         $str .= '<option ';
         if ($v->__toString() === 'workspace://SpacesStore') {
             $str .= 'selected ';
         }
         $str .= 'value="';
         $str .= $v->__toString() . '">';
         $str .= $v->__toString();
         $str .= '</option>';
     }
     $str .= '</select>';
     return $str;
 }
開發者ID:EmmanuelYupit,項目名稱:educursos,代碼行數:18,代碼來源:lib.php

示例3: print_search

    public function print_search() {
        global $CFG, $DB;

//        require_once $CFG->dirroot.'/repository/elisfiles/renderer.php';
//        //reset the page template
//        // we need to send filepicker templates to the browser just once
//        $fprenderer = $PAGE->get_renderer('repository', 'elisfiles');

        require_once $CFG->dirroot.'/repository/elisfiles/lib/ELIS_files.php';
        require_once $CFG->dirroot.'/repository/elisfiles/ELIS_files_factory.class.php';
        require_once $CFG->dirroot.'/repository/elisfiles/lib/HTML_TreeMenu-1.2.0/TreeMenu.php';
        require_once $CFG->dirroot.'/repository/elisfiles/tree_menu_lib.php';

        $str = ''; // BJB140106: WAS get_string('searchforfilesinrepository', 'repository_elisfiles');

//        $renderer = $PAGE->get_renderer('repository', 'elisfiles');
//        $str .= $renderer->repository_default_searchform();
        $str .= parent::print_search();

        return $str;
    }
開發者ID:jamesmcq,項目名稱:elis,代碼行數:21,代碼來源:lib.php


注:本文中的repository::print_search方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。