Documentation

Input
in package

Input class.

Tags
author

Samerton

version
2.0.0-pr8
license

MIT

Table of Contents

Methods

createTinyEditor()  : string
Create a new TinyMCE instance.
exists()  : bool
Check that specified input type exists.
get()  : mixed
Get input with specified name.

Methods

createTinyEditor()

Create a new TinyMCE instance.

public static createTinyEditor(Language $language, string $name[, string|null $content = null ][, bool $mentions = false ][, bool $admin = false ]) : string
Parameters
$language : Language

Instance of language class to use for translation.

$name : string

Name of input field ID.

$content : string|null = null

Any default content to insert

$mentions : bool = false

Whether to enable mention autocompletion/parsing or not.

$admin : bool = false

Enable admin only features

Return values
string

Script to render on page

exists()

Check that specified input type exists.

public static exists([string $type = 'post' ]) : bool
Parameters
$type : string = 'post'

Check for either POST or GET submission (optional, defaults to POST)

Return values
bool

Whether it exists or not.

get()

Get input with specified name.

public static get(string $item) : mixed
Parameters
$item : string

Name of element containing input to get.

Return values
mixed

Value of element in input.


        
On this page

Search results