XOOPS  2.6.0
XoopsFormTinymce4 Class Reference
Inheritance diagram for XoopsFormTinymce4:
Inheritance graph

Public Member Functions

 __construct ($configs)
 
 getFonts ()
 
 getLanguage ()
 
 isActive ()
 
 render ()
 
 renderValidationJS ()
 
- Public Member Functions inherited from XoopsEditor
 __construct ()
 
 isActive ()
 
 setConfig ($options)
 
- Public Member Functions inherited from Xoops\Form\TextArea
 __construct ($caption, $name, $value="", $rows=5, $cols=5, $placeholder= '')
 
 getCols ()
 
 getPlaceholder ()
 
 getRows ()
 
 render ()
 
- Public Member Functions inherited from Xoops\Form\Element
 getAccessKey ()
 
 getAccessString ($str)
 
 getCaption ()
 
 getClass ()
 
 getDatalist ()
 
 getDescription ($encode=false)
 
 getExtra ($encode=false)
 
 getMaxcols ()
 
 getName ()
 
 getPattern ()
 
 getPatternDescription ()
 
 getTitle ()
 
 getValue ($encode=false)
 
 isDatalist ()
 
 isHidden ()
 
 isRequired ()
 
 render ()
 
 renderAttributeString ()
 
 renderValidationJS ()
 
 setAccessKey ($key)
 
 setCaption ($caption)
 
 setClass ($class)
 
 setDatalist ($datalist)
 
 setDescription ($description)
 
 setExtra ($extra, $replace=false)
 
 setHidden ()
 
 setName ($name)
 
 setPattern ($pattern, $pattern_description= '')
 
 setRequired ($bool=true)
 
 setTitle ($title)
 
 setValue ($value)
 
- Public Member Functions inherited from Xoops\Html\Attributes
 addAttribute ($name, $value)
 
 getAttribute ($name)
 
 hasAttribute ($name)
 
 renderAttributeString ()
 
 setAttribute ($name, $value=null)
 
 setAttributes ($values)
 
 unsetAttribute ($name)
 

Public Attributes

 $editor
 
 $height = "500px"
 
 $language
 
 $width = "100%"
 
- Public Attributes inherited from XoopsEditor
 $configs
 
 $isEnabled
 
 $rootPath
 
const CACHE_KEY_EDITOR_LIST = 'system/editorlist'
 
- Public Attributes inherited from Xoops\Form\Element
 $customValidationCode = array()
 

Additional Inherited Members

- Protected Attributes inherited from XoopsEditor
 $cols
 
 $rows
 
- Protected Attributes inherited from Xoops\Form\Element
 $value = ''
 
- Protected Attributes inherited from Xoops\Html\Attributes
 $attributes = array()
 

Detailed Description

Definition at line 27 of file formtinymce.php.

Constructor & Destructor Documentation

XoopsFormTinymce4::__construct (   $configs)

Constructor

Parameters
array$configsEditor Options

Definition at line 40 of file formtinymce.php.

References XoopsEditor\$configs, $current_path, $height, XoopsEditor\$rootPath, $width, DIRECTORY_SEPARATOR, getFonts(), getLanguage(), and Xoops\Form\Element\getName().

Here is the call graph for this function:

Member Function Documentation

XoopsFormTinymce4::getFonts ( )

Definition at line 107 of file formtinymce.php.

Referenced by __construct().

Here is the caller graph for this function:

XoopsFormTinymce4::getLanguage ( )

get language

Returns
string

Definition at line 90 of file formtinymce.php.

References $language, and _LANGCODE.

Referenced by __construct().

Here is the caller graph for this function:

XoopsFormTinymce4::isActive ( )

Check if compatible

Returns
boolean

Definition at line 134 of file formtinymce.php.

References $xoops_root_path, and XoopsBaseConfig\get().

Here is the call graph for this function:

XoopsFormTinymce4::render ( )

prepare HTML for output

Returns
string HTML

Definition at line 121 of file formtinymce.php.

XoopsFormTinymce4::renderValidationJS ( )

Renders the Javascript function needed for client-side for validation

I'VE USED THIS EXAMPLE TO WRITE VALIDATION CODE http://tinymce.moxiecode.com/punbb/viewtopic.php?id=12616

Returns
string

Definition at line 68 of file formtinymce.php.

References XoopsLocaleEn_US\F_ENTER, Xoops\Form\Element\getCaption(), Xoops\Form\Element\getName(), and Xoops\Form\Element\isRequired().

Here is the call graph for this function:

Member Data Documentation

XoopsFormTinymce4::$editor

Definition at line 33 of file formtinymce.php.

XoopsFormTinymce4::$height = "500px"

Definition at line 31 of file formtinymce.php.

Referenced by __construct().

XoopsFormTinymce4::$language

Definition at line 29 of file formtinymce.php.

Referenced by getLanguage().

XoopsFormTinymce4::$width = "100%"

Definition at line 30 of file formtinymce.php.

Referenced by __construct().


The documentation for this class was generated from the following file: