Menu

## CKEditor extends Html
in package

CKEditor.php : 18

This class provides functions to work with CKEditor.

##### Tags

see
  https://www.kotchasan.com/

### Table of Contents

$attributes : array<string|int, mixed>
  Tag attributes
$form : Form
  Form object variable
$cfg : object
  Config class instance.
$javascript : array<string|int, mixed>
  JavaScript
$request : Request
  Server request class instance.
$rows : array<string|int, mixed>
  Array of data within the tag
$tag : string
  Tag name
__construct() : mixed
  Class constructor
add() : static
  Insert a tag into the element like using innerHTML
appendChild() : mixed
  Append HTML to the element at the end position
create() : static
  Create a new Element
enabledUpload() : bool
  Check if CKEDITOR upload is enabled.
fieldset() : self
  Create a fieldset element.
form() : self
  Create a form element.
innerHtml() : string
  Generate an HTML element with the specified inner HTML content.
render() : string
  Render the CKEditor HTML code.
script() : mixed
  Add a JavaScript script to the form or the current instance.
toDiv() : string
  Convert {} to HTML entities.
toTextarea() : string
  Convert special characters and {} to HTML entities.
renderAttributes() : string
  Render the attributes of the HTML tag as a string.
addCKEditor() : static
  Add a CKEditor element to the HTML.
addGroups() : static
  Add a groups element to the HTML.
addInputGroups() : static
  Add an input groups element to the HTML.
addMenuButton() : static
  Add a menu button element to the HTML.
addRadioOrCheckbox() : static
  Add a radio or checkbox groups element to the HTML.

### Properties

#### $attributes

Html.php : 25

Tag attributes

`public array<string|int, mixed> $attributes`

#### $form

Html.php : 31

Form object variable

`public static Form $form`

#### $cfg

KBase.php : 26

Config class instance.

`protected static object $cfg`

#### $javascript

Html.php : 37

JavaScript

`protected array<string|int, mixed> $javascript`

#### $request

KBase.php : 33

Server request class instance.

`protected static Request $request`

#### $rows

Html.php : 43

Array of data within the tag

`protected array<string|int, mixed> $rows`

#### $tag

Html.php : 49

Tag name

`protected string $tag`

### Methods

#### __construct()

Html.php : 54

Class constructor

`public __construct(mixed $tag[, mixed $attributes = [] ]) : mixed`

##### Parameters

$tag : mixed
$attributes : mixed = []

##### Return values

mixed —

#### add()

Html.php : 70

Insert a tag into the element like using innerHTML

`public add(string $tag[, array<string|int, mixed> $attributes = [] ]) : static`

##### Parameters

$tag : string
$attributes : array<string|int, mixed> = []

##### Return values

static —

#### appendChild()

Html.php : 105

Append HTML to the element at the end position

`public appendChild(string $html) : mixed`

##### Parameters

$html : string

##### Return values

mixed —

#### create()

Html.php : 118

Create a new Element

`public static create(string $tag[, array<string|int, mixed> $attributes = [] ]) : static`

##### Parameters

$tag : string
$attributes : array<string|int, mixed> = []

##### Return values

static —

#### enabledUpload()

CKEditor.php : 25

Check if CKEDITOR upload is enabled.

`public static enabledUpload() : bool`

##### Return values

bool —

#### fieldset()

Html.php : 137

Create a fieldset element.

`public static fieldset([array<string|int, mixed> $attributes = [] ]) : self`

##### Parameters

$attributes : array<string|int, mixed> = []

  The attributes of the fieldset element.

##### Return values

self —

The created fieldset element.

#### form()

Html.php : 169

Create a form element.

`public static form([array<string|int, mixed> $attributes = [] ]) : self`

##### Parameters

$attributes : array<string|int, mixed> = []

  The attributes of the form element.

##### Return values

self —

The created form element.

#### innerHtml()

Html.php : 243

Generate an HTML element with the specified inner HTML content.

`public innerHtml(string $html) : string`

##### Parameters

$html : string

  The inner HTML content.

##### Return values

string —

The generated HTML markup.

#### render()

CKEditor.php : 40

Render the CKEditor HTML code.

`public render() : string`

##### Return values

string —

#### script()

Html.php : 293

Add a JavaScript script to the form or the current instance.

`public script(string $script) : mixed`

##### Parameters

$script : string

  The JavaScript script to add.

##### Return values

mixed —

#### toDiv()

CKEditor.php : 126

Convert {} to HTML entities.

`public toDiv(string $str) : string`

Used for div tag.

##### Parameters

$str : string

  The text

##### Return values

string —

#### toTextarea()

CKEditor.php : 139

Convert special characters and {} to HTML entities.

`public toTextarea(string $str) : string`

Used for textarea tag.

##### Parameters

$str : string

  The text

##### Return values

string —

#### renderAttributes()

Html.php : 309

Render the attributes of the HTML tag as a string.

`protected renderAttributes() : string`

##### Return values

string —

The rendered attributes.

#### addCKEditor()

Html.php : 336

Add a CKEditor element to the HTML.

`private addCKEditor(string $tag, array<string|int, mixed> $attributes) : static`

##### Parameters

$tag : string

  The tag name.

$attributes : array<string|int, mixed>

  The attributes of the element.

##### Return values

static —

The added CKEditor element.

#### addGroups()

Html.php : 364

Add a groups element to the HTML.

`private addGroups(string $tag, array<string|int, mixed> $attributes) : static`

##### Parameters

$tag : string

  The tag name.

$attributes : array<string|int, mixed>

  The attributes of the element.

##### Return values

static —

The added groups element.

#### addInputGroups()

Html.php : 439

Add an input groups element to the HTML.

`private addInputGroups(array<string|int, mixed> $attributes) : static`

##### Parameters

$attributes : array<string|int, mixed>

  The attributes of the element.

##### Return values

static —

The added input groups element.

#### addMenuButton()

Html.php : 583

Add a menu button element to the HTML.

`private addMenuButton(array<string|int, mixed> $attributes) : static`

##### Parameters

$attributes : array<string|int, mixed>

  The attributes of the element.

##### Return values

static —

The added menu button element.

#### addRadioOrCheckbox()

Html.php : 651

Add a radio or checkbox groups element to the HTML.

`private addRadioOrCheckbox(string $tag, array<string|int, mixed> $attributes) : static`

##### Parameters

$tag : string

  The tag name ('radiogroups' or 'checkboxgroups').

$attributes : array<string|int, mixed>

  The attributes of the element.

##### Return values

static —

The added radio or checkbox groups element.

## Search results