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

Public Member Functions

 __construct ($configs)
 
 getFonts ()
 
 getLanguage ()
 
 isActive ()
 
 render ()
 
 renderValidationJS ()
 
 XoopsFormTinymce ($configs)
 
- 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 26 of file formtinymce.php.

Constructor & Destructor Documentation

XoopsFormTinymce::__construct (   $configs)

Constructor

Parameters
array$configsEditor Options

Definition at line 38 of file formtinymce.php.

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

Here is the call graph for this function:

Member Function Documentation

XoopsFormTinymce::getFonts ( )

Definition at line 108 of file formtinymce.php.

Referenced by __construct().

Here is the caller graph for this function:

XoopsFormTinymce::getLanguage ( )

get language

Returns
string

Definition at line 91 of file formtinymce.php.

References $language, Xoops_Locale_Abstract\getCharset(), and Xoops_Locale_Abstract\getLangCode().

Referenced by __construct().

Here is the call graph for this function:

Here is the caller graph for this function:

XoopsFormTinymce::isActive ( )

Check if compatible

Returns

Definition at line 135 of file formtinymce.php.

References XoopsBaseConfig\get().

Here is the call graph for this function:

XoopsFormTinymce::render ( )

prepare HTML for output

Returns
string HTML

Definition at line 122 of file formtinymce.php.

XoopsFormTinymce::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 71 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:

XoopsFormTinymce::XoopsFormTinymce (   $configs)

Definition at line 59 of file formtinymce.php.

References XoopsEditor\$configs, and XoopsEditor\__construct().

Here is the call graph for this function:

Member Data Documentation

XoopsFormTinymce::$editor

Definition at line 31 of file formtinymce.php.

XoopsFormTinymce::$height = "500px"

Definition at line 30 of file formtinymce.php.

Referenced by __construct().

XoopsFormTinymce::$language

Definition at line 28 of file formtinymce.php.

Referenced by getLanguage().

XoopsFormTinymce::$width = "100%"

Definition at line 29 of file formtinymce.php.

Referenced by __construct().


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