XOOPS
2.6.0
|
Public Member Functions | |
__construct ($caption, $name, $value="", $rows=5, $cols=50, $hiddentext="xoopsHiddenText", $options=array()) | |
codeIcon () | |
fontArray () | |
render () | |
renderValidationJS () | |
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 | |
$configs = array() | |
$doHtml = false | |
$htmlEditor = array() | |
$js = '' | |
$skipPreview = false | |
Public Attributes inherited from Xoops\Form\Element | |
$customValidationCode = array() | |
Private Attributes | |
$hiddenText | |
Additional Inherited Members | |
Protected Attributes inherited from Xoops\Form\Element | |
$value = '' | |
Protected Attributes inherited from Xoops\Html\Attributes | |
$attributes = array() | |
Definition at line 27 of file DhtmlTextArea.php.
Xoops\Form\DhtmlTextArea::__construct | ( | $caption, | |
$name, | |||
$value = "" , |
|||
$rows = 5 , |
|||
$cols = 50 , |
|||
$hiddentext = "xoopsHiddenText" , |
|||
$options = array() |
|||
) |
Constructor
string | $caption | Caption |
string | $name | name attribute |
string | $value | Initial text |
integer | $rows | Number of rows |
integer | $cols | Number of columns |
string | $hiddentext | Identifier for hidden Text |
array | $options | Extra options |
Definition at line 95 of file DhtmlTextArea.php.
References Xoops\Form\Element\$caption, $editor, Xoops\Form\DhtmlTextArea\$htmlEditor, $name, $options, $path, Xoops\Form\Element\$value, $xoops, Xoops\getInstance(), XoopsEditorHandler\getInstance(), Xoops\Form\Element\getName(), and Xoops\Form\Element\getValue().
Xoops\Form\DhtmlTextArea::codeIcon | ( | ) |
codeIcon
Definition at line 214 of file DhtmlTextArea.php.
References $code, Xoops\Form\DhtmlTextArea\$js, $myts, XoopsLocaleEn_US\E_ENTER_IMAGE_POSITION, XoopsLocaleEn_US\EMAIL, XoopsLocaleEn_US\ENTER_CODE, XoopsLocaleEn_US\ENTER_EMAIL, XoopsLocaleEn_US\ENTER_IMAGE_POSITION, XoopsLocaleEn_US\ENTER_IMAGE_URL, XoopsLocaleEn_US\ENTER_LINK_URL, XoopsLocaleEn_US\ENTER_QUOTE, XoopsLocaleEn_US\ENTER_WEBSITE_TITLE, XoopsBaseConfig\get(), Xoops\getInstance(), MyTextSanitizer\getInstance(), Xoops\Form\Element\getName(), XoopsLocaleEn_US\IMAGE_POSITION_DESCRIPTION, XoopsLocaleEn_US\IMAGES, XoopsLocaleEn_US\QUOTE, XoopsLocaleEn_US\SOURCE_CODE, XoopsLocaleEn_US\URL, and XoopsLocaleEn_US\WIDTH.
Referenced by Xoops\Form\DhtmlTextArea\render().
Xoops\Form\DhtmlTextArea::fontArray | ( | ) |
fontArray
Definition at line 247 of file DhtmlTextArea.php.
References Xoops\Form\DhtmlTextArea\$hiddenText, XoopsLocaleEn_US\BOLD, XoopsLocaleEn_US\CENTER, XoopsLocaleEn_US\COLOR, XoopsLocaleEn_US\FONT, XoopsBaseConfig\get(), Xoops_Locale_Abstract\getFonts(), Xoops_Locale_Abstract\getFontSizes(), Xoops\Form\Element\getName(), XoopsLocaleEn_US\ITALIC, XoopsLocaleEn_US\LEFT, XoopsLocaleEn_US\LINE_THROUGH, XoopsLocaleEn_US\RIGHT, XoopsLocaleEn_US\SIZE, and XoopsLocaleEn_US\UNDERLINE.
Referenced by Xoops\Form\DhtmlTextArea\render().
Xoops\Form\DhtmlTextArea::render | ( | ) |
Prepare HTML for output
Definition at line 160 of file DhtmlTextArea.php.
References $button, Xoops\Form\Element\$extra, $javascript, Xoops\Form\DhtmlTextArea\$js, Xoops\Form\Element\$maxcols, $xoops, XoopsLocaleEn_US\A_PREVIEW, XoopsLocaleEn_US\CHECK_TEXT_LENGTH, XoopsLocaleEn_US\CLICK_PREVIEW_TO_SEE_CONTENT, Xoops\Form\DhtmlTextArea\codeIcon(), XoopsLocaleEn_US\F_CURRENT_TEXT_LENGTH, Xoops\Form\DhtmlTextArea\fontArray(), XoopsBaseConfig\get(), Xoops\Form\Element\getClass(), Xoops\Form\TextArea\getCols(), Xoops\Form\Element\getExtra(), Xoops\getInstance(), Xoops\Form\Element\getMaxcols(), Xoops\Form\Element\getName(), Xoops\Form\TextArea\getRows(), Xoops\Form\Element\getTitle(), Xoops\Form\Element\getValue(), Xoops\Form\Element\isRequired(), and XoopsLocaleEn_US\MAXIMUM_LENGTH.
Xoops\Form\DhtmlTextArea::renderValidationJS | ( | ) |
Xoops\Form\DhtmlTextArea::$configs = array() |
Definition at line 82 of file DhtmlTextArea.php.
Xoops\Form\DhtmlTextArea::$doHtml = false |
Definition at line 72 of file DhtmlTextArea.php.
|
private |
Definition at line 62 of file DhtmlTextArea.php.
Referenced by Xoops\Form\DhtmlTextArea\fontArray().
Xoops\Form\DhtmlTextArea::$htmlEditor = array() |
Extended HTML editor
If an extended HTML editor is set, the renderer will be replaced by the specified editor, usually a visual or WYSIWYG editor.
and user guide:
run-time settings per call To use an editor pre-configured by XoopsEditor, e.g. 'fckeditor': $options['editor'] = 'fckeditor';
To use a custom editor, e.g. 'MyEditor' class located in "/modules/myeditor/myeditor.php": $options['editor'] = array('MyEditor', XOOPS_ROOT_PATH . "/modules/myeditor/myeditor.php");
pre-configured settings, which will force to use a editor if no specific editor is set for call
up custom configs: in XOOPS_VAR_PATH . '/configs/xoopsconfig.php' set a editor as default, e.g. a pre-configured editor 'fckeditor': return array('editor' => 'fckeditor');
a custom editor 'MyEditor' class located in "/modules/myeditor/myeditor.php": return array('editor' => array('MyEditor', XOOPS_ROOT_PATH . "/modules/myeditor/myeditor.php");
To disable the default editor, in XOOPS_VAR_PATH . '/configs/xoopsconfig.php': return array();
To disable the default editor for a specific call: $options['editor'] = 'dhtmltextarea';
Definition at line 55 of file DhtmlTextArea.php.
Referenced by Xoops\Form\DhtmlTextArea\__construct().
Xoops\Form\DhtmlTextArea::$js = '' |
Definition at line 77 of file DhtmlTextArea.php.
Referenced by Xoops\Form\DhtmlTextArea\codeIcon(), and Xoops\Form\DhtmlTextArea\render().
Xoops\Form\DhtmlTextArea::$skipPreview = false |
Definition at line 67 of file DhtmlTextArea.php.