本文整理汇总了PHP中CKEditor::className方法的典型用法代码示例。如果您正苦于以下问题:PHP CKEditor::className方法的具体用法?PHP CKEditor::className怎么用?PHP CKEditor::className使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CKEditor
的用法示例。
在下文中一共展示了CKEditor::className方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getWidgetClassNameFromFieldType
/**
* Get default widget class based on input field type
* @param string $type
* @return string
*/
public static function getWidgetClassNameFromFieldType($type)
{
switch ($type) {
case self::INPUT_DATE:
$widgetClass = DatePicker::className();
break;
case self::INPUT_DATETIME:
$widgetClass = DateTimePicker::className();
break;
case self::INPUT_COLOR:
$widgetClass = ColorInput::className();
break;
case self::INPUT_SELECT2_MULTI:
case self::INPUT_SELECT2_TAGS:
case self::INPUT_SELECT2:
$widgetClass = Select2::className();
break;
case self::INPUT_SELECT_PICKER:
case self::INPUT_SELECT_PICKER_MULTI:
$widgetClass = BootstrapSelect::className();
break;
case self::INPUT_EDITOR_CK:
$widgetClass = CKEditor::className();
break;
case self::INPUT_EDITOR_BS_WYSIHTML5:
$widgetClass = BootstrapWysihtml5::className();
break;
case self::INPUT_EDITOR_BS_SUMMERNOTE:
$widgetClass = BootstrapSummernote::className();
break;
default:
$widgetClass = '';
break;
}
return $widgetClass;
}