本文整理匯總了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;
}
示例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;
}