本文整理汇总了PHP中ctools_export_ui::list_build_row方法的典型用法代码示例。如果您正苦于以下问题:PHP ctools_export_ui::list_build_row方法的具体用法?PHP ctools_export_ui::list_build_row怎么用?PHP ctools_export_ui::list_build_row使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ctools_export_ui
的用法示例。
在下文中一共展示了ctools_export_ui::list_build_row方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: t
function list_build_row($profile, &$form_state, $operations)
{
parent::list_build_row($profile, $form_state, $operations);
$name = $profile->name;
$row_data =& $this->rows[$name]['data'];
// We want the operations last so remove it now, add our stuff and add it
// again later when we're done.
$operations = array_pop($row_data);
$row_data[]['data'] = check_plain($profile->config['search_request']['search_well_profile']);
$row_data[]['data'] = check_plain($profile->config['search_request']['query']);
$row_data[]['data'] = $profile->config['user_interaction']['exposed'] ? t('Yes') : t('No');
$row_data[]['data'] = $profile->weight;
$row_data[] = $operations;
// Prepare for the sorting (the parent handles name and title).
$weight = $profile->weight;
$exposed = $profile->config['user_interaction']['exposed'];
switch ($form_state['values']['order']) {
case 'weight':
$this->sorts[$name] = $weight;
break;
case 'exposed':
$this->sorts[$name] = $exposed;
break;
}
}
示例2: switch
function list_build_row($item, &$form_state, $operations)
{
parent::list_build_row($item, $form_state, $operations);
// Set up additional sorting for Label and Category.
switch ($form_state['values']['order']) {
case 'label':
$this->sorts[$item->name] = $item->label;
break;
case 'category':
$this->sorts[$item->name] = ($item->category ? $item->category : t('Miscellaneous')) . $item->label;
break;
}
// Add an additional Category column after the first two columns.
$category = $item->category ? check_plain($item->category) : t('Miscellaneous');
$column = array(array('data' => $category, 'class' => array('ctools-export-ui-category')));
array_splice($this->rows[$item->name]['data'], 2, 0, $column);
}
示例3:
/**
* Overrides ctools_export_ui::list_build_row().
*/
function list_build_row($item, &$form_state, $operations)
{
parent::list_build_row($item, $form_state, $operations);
}
示例4: list_build_row
/**
* Overrides parent::list_build_row.
*/
public function list_build_row($item, &$form_state, $operations)
{
parent::list_build_row($item, $form_state, $operations);
$name = $item->{$this->plugin['export']['key']};
$skins = slick_skins();
$breakpoints = $this->items[$name]->breakpoints ? $this->items[$name]->breakpoints : 0;
$skin = $this->items[$name]->skin;
$skin_name = $skin ? check_plain($skin) : t('None');
if ($skin) {
$description = isset($skins[$skin]['description']) && $skins[$skin]['description'] ? filter_xss_admin($skins[$skin]['description']) : '';
if ($description) {
$skin_name .= '<br /><em>' . $description . '</em>';
}
}
$breakpoints_row[] = array('data' => $breakpoints, 'class' => array('ctools-export-ui-breakpoints'));
array_splice($this->rows[$name]['data'], 2, 0, $breakpoints_row);
$skin_row[] = array('data' => $skin_name, 'class' => array('ctools-export-ui-skin'), 'style' => "white-space: normal; word-wrap: break-word; max-width: 320px;");
array_splice($this->rows[$name]['data'], 3, 0, $skin_row);
}