本文整理匯總了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;
}
示例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;
}
示例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;
}