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

ilPDContentBlockGUI Class Reference

BlockGUI class for (centered) Content on Personal Desktop. More...

Inheritance diagram for ilPDContentBlockGUI:
Collaboration diagram for ilPDContentBlockGUI:

Public Member Functions

 ilPDContentBlockGUI ()
 Constructor.
 setCurrentItemNumber ($a_currentitemnumber)
 Set Current Item Number.
 getCurrentItemNumber ()
 Get Current Item Number.
 getHTML ()
 Get HTML.
 getContent ()
 setContent ($a_content)
 fillDataSection ()
 Fill data section.
 fillFooter ()
 block footer
 fillPreviousNext ()
 Fill previous/next row.

Static Public Member Functions

static getBlockType ()
 Get block type.
static isRepositoryObject ()
 Get block type.

Static Public Attributes

static $block_type = "pdcontent"

Detailed Description

BlockGUI class for (centered) Content on Personal Desktop.

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

Definition at line 32 of file class.ilPDContentBlockGUI.php.


Member Function Documentation

ilPDContentBlockGUI::fillDataSection (  ) 

Fill data section.

Reimplemented from ilBlockGUI.

Definition at line 111 of file class.ilPDContentBlockGUI.php.

References getContent().

        {
                global $ilUser;
                
                $this->tpl->setVariable("BLOCK_ROW", $this->getContent());
        }

Here is the call graph for this function:

ilPDContentBlockGUI::fillFooter (  ) 

block footer

Reimplemented from ilBlockGUI.

Definition at line 121 of file class.ilPDContentBlockGUI.php.

References $ilCtrl, $lng, ilBlockGUI::fillFooterLinks(), ilBlockGUI::getEnableNumInfo(), and if.

        {
                //$this->fillFooterLinks();
                global $lng, $ilCtrl;

                $footer = false;
                
                if (is_array($this->data))
                {
                        $this->max_count = count($this->data);
                }
                                
                // table footer numinfo
                if ($this->getEnableNumInfo())
                {
                        $numinfo = "(".$this->getCurrentItemNumber()." ".
                                strtolower($lng->txt("of"))." ".$this->max_count.")";
        
                        if ($this->max_count > 0)
                        {
                                $this->tpl->setVariable("NUMINFO", $numinfo);
                        }
                        $footer = true;
                        $this->fillFooterLinks(true, $numinfo);
                }
        }

Here is the call graph for this function:

ilPDContentBlockGUI::fillPreviousNext (  ) 

Fill previous/next row.

Reimplemented from ilBlockGUI.

Definition at line 148 of file class.ilPDContentBlockGUI.php.

        {
        }

static ilPDContentBlockGUI::getBlockType (  )  [static]

Get block type.

Returns:
string Block type.

Reimplemented from ilBlockGUI.

Definition at line 58 of file class.ilPDContentBlockGUI.php.

        {
                return self::$block_type;
        }

ilPDContentBlockGUI::getContent (  ) 

Definition at line 98 of file class.ilPDContentBlockGUI.php.

Referenced by fillDataSection().

        {
                return $this->content;
        }

Here is the caller graph for this function:

ilPDContentBlockGUI::getCurrentItemNumber (  ) 

Get Current Item Number.

Returns:
int Current Item Number

Definition at line 78 of file class.ilPDContentBlockGUI.php.

        {
                return $this->currentitemnumber;
        }

ilPDContentBlockGUI::getHTML (  ) 

Get HTML.

Reimplemented from ilBlockGUI.

Definition at line 93 of file class.ilPDContentBlockGUI.php.

        {
                return parent::getHTML();
        }

ilPDContentBlockGUI::ilPDContentBlockGUI (  ) 

Constructor.

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

References $ilCtrl, $lng, ilBlockGUI::ilBlockGUI(), ilBlockGUI::setBigMode(), ilBlockGUI::setEnableNumInfo(), and ilBlockGUI::setLimit().

        {
                global $ilCtrl, $lng, $ilUser;
                
                parent::ilBlockGUI($a_parent_class, $a_parent_cmd);
                
                //$this->setTitle($lng->txt("selected_items"));
                $this->setEnableNumInfo(false);
                $this->setLimit(99999);
                //$this->setColSpan(2);
                $this->setBigMode(true);
                $this->allow_moving = false;
        }

Here is the call graph for this function:

static ilPDContentBlockGUI::isRepositoryObject (  )  [static]

Get block type.

Returns:
string Block type.

Reimplemented from ilBlockGUI.

Definition at line 88 of file class.ilPDContentBlockGUI.php.

        {
                return false;
        }

ilPDContentBlockGUI::setContent ( a_content  ) 

Definition at line 103 of file class.ilPDContentBlockGUI.php.

        {
                $this->content = $a_content;
        }

ilPDContentBlockGUI::setCurrentItemNumber ( a_currentitemnumber  ) 

Set Current Item Number.

Parameters:
int $a_currentitemnumber Current Item Number

Definition at line 68 of file class.ilPDContentBlockGUI.php.

        {
                $this->currentitemnumber = $a_currentitemnumber;
        }


Field Documentation

ilPDContentBlockGUI::$block_type = "pdcontent" [static]

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


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