本文整理匯總了PHP中ctools_export_ui::list_table_header方法的典型用法代碼示例。如果您正苦於以下問題:PHP ctools_export_ui::list_table_header方法的具體用法?PHP ctools_export_ui::list_table_header怎麽用?PHP ctools_export_ui::list_table_header使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ctools_export_ui
的用法示例。
在下文中一共展示了ctools_export_ui::list_table_header方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: foreach
function list_table_header()
{
$headers = parent::list_table_header();
// Replace the "Title" header with "Label".
foreach ($headers as $key => $value) {
if ($value['data'] == t('Title')) {
$headers[$key]['data'] = t('Label');
break;
}
}
// Insert the Category header after the first two headers.
$column = array(array('data' => t('Category'), 'class' => array('ctools-export-ui-category')));
array_splice($headers, 2, 0, $column);
return $headers;
}
示例2: t
function list_table_header()
{
$header = parent::list_table_header();
$operations = array_pop($header);
$header[]['data'] = t('Search well profile');
$header[]['data'] = t('Query');
$header[]['data'] = t('Exposed');
$header[] = t('Weight');
$header[] = $operations;
return $header;
}
示例3: list_table_header
/**
* Overrides parent::list_table_header.
*/
public function list_table_header()
{
$headers = parent::list_table_header();
$breakpoints_header[] = array('data' => t('Breakpoint'), 'class' => array('ctools-export-ui-breakpoints'));
array_splice($headers, 2, 0, $breakpoints_header);
$skin_header[] = array('data' => t('Skin'), 'class' => array('ctools-export-ui-skin'));
array_splice($headers, 3, 0, $skin_header);
return $headers;
}
示例4: array
/**
* Provide the table header.
*
* If you've added columns via list_build_row() but are still using a
* table, override this method to set up the table header.
*/
function list_table_header()
{
$header = parent::list_table_header();
// Add the order columns as the next to last.
$last = array_pop($header);
$header[] = array('data' => t('Weight'));
$header[] = $last;
return $header;
}