ILIAS
eassessment Revision 61809
|
BlockGUI class for Selected Items on Personal Desktop. More...
Public Member Functions | |
ilPDSelectedItemsBlockGUI () | |
Constructor. | |
addToDeskObject () | |
removeFromDeskObject () | |
changeView () | |
Method to switch between the different views of personal items block. | |
getHTML () | |
Get HTML. | |
& | executeCommand () |
execute command | |
getContent () | |
setContent ($a_content) | |
fillDataSection () | |
Fill data section. | |
fillFooter () | |
block footer | |
setFooterLinks () | |
Set footer links. | |
getMembershipItemsPerLocation ($tpl) | |
Generates the block html string by location ordering. | |
getMembershipItemsPerType ($tpl) | |
Generates the block html string by type ordering. | |
getMembershipItemsBlockHTML () | |
Gateway method to distinguish between sorting type. | |
getSelectedItemsBlockHTML () | |
get selected item block | |
getSelectedItemsPerType (&$tpl) | |
get selected items per type | |
getSelectedItemsPerLocation (&$tpl) | |
get selected items per type | |
resetRowType () | |
& | newBlockTemplate () |
returns a new list block template | |
& | getItemListGUI ($a_type) |
get item list gui class for type | |
addHeaderRow (&$a_tpl, $a_type, $a_show_image=true) | |
adds a header row to a block template | |
addParentRow (&$a_tpl, $a_ref_id, $a_show_image=true) | |
adds a header row to a block template | |
addStandardRow (&$a_tpl, $a_html, $a_item_ref_id="", $a_item_obj_id="", $a_image_type="", $a_related_header="") | |
adds a standard row to a block template | |
getIntroduction () | |
Get overview. | |
orderPDItemsByLocation () | |
order desktop items by location | |
orderPDItemsByType () | |
order desktop items by Type | |
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) | |
fillPreviousNext () | |
Fill previous/next row. | |
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. |
Data Fields | |
const | VIEW_MY_OFFERS = 0 |
const | VIEW_MY_MEMBERSHIPS = 1 |
Static Public Attributes | |
static | $block_type = "pditems" |
Protected Member Functions | |
determineViewSettings () | |
Sets the current view of the user and determines which views are allowed. | |
getObjectsByMembership ($types=array()) | |
Gets all objects the current user is member of. | |
Protected Member Functions inherited from ilBlockGUI | |
fillRowColor ($a_placeholder="CSS_ROW") |
Private Attributes | |
$view = self::VIEW_MY_OFFERS | |
$allowed_views = array() |
Additional Inherited Members | |
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() | |
$footerinfo = false | |
$footerinfo_icon = false | |
$block_commands = array() | |
$max_count = false | |
$close_command = false | |
$image = false | |
$property = false | |
$nav_value = "" | |
$css_row = "" |
BlockGUI class for Selected Items on Personal Desktop.
ilPDSelectedItemsBlockGUI: ilColumnGUI
Definition at line 35 of file class.ilPDSelectedItemsBlockGUI.php.
ilPDSelectedItemsBlockGUI::addHeaderRow | ( | & | $a_tpl, |
$a_type, | |||
$a_show_image = true |
|||
) |
adds a header row to a block template
object | $a_tpl | block template |
string | $a_type | object type private |
Definition at line 1052 of file class.ilPDSelectedItemsBlockGUI.php.
References $title, ilUtil\getImagePath(), and ilPlugin\lookupTxt().
Referenced by getMembershipItemsPerType(), and getSelectedItemsPerType().
ilPDSelectedItemsBlockGUI::addParentRow | ( | & | $a_tpl, |
$a_ref_id, | |||
$a_show_image = true |
|||
) |
adds a header row to a block template
object | $a_tpl | block template |
string | $a_type | object type private |
Definition at line 1094 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilSetting, $path, $title, $type, ilContainer\_lookupIconPath(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), and ilUtil\getImagePath().
Referenced by getMembershipItemsPerLocation(), and getSelectedItemsPerLocation().
ilPDSelectedItemsBlockGUI::addStandardRow | ( | & | $a_tpl, |
$a_html, | |||
$a_item_ref_id = "" , |
|||
$a_item_obj_id = "" , |
|||
$a_image_type = "" , |
|||
$a_related_header = "" |
|||
) |
adds a standard row to a block template
object | $a_tpl | block template |
string | $a_html | html code private |
Definition at line 1176 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilSetting, $path, $title, ilContainer\_lookupIconPath(), and ilUtil\getImagePath().
Referenced by getMembershipItemsPerLocation(), getMembershipItemsPerType(), getSelectedItemsPerLocation(), and getSelectedItemsPerType().
ilPDSelectedItemsBlockGUI::addToDeskObject | ( | ) |
Implements ilDesktopItemHandling.
Definition at line 71 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilCtrl, and ilDesktopItemGUI\addToDesktop().
ilPDSelectedItemsBlockGUI::changeView | ( | ) |
Method to switch between the different views of personal items block.
public
Definition at line 98 of file class.ilPDSelectedItemsBlockGUI.php.
|
protected |
Sets the current view of the user and determines which views are allowed.
protected
Definition at line 121 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilSetting, VIEW_MY_MEMBERSHIPS, and VIEW_MY_OFFERS.
Referenced by ilPDSelectedItemsBlockGUI().
& ilPDSelectedItemsBlockGUI::executeCommand | ( | ) |
execute command
Definition at line 238 of file class.ilPDSelectedItemsBlockGUI.php.
ilPDSelectedItemsBlockGUI::fillDataSection | ( | ) |
Fill data section.
Reimplemented from ilBlockGUI.
Definition at line 269 of file class.ilPDSelectedItemsBlockGUI.php.
References getContent(), getIntroduction(), and ilBlockGUI\setDataSection().
ilPDSelectedItemsBlockGUI::fillFooter | ( | ) |
block footer
Reimplemented from ilBlockGUI.
Definition at line 287 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilCtrl, $lng, ilBlockGUI\fillFooterLinks(), ilBlockGUI\getColSpan(), and setFooterLinks().
|
static |
Get block type.
Reimplemented from ilBlockGUI.
Definition at line 165 of file class.ilPDSelectedItemsBlockGUI.php.
References $block_type.
Referenced by getHTML().
ilPDSelectedItemsBlockGUI::getContent | ( | ) |
Definition at line 256 of file class.ilPDSelectedItemsBlockGUI.php.
Referenced by fillDataSection(), getHTML(), and setFooterLinks().
ilPDSelectedItemsBlockGUI::getHTML | ( | ) |
Get HTML.
Reimplemented from ilBlockGUI.
Definition at line 181 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilCtrl, $ilSetting, ilBlockGUI\addHeaderLink(), getBlockType(), getContent(), getMembershipItemsBlockHTML(), getSelectedItemsBlockHTML(), setContent(), ilBlockGUI\setData(), ilBlockGUI\setEnableDetailRow(), and ilBlockGUI\setTitle().
Referenced by orderPDItemsByLocation(), and orderPDItemsByType().
ilPDSelectedItemsBlockGUI::getIntroduction | ( | ) |
Get overview.
Definition at line 1232 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilCtrl, $lng, $title, $tpl, and ilUtil\getImagePath().
Referenced by fillDataSection().
& ilPDSelectedItemsBlockGUI::getItemListGUI | ( | $a_type | ) |
get item list gui class for type
Definition at line 1024 of file class.ilPDSelectedItemsBlockGUI.php.
References $location.
Referenced by getMembershipItemsPerLocation(), and getSelectedItemsPerLocation().
ilPDSelectedItemsBlockGUI::getMembershipItemsBlockHTML | ( | ) |
Gateway method to distinguish between sorting type.
public
Definition at line 687 of file class.ilPDSelectedItemsBlockGUI.php.
References $ok, $tpl, getMembershipItemsPerLocation(), getMembershipItemsPerType(), and newBlockTemplate().
Referenced by getHTML().
ilPDSelectedItemsBlockGUI::getMembershipItemsPerLocation | ( | $tpl | ) |
Generates the block html string by location ordering.
public
ilTemplate | $tpl | the current template instance |
Definition at line 415 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilBench, $ilSetting, $tpl, addParentRow(), addStandardRow(), ilBlockGUI\getCurrentDetailLevel(), getItemListGUI(), getObjectsByMembership(), and resetRowType().
Referenced by getMembershipItemsBlockHTML().
ilPDSelectedItemsBlockGUI::getMembershipItemsPerType | ( | $tpl | ) |
Generates the block html string by type ordering.
public
ilTemplate | $tpl | the current template instance |
Definition at line 527 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilBench, $ilSetting, $location, $t, $title, $tpl, $type, addHeaderRow(), addStandardRow(), ilBlockGUI\getCurrentDetailLevel(), getObjectsByMembership(), and resetRowType().
Referenced by getMembershipItemsBlockHTML().
|
protected |
Gets all objects the current user is member of.
protected
Definition at line 353 of file class.ilPDSelectedItemsBlockGUI.php.
References $ref_id, $title, $type, ilObject\_getAllReferences(), and ilParticipants\_getMembershipByType().
Referenced by getMembershipItemsPerLocation(), and getMembershipItemsPerType().
ilPDSelectedItemsBlockGUI::getSelectedItemsBlockHTML | ( | ) |
get selected item block
Definition at line 710 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilBench, $ok, $tpl, getSelectedItemsPerLocation(), getSelectedItemsPerType(), and newBlockTemplate().
Referenced by getHTML().
ilPDSelectedItemsBlockGUI::getSelectedItemsPerLocation | ( | & | $tpl | ) |
get selected items per type
Definition at line 896 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilBench, $ilSetting, $tpl, addParentRow(), addStandardRow(), ilBlockGUI\getCurrentDetailLevel(), getItemListGUI(), and resetRowType().
Referenced by getSelectedItemsBlockHTML().
ilPDSelectedItemsBlockGUI::getSelectedItemsPerType | ( | & | $tpl | ) |
get selected items per type
Definition at line 733 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilBench, $ilSetting, $location, $t, $title, $tpl, $type, addHeaderRow(), addStandardRow(), ilBlockGUI\getCurrentDetailLevel(), and resetRowType().
Referenced by getSelectedItemsBlockHTML().
ilPDSelectedItemsBlockGUI::ilPDSelectedItemsBlockGUI | ( | ) |
Constructor.
Definition at line 48 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilCtrl, $lng, determineViewSettings(), ilBlockGUI\ilBlockGUI(), ilBlockGUI\setAvailableDetailLevels(), ilBlockGUI\setBigMode(), ilBlockGUI\setColSpan(), ilBlockGUI\setEnableNumInfo(), and ilBlockGUI\setLimit().
|
static |
Get block type.
Reimplemented from ilBlockGUI.
Definition at line 175 of file class.ilPDSelectedItemsBlockGUI.php.
& ilPDSelectedItemsBlockGUI::newBlockTemplate | ( | ) |
returns a new list block template
private
Definition at line 1014 of file class.ilPDSelectedItemsBlockGUI.php.
References $tpl.
Referenced by getMembershipItemsBlockHTML(), and getSelectedItemsBlockHTML().
ilPDSelectedItemsBlockGUI::orderPDItemsByLocation | ( | ) |
order desktop items by location
Definition at line 1271 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilCtrl, exit, and getHTML().
ilPDSelectedItemsBlockGUI::orderPDItemsByType | ( | ) |
order desktop items by Type
Definition at line 1291 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilCtrl, exit, and getHTML().
ilPDSelectedItemsBlockGUI::removeFromDeskObject | ( | ) |
Implements ilDesktopItemHandling.
Definition at line 83 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilCtrl, and ilDesktopItemGUI\removeFromDesktop().
ilPDSelectedItemsBlockGUI::resetRowType | ( | ) |
Definition at line 1003 of file class.ilPDSelectedItemsBlockGUI.php.
Referenced by getMembershipItemsPerLocation(), getMembershipItemsPerType(), getSelectedItemsPerLocation(), and getSelectedItemsPerType().
ilPDSelectedItemsBlockGUI::setContent | ( | $a_content | ) |
Definition at line 261 of file class.ilPDSelectedItemsBlockGUI.php.
Referenced by getHTML().
ilPDSelectedItemsBlockGUI::setFooterLinks | ( | ) |
Set footer links.
Definition at line 304 of file class.ilPDSelectedItemsBlockGUI.php.
References ilBlockGUI\$block_id, $ilCtrl, $lng, ilBlockGUI\addFooterLink(), getContent(), and ilBlockGUI\setEnableNumInfo().
Referenced by fillFooter().
|
private |
Definition at line 43 of file class.ilPDSelectedItemsBlockGUI.php.
|
static |
Definition at line 40 of file class.ilPDSelectedItemsBlockGUI.php.
Referenced by getBlockType().
|
private |
Definition at line 42 of file class.ilPDSelectedItemsBlockGUI.php.
Referenced by changeView().
const ilPDSelectedItemsBlockGUI::VIEW_MY_MEMBERSHIPS = 1 |
Definition at line 38 of file class.ilPDSelectedItemsBlockGUI.php.
Referenced by determineViewSettings().
const ilPDSelectedItemsBlockGUI::VIEW_MY_OFFERS = 0 |
Definition at line 37 of file class.ilPDSelectedItemsBlockGUI.php.
Referenced by determineViewSettings().