XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
RMFormEditor Class Reference
Inheritance diagram for RMFormEditor:
Inheritance graph

Public Member Functions

 __construct ($caption, $name, $width='100%', $height='300px', $default='', $type='', $change=1, $ele=array('op'))
 
 editorFormAction ($action)
 
 exmcode_buttons ($buttons)
 
 getType ()
 
 render ()
 
 renderTArea ()
 
 setTheme ($theme)
 
 setType ($value)
 
 tinyCSS ($url, EXMForm &$form)
 
- Public Member Functions inherited from RMFormElement
 addClass ($class)
 
 getCaption ()
 
 getClass ()
 
 getDescription ()
 
 getExtra ()
 
 getForm ()
 
 getName ()
 
 id ()
 
 render ()
 
 setCaption ($caption)
 
 setClass ($class)
 
 setDescription ($desc)
 
 setExtra ($extra)
 
 setForm ($name)
 
 setId ($id)
 
 setName ($name)
 

Private Member Functions

 renderExmCode ()
 
 renderHTML ()
 
 renderTiny ()
 

Private Attributes

 $_action = ''
 
 $_change = 0
 
 $_default = ''
 
 $_eles = array()
 
 $_height = ''
 
 $_theme = ''
 
 $_tinycss = ''
 
 $_type = 'tiny'
 
 $_width = ''
 
 $ex_buttons = 'bold,italic,underline,strikeout,separator_t,left,center,right,separator_t,fontsize,font,fontcolor,separator_t,more,bottom,top,separator_b,link,email,xcode,xquote,separator_b,images,emotions,separator_b,chars,page'
 
 $ex_plugins = 'dropdown,texts,fonts,email,link,xcode,xquote,rmimage,emotions,more,chars'
 

Additional Inherited Members

- Static Public Attributes inherited from RMFormElement
static $elementsIds = array()
 

Detailed Description

Clase controladora para campos de edicin de contenido

Definition at line 14 of file editor.class.php.

Constructor & Destructor Documentation

RMFormEditor::__construct (   $caption,
  $name,
  $width = '100%',
  $height = '300px',
  $default = '',
  $type = '',
  $change = 1,
  $ele = array('op') 
)
Parameters
string$captionTexto del campo
string$nameNombre de este campo
string$widthAncho del campo. Puede ser el valor en formato pixels (300px) o en porcentaje (100%)
string$heightAlto de campo. El valor debe ser pasado en formato pixels (300px).
string$defaultTexto incial al cargar el campo. POr defecto se muestra vaco.
string$typeTipo de Editor. Posibles valores: FCKeditor, DHTML

Definition at line 48 of file editor.class.php.

References $rmc_config, $type, RMFunctions\get(), TextCleaner\getInstance(), RMFormElement\setCaption(), and RMFormElement\setName().

Here is the call graph for this function:

Member Function Documentation

RMFormEditor::editorFormAction (   $action)

Cambia el valor action del formulario en el cambio de tipo de editor

Definition at line 82 of file editor.class.php.

References $action.

RMFormEditor::exmcode_buttons (   $buttons)

Establece los botones a mostrar en el editor

Parameters
string$buttons

Definition at line 204 of file editor.class.php.

RMFormEditor::getType ( )

Definition at line 70 of file editor.class.php.

References $_type.

RMFormEditor::render ( )

Generamos el cdigo HTML para el editor seleccionado

Returns
string

Agregamos la opción para cambiar el tipo de editor

Definition at line 89 of file editor.class.php.

References $ret, renderExmCode(), renderHTML(), renderTArea(), and renderTiny().

Here is the call graph for this function:

RMFormEditor::renderExmCode ( )
private

Definition at line 177 of file editor.class.php.

References $p, $plugins, $rtn, RMEvents\get(), RMTemplate\get(), RMFormElement\getClass(), RMFormElement\getName(), and RMCURL.

Referenced by render().

Here is the call graph for this function:

Here is the caller graph for this function:

RMFormEditor::renderHTML ( )
private

HTML Editor

Since
1.5

Definition at line 163 of file editor.class.php.

References $plugins, $rtn, RMEvents\get(), RMTemplate\get(), RMFormElement\getClass(), RMFormElement\getName(), and RMCURL.

Referenced by render().

Here is the call graph for this function:

Here is the caller graph for this function:

RMFormEditor::renderTArea ( )

Definition at line 114 of file editor.class.php.

References $plugins, $rtn, RMEvents\get(), RMTemplate\get(), and RMFormElement\getName().

Referenced by render().

Here is the call graph for this function:

Here is the caller graph for this function:

RMFormEditor::renderTiny ( )
private

Genera el cdigo HTML para el editor TINY

Returns
string

Definition at line 139 of file editor.class.php.

References $rmc_config, $rtn, $xoopsUser, RMTemplate\get(), RMFormElement\getClass(), TinyEditor\getInstance(), RMFormElement\getName(), RMFormElement\id(), and RMCURL.

Referenced by render().

Here is the call graph for this function:

Here is the caller graph for this function:

RMFormEditor::setTheme (   $theme)

Establece el tema a utilizar en tiny

Definition at line 76 of file editor.class.php.

RMFormEditor::setType (   $value)

Establece el tipo de editor a utilizar

Definition at line 67 of file editor.class.php.

RMFormEditor::tinyCSS (   $url,
EXMForm &  $form 
)

Set de funciones útiles nicamente con el editor TinyMCE

Definition at line 131 of file editor.class.php.

References $url.

Member Data Documentation

RMFormEditor::$_action = ''
private

Definition at line 21 of file editor.class.php.

RMFormEditor::$_change = 0
private

Indica si se muestra o no el combo para cambiar tipo de editor

Definition at line 25 of file editor.class.php.

RMFormEditor::$_default = ''
private

Definition at line 18 of file editor.class.php.

RMFormEditor::$_eles = array()
private

Especifica el parámetro que sirve como base para el cambio de tipo de edito

Definition at line 30 of file editor.class.php.

RMFormEditor::$_height = ''
private

Definition at line 17 of file editor.class.php.

RMFormEditor::$_theme = ''
private

Definition at line 20 of file editor.class.php.

RMFormEditor::$_tinycss = ''
private

Variables utilizadas con el editor tiny

Definition at line 34 of file editor.class.php.

RMFormEditor::$_type = 'tiny'
private

Definition at line 19 of file editor.class.php.

Referenced by getType().

RMFormEditor::$_width = ''
private

Definition at line 16 of file editor.class.php.

RMFormEditor::$ex_buttons = 'bold,italic,underline,strikeout,separator_t,left,center,right,separator_t,fontsize,font,fontcolor,separator_t,more,bottom,top,separator_b,link,email,xcode,xquote,separator_b,images,emotions,separator_b,chars,page'
private

Definition at line 39 of file editor.class.php.

RMFormEditor::$ex_plugins = 'dropdown,texts,fonts,email,link,xcode,xquote,rmimage,emotions,more,chars'
private

Almacena los botones (orden) que se utilizaran en el editor exmCode

Definition at line 38 of file editor.class.php.


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