當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。