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


PHP SearchHelper::getSearchFields方法代碼示例

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


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

示例1: do_guiBuilder

 function do_guiBuilder()
 {
     $this->oPage->setBreadcrumbDetails(_kt("Advanced Search"));
     $this->oPage->title = _kt("Advanced Search");
     $result = array();
     // TODO: need to escape the parameters
     $result['fieldsets'] = SearchHelper::getFieldsets();
     $result['fieldset_str'] = SearchHelper::getJSfieldsetStruct($result['fieldsets']);
     $result['workflows'] = SearchHelper::getWorkflows();
     $result['workflow_str'] = SearchHelper::getJSworkflowStruct($result['workflows']);
     $result['fields'] = SearchHelper::getSearchFields();
     $result['fields_str'] = SearchHelper::getJSfieldsStruct($result['fields']);
     $result['users_str'] = SearchHelper::getJSusersStruct();
     $result['mimetypes_str'] = SearchHelper::getJSmimeTypesStruct();
     $result['documenttypes_str'] = SearchHelper::getJSdocumentTypesStruct();
     $oTemplating =& KTTemplating::getSingleton();
     $oTemplate = $oTemplating->loadTemplate("ktcore/search2/adv_query_builder");
     $aTemplateData = array("context" => $this, 'metainfo' => $result);
     return $oTemplate->render($aTemplateData);
 }
開發者ID:jpbauer,項目名稱:knowledgetree,代碼行數:20,代碼來源:search2.php

示例2: getSearchFields

 public static function getSearchFields()
 {
     $results = SearchHelper::getSearchFields();
     AjaxSearchHelper::createResponse(AjaxSearchHelper::STATUS_SUCCESS, null, 'fields', $results);
 }
開發者ID:sfsergey,項目名稱:knowledgetree,代碼行數:5,代碼來源:ajax.inc.php

示例3: getJSfieldsStruct

 public static function getJSfieldsStruct($fields = null)
 {
     if (is_null($fields)) {
         $fields = SearchHelper::getSearchFields();
     }
     $fields_str = '[';
     $fo = 0;
     foreach ($fields as $field) {
         if ($fo++ > 0) {
             $fields_str .= ',';
         }
         $alias = searchfix($field['alias']);
         $display = searchfix($field['display']);
         $type = $field['type'];
         $fields_str .= "\n\t{alias: \"{$alias}\", name: \"{$display}\", type:\"{$type}\"}";
     }
     $fields_str .= ']';
     return $fields_str;
 }
開發者ID:sfsergey,項目名稱:knowledgetree,代碼行數:19,代碼來源:search.inc.php


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