本文整理匯總了PHP中Browse::getEventsDocList方法的典型用法代碼示例。如果您正苦於以下問題:PHP Browse::getEventsDocList方法的具體用法?PHP Browse::getEventsDocList怎麽用?PHP Browse::getEventsDocList使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Browse
的用法示例。
在下文中一共展示了Browse::getEventsDocList方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: act_doc_list
public function act_doc_list()
{
$sqlStatement = Browse::getEventsDocList($this->event_id, $_GET);
include_once APPROOT . 'inc/lib_form.inc';
$entity_type_form_results = array('doc_id' => array('type' => 'text', 'label' => 'Document ID', 'map' => array('entity' => 'supporting_docs_meta', 'field' => 'doc_id')), 'entity_type' => array('type' => 'text', 'label' => 'Entity', 'map' => array('entity' => 'supporting_docs_meta', 'field' => 'entity_type')), 'title' => array('type' => 'text', 'label' => 'Document Title', 'map' => array('entity' => 'supporting_docs_meta', 'field' => 'title')), 'type' => array('type' => 'mt_select', 'label' => 'Type', 'map' => array('entity' => 'supporting_docs_meta', 'field' => 'type', 'mt' => 16)), 'format' => array('type' => 'text', 'label' => 'Format', 'map' => array('entity' => 'supporting_docs_meta', 'field' => 'format')));
$field_list = array();
foreach ($entity_type_form_results as $field_name => $field) {
// Generates the view's Label list
$field_list[$field['map']['field']] = $field['label'];
}
foreach ($entity_type_form_results as $fieldName => &$field) {
$field['extra_opts']['help'] = null;
$field['label'] = null;
$field['extra_opts']['clari'] = null;
$field['extra_opts']['value'] = $_GET[$fieldName];
$field['extra_opts']['required'] = null;
$field['extra_opts']['class'] = "input-block-level";
}
$entity_fields_html = shn_form_get_html_fields($entity_type_form_results);
$htmlFields = array();
//iterate through the search fields, checking input values
foreach ($entity_type_form_results as $field_name => $x) {
// Generates the view's Label list
$htmlFields[$field_name] = $entity_fields_html[$field_name];
}
$this->result_pager = Browse::getExecuteSql($sqlStatement);
$this->columnValues = $this->result_pager->get_page_data();
$this->columnValues = set_links_in_recordset($this->columnValues, 'supporting_docs_meta');
$recordArray = array();
foreach ($this->columnValues as $key => $columnValue) {
foreach ($columnValue as $val => $value) {
if ($val == 'entity_type') {
$recordArray[$key]['entity_record_url'] = get_record_url($columnValue['record_number'], $columnValue['entity_type']);
$recordArray[$key][$val] = ucfirst($columnValue['entity_type']);
} else {
$recordArray[$key][$val] = $value;
}
}
}
$this->columnValues = $recordArray;
set_huriterms_in_record_array($entity_type_form_results, $this->columnValues);
//rendering the view
$this->columnNames = $field_list;
$this->htmlFields = $htmlFields;
}