本文整理汇总了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;
}