aliroEditor Class Reference

List of all members.

Public Member Functions

 initEditor ()
 getEditorContents ($editorArea, $hiddenField)
 getEditorContentsText ($editorArea, $hiddenField)
 editorAreaText ($name, $content, $hiddenField, $width, $height, $col, $row)
 editorArea ($name, $content, $hiddenField, $width, $height, $col, $row)

Static Public Member Functions

static getInstance ()

Private Member Functions

 __construct ()
 __clone ()
 triggerEditor ($trigger, $arguments=null)

Private Attributes

 $mambothandler = ''
 $initiated = false

Static Private Attributes

static $instance = __CLASS__


Detailed Description

Definition at line 43 of file aliroEditor.php.


Constructor & Destructor Documentation

aliroEditor::__construct (  )  [private]

Definition at line 49 of file aliroEditor.php.

References aliroMambotHandler::getInstance().

00049                                     {
00050         $this->mambothandler = aliroMambotHandler::getInstance();
00051     }


Member Function Documentation

aliroEditor::__clone (  )  [private]

Definition at line 53 of file aliroEditor.php.

00053                                 {
00054         // Just here to enforce singleton
00055     }

static aliroEditor::getInstance (  )  [static]

Definition at line 57 of file aliroEditor.php.

Referenced by widgetAdminHTML::commonScripts(), advancedAdminHTML::editHTML(), widgetAdminHTML::fileInputArea(), aliroAdminTemplateBase::header(), advancedAdminHTML::newHTML(), aliroUserTemplateBase::prepareHeader(), and aliroXMLParams::processParam().

00057                                           {
00058         return is_object(self::$instance) ? self::$instance : (self::$instance = new self::$instance());
00059     }

aliroEditor::initEditor (  ) 

Definition at line 61 of file aliroEditor.php.

References triggerEditor().

Referenced by editorAreaText(), and getEditorContentsText().

00061                                  {
00062         $this->initiated = true;
00063         return $this->triggerEditor ('onIniEditor');
00064     }

aliroEditor::getEditorContents ( editorArea,
hiddenField 
)

Definition at line 66 of file aliroEditor.php.

References getEditorContentsText().

00066                                                                    {
00067         echo $this->getEditorContentsText($editorArea, $hiddenField);
00068     }

aliroEditor::getEditorContentsText ( editorArea,
hiddenField 
)

Definition at line 70 of file aliroEditor.php.

References initEditor(), and triggerEditor().

Referenced by getEditorContents().

00070                                                                         {
00071         if (!$this->initiated) $this->initEditor();
00072         return $this->triggerEditor ('onGetEditorContents', array($editorArea, $hiddenField));
00073     }

aliroEditor::editorAreaText ( name,
content,
hiddenField,
width,
height,
col,
row 
)

Definition at line 75 of file aliroEditor.php.

References initEditor(), and triggerEditor().

Referenced by editorArea().

00075                                                                                                 {
00076         if (!$this->initiated) $this->initEditor();
00077         return $this->triggerEditor ('onEditorArea', array($name, $content, $hiddenField, $width, $height, $col, $row));
00078     }

aliroEditor::editorArea ( name,
content,
hiddenField,
width,
height,
col,
row 
)

Definition at line 80 of file aliroEditor.php.

References editorAreaText().

00080                                                                                              {
00081         echo $this->editorAreaText ($name, $content, $hiddenField, $width, $height, $col, $row);
00082     }

aliroEditor::triggerEditor ( trigger,
arguments = null 
) [private]

Definition at line 84 of file aliroEditor.php.

Referenced by editorAreaText(), getEditorContentsText(), and initEditor().

00084                                                                {
00085         $html = '';
00086         if ($arguments) $results = call_user_func(array($this->mambothandler, 'triggerOnce'), $trigger, $arguments);
00087         else $results = call_user_func(array($this->mambothandler, 'triggerOnce'), $trigger);
00088         foreach ($results as $result) $html .= trim($result);
00089         return $html;
00090     }


Member Data Documentation

aliroEditor::$instance = __CLASS__ [static, private]

Definition at line 45 of file aliroEditor.php.

aliroEditor::$mambothandler = '' [private]

Definition at line 46 of file aliroEditor.php.

aliroEditor::$initiated = false [private]

Definition at line 47 of file aliroEditor.php.


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

Generated on Wed May 14 13:01:58 2008 for ALIRO by  doxygen 1.5.5