本文整理汇总了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;
}