当前位置: 首页>>代码示例>>PHP>>正文


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怎么用?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;
     }
 }
开发者ID:vejlebib,项目名称:ting_field_search,代码行数:25,代码来源:ting_field_search_ctools_export_ui.class.php

示例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);
 }
开发者ID:anatolic,项目名称:vintage,代码行数:17,代码来源:panels_frame_ui.class.php

示例3:

 /**
  * Overrides ctools_export_ui::list_build_row().
  */
 function list_build_row($item, &$form_state, $operations)
 {
     parent::list_build_row($item, $form_state, $operations);
 }
开发者ID:ludichrislyts,项目名称:fieldWork,代码行数:7,代码来源:current_search_export_ui.class.php

示例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);
 }
开发者ID:elm45,项目名称:twistedrail,代码行数:22,代码来源:SlickUi.class.php


注:本文中的ctools_export_ui::list_build_row方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。