Public Member Functions | Static Public Member Functions | Static Public Attributes

ilHtmlBlockGUI Class Reference
[Services/Feeds]

BlockGUI class for simle HTML content. More...

Inheritance diagram for ilHtmlBlockGUI:
Collaboration diagram for ilHtmlBlockGUI:

Public Member Functions

 ilHtmlBlockGUI ()
 Constructor.
 getBlockType ()
 Get block type.
 setBlock ($a_block)
executeCommand ()
 execute command
 getHTML ()
 Get block HTML code.
 fillDataSection ()
 Fill data section.
 create ()
 Create Form for Block.
 prepareSaveHtmlBlock (&$a_html_block)
 FORM HtmlBlock: Prepare Saving of HtmlBlock.
 saveHtmlBlock ()
 FORM HtmlBlock: Save HtmlBlock.
 cancelSaveHtmlBlock ()
 Cancel Saving.

Static Public Member Functions

static getScreenMode ()
 Get Screen Mode for current command.

Static Public Attributes

static $block_type = "html"

Detailed Description

BlockGUI class for simle HTML content.

Author:
Alex Killing <alex.killing@gmx.de>
Version:
$Id$

ilHtmlBlockGUI: ilColumnGUI

Definition at line 35 of file class.ilHtmlBlockGUI.php.


Member Function Documentation

ilHtmlBlockGUI::cancelSaveHtmlBlock (  ) 

Cancel Saving.

Definition at line 182 of file class.ilHtmlBlockGUI.php.

References $ilCtrl.

        {
                global $ilCtrl;

                $ilCtrl->returnToParent($this);
        }

ilHtmlBlockGUI::create (  ) 

Create Form for Block.

Definition at line 141 of file class.ilHtmlBlockGUI.php.

References ilHtmlBlockGUIGen::createHtmlBlock().

        {
                return $this->createHtmlBlock();
        }

Here is the call graph for this function:

& ilHtmlBlockGUI::executeCommand (  ) 

execute command

Reimplemented from ilHtmlBlockGUIGen.

Definition at line 101 of file class.ilHtmlBlockGUI.php.

References $cmd, and $ilCtrl.

        {
                global $ilCtrl;

                $next_class = $ilCtrl->getNextClass();
                $cmd = $ilCtrl->getCmd("getHTML");

                switch ($next_class)
                {
                        default:
                                return $this->$cmd();
                }
        }

ilHtmlBlockGUI::fillDataSection (  ) 

Fill data section.

Reimplemented from ilBlockGUI.

Definition at line 133 of file class.ilHtmlBlockGUI.php.

References ilBlockGUI::setDataSection().

        {
                $this->setDataSection($this->html_block->getContent());
        }

Here is the call graph for this function:

ilHtmlBlockGUI::getBlockType (  ) 

Get block type.

Returns:
string Block type.

Reimplemented from ilBlockGUI.

Definition at line 63 of file class.ilHtmlBlockGUI.php.

Referenced by prepareSaveHtmlBlock().

        {
                return self::$block_type;
        }

Here is the caller graph for this function:

ilHtmlBlockGUI::getHTML (  ) 

Get block HTML code.

Reimplemented from ilBlockGUI.

Definition at line 118 of file class.ilHtmlBlockGUI.php.

References $ilCtrl, $lng, and ilBlockGUI::getCurrentDetailLevel().

        {
                global $ilCtrl, $lng, $ilUser;

                if ($this->getCurrentDetailLevel() == 0)
                {
                        return "";
                }

                return parent::getHTML();
        }

Here is the call graph for this function:

static ilHtmlBlockGUI::getScreenMode (  )  [static]

Get Screen Mode for current command.

Reimplemented from ilBlockGUI.

Definition at line 71 of file class.ilHtmlBlockGUI.php.

References $ilCtrl.

        {
                global $ilCtrl;
                
                switch($ilCtrl->getCmd())
                {
                        case "create":
                        case "edit":
                        case "saveHtmlBlock":
                        case "updateHtmlBlock":
                        case "editHtmlBlock":
                                return IL_SCREEN_CENTER;
                                break;

                        default:
                                return IL_SCREEN_SIDE;
                                break;
                }
        }

ilHtmlBlockGUI::ilHtmlBlockGUI (  ) 

Constructor.

Definition at line 42 of file class.ilHtmlBlockGUI.php.

References $ilCtrl, $lng, ilHtmlBlockGUIGen::__construct(), ilBlockGUI::ilBlockGUI(), ilBlockGUI::setAvailableDetailLevels(), ilBlockGUI::setEnableNumInfo(), and ilBlockGUI::setLimit().

        {
                global $ilCtrl, $lng;
                
                parent::__construct();
                parent::ilBlockGUI();
                
                //$this->setImage(ilUtil::getImagePath("icon_feed_s.gif"));

                $lng->loadLanguageModule("block_html");

                $this->setLimit(99999);
                $this->setAvailableDetailLevels(1, 0);
                $this->setEnableNumInfo(false);
        }

Here is the call graph for this function:

ilHtmlBlockGUI::prepareSaveHtmlBlock ( &$  a_html_block  ) 

FORM HtmlBlock: Prepare Saving of HtmlBlock.

Parameters:
object $a_html_block HtmlBlock object.

Reimplemented from ilHtmlBlockGUIGen.

Definition at line 151 of file class.ilHtmlBlockGUI.php.

References $ilCtrl, and getBlockType().

        {
                global $ilCtrl;
                
                $a_html_block->setType($this->getBlockType());
                $a_html_block->setContextObjId($ilCtrl->getContextObjId());
                $a_html_block->setContextObjType($ilCtrl->getContextObjType());
        }

Here is the call graph for this function:

ilHtmlBlockGUI::saveHtmlBlock (  ) 

FORM HtmlBlock: Save HtmlBlock.

Reimplemented from ilHtmlBlockGUIGen.

Definition at line 164 of file class.ilHtmlBlockGUI.php.

References $ilCtrl, and ilHtmlBlockGUIGen::checkInputHtmlBlock().

        {
                global $ilCtrl;

                if ($this->checkInputHtmlBlock())
                {
                        parent::saveHtmlBlock();
                        $ilCtrl->returnToParent($this);
                }
                else
                {
                        return parent::saveHtmlBlock();
                }
        }

Here is the call graph for this function:

ilHtmlBlockGUI::setBlock ( a_block  ) 

Definition at line 91 of file class.ilHtmlBlockGUI.php.

References ilBlockGUI::setBlockId(), and ilBlockGUI::setTitle().

        {
                $this->html_block = $a_block;
                $this->setTitle($this->html_block->getTitle());
                $this->setBlockId($this->html_block->getId());
        }

Here is the call graph for this function:


Field Documentation

ilHtmlBlockGUI::$block_type = "html" [static]

Definition at line 37 of file class.ilHtmlBlockGUI.php.


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