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