當前位置: 首頁>>代碼示例>>PHP>>正文


PHP EE_Fieldtype::grid_settings_row方法代碼示例

本文整理匯總了PHP中EE_Fieldtype::grid_settings_row方法的典型用法代碼示例。如果您正苦於以下問題:PHP EE_Fieldtype::grid_settings_row方法的具體用法?PHP EE_Fieldtype::grid_settings_row怎麽用?PHP EE_Fieldtype::grid_settings_row使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在EE_Fieldtype的用法示例。


在下文中一共展示了EE_Fieldtype::grid_settings_row方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: grid_display_settings

 /**
  * Display Grid cell settings
  */
 function grid_display_settings($settings)
 {
     $settings = array_merge(Wygwam_helper::default_settings(), $settings);
     $rows = $this->_field_settings($settings, TRUE);
     // -------------------------------------------
     //  Column Conversion
     // -------------------------------------------
     // is this a new Wygwam cell?
     if (!isset($settings['config'])) {
         array_unshift($rows, array(lang('wygwam_convert_rows', 'wygwam_convert_rows'), form_dropdown('wygwam[convert]', self::$convert_previous_data_types, '', 'id="wygwam_convert_rows"')));
     }
     // Just throw the HTML together.
     foreach ($rows as &$row) {
         $row = EE_Fieldtype::grid_settings_row($row[0], $row[1]);
     }
     return $rows;
 }
開發者ID:kentonquatman,項目名稱:iofa,代碼行數:20,代碼來源:ft.wygwam.php

示例2: grid_display_settings

 /**
  * Display Grid Settings
  */
 function grid_display_settings($data)
 {
     // Add Package Path, because sometimes EE forgets it.
     $this->EE->load->add_package_path(PATH_THIRD . 'assets/');
     $rows = $this->_field_settings($data);
     // Just throw the HTML together.
     foreach ($rows as &$row) {
         $row = EE_Fieldtype::grid_settings_row($row[0], $row[1]);
     }
     return $rows;
 }
開發者ID:kentonquatman,項目名稱:canyonwoodridge,代碼行數:14,代碼來源:ft.assets.php


注:本文中的EE_Fieldtype::grid_settings_row方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。