ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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.
- Public Member Functions inherited from ilBlockGUI
 ilBlockGUI ()
 Constructor.
 addHeaderLink ($a_href, $a_text, $status=true)
 getHeaderLinks ()
 setData ($a_data)
 Set Data.
 getData ()
 Get Data.
 setBigMode ($a_bigmode)
 Set Big Mode.
 getBigMode ()
 Get Big Mode.
 setBlockId ($a_block_id=0)
 Set Block Id.
 getBlockId ()
 Get Block Id.
 setAvailableDetailLevels ($a_max, $a_min=0)
 Set Available Detail Levels.
 setCurrentDetailLevel ($a_currentdetaillevel)
 Set Current Detail Level.
 setGuiObject (&$a_gui_object)
 Set GuiObject.
 getGuiObject ()
 Get GuiObject.
 getCurrentDetailLevel ()
 Get Current Detail Level.
 setTitle ($a_title)
 Set Title.
 getTitle ()
 Get Title.
 setImage ($a_image)
 Set Image.
 getImage ()
 Get Image.
 setOffset ($a_offset)
 Set Offset.
 getOffset ()
 Get Offset.
 correctOffset ()
 setLimit ($a_limit)
 Set Limit.
 getLimit ()
 Get Limit.
 setEnableEdit ($a_enableedit)
 Set EnableEdit.
 getEnableEdit ()
 Get EnableEdit.
 setRepositoryMode ($a_repositorymode)
 Set RepositoryMode.
 getRepositoryMode ()
 Get RepositoryMode.
 setFooterInfo ($a_footerinfo, $a_hide_and_icon=false)
 Set Footer Info.
 getFooterInfo ($a_hide_and_icon=false)
 Get Footer Info.
 setSubtitle ($a_subtitle)
 Set Subtitle.
 getSubtitle ()
 Get Subtitle.
 setRefId ($a_refid)
 Set Ref Id (only used if isRepositoryObject() is true).
 getRefId ()
 Get Ref Id (only used if isRepositoryObject() is true).
 setAdminCommands ($a_admincommands)
 Set Administration Commmands.
 getAdminCommands ()
 Get Administration Commmands.
 setColSpan ($a_colspan)
 Set Columns Span.
 getColSpan ()
 Get Columns Span.
 setEnableDetailRow ($a_enabledetailrow)
 Set EnableDetailRow.
 getEnableDetailRow ()
 Get EnableDetailRow.
 setEnableNumInfo ($a_enablenuminfo)
 Set Enable Item Number Info.
 getEnableNumInfo ()
 Get Enable Item Number Info.
 setProperties ($a_properties)
 This function is supposed to be used for block type specific properties, that should be inherited through ilColumnGUI->setBlockProperties.
 getProperty ($a_property)
 setProperty ($a_property, $a_value)
 setRowTemplate ($a_rowtemplatename, $a_rowtemplatedir="")
 Set Row Template Name.
 getNavParameter ()
 getDetailParameter ()
 getConfigParameter ()
 getMoveParameter ()
 getRowTemplateName ()
 Get Row Template Name.
 getRowTemplateDir ()
 Get Row Template Directory.
 addBlockCommand ($a_href, $a_text, $a_target="", $a_img="", $a_right_aligned=false)
 Add Block Command.
 getBlockCommands ()
 Get Block commands.
 addHeaderCommand ($a_href, $a_text, $a_as_close=false)
 Add Header Block Command.
 getHeaderCommands ()
 Get Header Block commands.
 addFooterLink ($a_text, $a_href="", $a_onclick="", $a_block_id="", $a_top=false, $a_omit_separator=false)
 Add a footer text/link.
 getFooterLinks ()
 Get footer links.
 clearFooterLinks ()
 Clear footer links.
 handleDetailLevel ()
 Handle read/write current detail level.
 setConfigMode ($a_configmode)
 Handle config status.
 getConfigMode ()
 Get Config Mode (move blocks).
 fillHeaderCommands ()
 Fill header commands block.
 fillHeaderTitleBlock ()
 Fill header title block (title and.
 setDataSection ($a_content)
 Call this from overwritten fillDataSection(), if standard row based data is not used.
 fillRow ($a_set)
 setPreviousNextLinks ()
 Get previous/next linkbar.
 fillFooterLinks ($a_top=false, $a_numinfo="")
 Fill footer links.
 fillDetailRow ()
 Fill Detail Setting Row.
 fillMoveRow ()
 Fill row for Moving.
 getAllowMove ($a_direction)
 setAllowMove ($a_direction, $a_allow=true)
 fillMoveLink ($a_value, $a_img, $a_txt)

Static Public Member Functions

static getBlockType ()
 Get block type.
static isRepositoryObject ()
 Get block type.
- Static Public Member Functions inherited from ilBlockGUI
static getScreenMode ()
 Get Screen Mode for current command.

Static Public Attributes

static $block_type = "pdcontent"

Additional Inherited Members

- Protected Member Functions inherited from ilBlockGUI
 fillRowColor ($a_placeholder="CSS_ROW")
- Protected Attributes inherited from ilBlockGUI
 $data = array()
 $colspan = 1
 $enablenuminfo = true
 $detail_min = 0
 $detail_max = 0
 $bigmode = false
 $footer_links = array()
 $block_id = 0
 $header_commands = array()
 $allow_moving = true
 $move = array("left" => false, "right" => false, "up" => false, "down" => false)
 $enabledetailrow = true
 $header_links = array()

Detailed Description

BlockGUI class for (centered) Content on Personal Desktop.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
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(), and ilBlockGUI\getEnableNumInfo().

{
//$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.

References $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_currentitemnumberCurrent 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.

Referenced by getBlockType().


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