ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
BlockGUI class for Selected Items on Personal Desktop. More...
Public Member Functions | |
__construct () | |
Constructor. More... | |
addToDeskObject () | |
removeFromDeskObject () | |
getHTML () | |
getFooterLinks () | |
executeCommand () | |
execute command More... | |
getContent () | |
setContent ($a_content) | |
fillDataSection () | |
Fill data section. More... | |
fillFooter () | |
block footer More... | |
setFooterLinks () | |
Set footer links. More... | |
getMembershipItemsPerLocation ($tpl) | |
Generates the block html string by location ordering. More... | |
getMembershipItemsPerType ($tpl) | |
Generates the block html string by type ordering. More... | |
getMembershipItemsBlockHTML () | |
Gateway method to distinguish between sorting type. More... | |
getSelectedItemsBlockHTML () | |
get selected item block More... | |
getSelectedItemsPerType (&$tpl) | |
get selected items per type More... | |
getSelectedItemsPerLocation (&$tpl) | |
get selected items per type More... | |
resetRowType () | |
& | newBlockTemplate () |
returns a new list block template More... | |
& | getItemListGUI ($a_type) |
get item list gui class for type More... | |
addHeaderRow (&$a_tpl, $a_type, $a_show_image=true) | |
adds a header row to a block template More... | |
addParentRow (&$a_tpl, $a_ref_id, $a_show_image=true) | |
adds a header row to a block template More... | |
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 More... | |
getIntroduction () | |
Get overview. More... | |
orderPDItemsByLocation () | |
order desktop items by location More... | |
orderPDItemsByType () | |
order desktop items by Type More... | |
manageObject () | |
confirmRemoveObject () | |
confirmedRemove () | |
confirmedUnsubscribe () | |
Public Member Functions inherited from ilBlockGUI | |
__construct () | |
Constructor. More... | |
addHeaderLink ($a_href, $a_text, $status=true) | |
getHeaderLinks () | |
setData ($a_data) | |
Set Data. More... | |
getData () | |
Get Data. More... | |
setBigMode ($a_bigmode) | |
Set Big Mode. More... | |
getBigMode () | |
Get Big Mode. More... | |
setBlockId ($a_block_id=0) | |
Set Block Id. More... | |
getBlockId () | |
Get Block Id. More... | |
setAvailableDetailLevels ($a_max, $a_min=0) | |
Set Available Detail Levels. More... | |
setCurrentDetailLevel ($a_currentdetaillevel) | |
Set Current Detail Level. More... | |
setGuiObject (&$a_gui_object) | |
Set GuiObject. More... | |
getGuiObject () | |
Get GuiObject. More... | |
getCurrentDetailLevel () | |
Get Current Detail Level. More... | |
setTitle ($a_title) | |
Set Title. More... | |
getTitle () | |
Get Title. More... | |
setImage ($a_image) | |
Set Image. More... | |
getImage () | |
Get Image. More... | |
setOffset ($a_offset) | |
Set Offset. More... | |
getOffset () | |
Get Offset. More... | |
correctOffset () | |
setLimit ($a_limit) | |
Set Limit. More... | |
getLimit () | |
Get Limit. More... | |
setEnableEdit ($a_enableedit) | |
Set EnableEdit. More... | |
getEnableEdit () | |
Get EnableEdit. More... | |
setRepositoryMode ($a_repositorymode) | |
Set RepositoryMode. More... | |
getRepositoryMode () | |
Get RepositoryMode. More... | |
setFooterInfo ($a_footerinfo, $a_hide_and_icon=false) | |
Set Footer Info. More... | |
getFooterInfo ($a_hide_and_icon=false) | |
Get Footer Info. More... | |
setSubtitle ($a_subtitle) | |
Set Subtitle. More... | |
getSubtitle () | |
Get Subtitle. More... | |
setRefId ($a_refid) | |
Set Ref Id (only used if isRepositoryObject() is true). More... | |
getRefId () | |
Get Ref Id (only used if isRepositoryObject() is true). More... | |
setAdminCommands ($a_admincommands) | |
Set Administration Commmands. More... | |
getAdminCommands () | |
Get Administration Commmands. More... | |
setColSpan ($a_colspan) | |
Set Columns Span. More... | |
getColSpan () | |
Get Columns Span. More... | |
setEnableDetailRow ($a_enabledetailrow) | |
Set EnableDetailRow. More... | |
getEnableDetailRow () | |
Get EnableDetailRow. More... | |
setEnableNumInfo ($a_enablenuminfo) | |
Set Enable Item Number Info. More... | |
getEnableNumInfo () | |
Get Enable Item Number Info. More... | |
setProperties ($a_properties) | |
This function is supposed to be used for block type specific properties, that should be inherited through ilColumnGUI->setBlockProperties. More... | |
getProperty ($a_property) | |
setProperty ($a_property, $a_value) | |
setRowTemplate ($a_rowtemplatename, $a_rowtemplatedir="") | |
Set Row Template Name. More... | |
getNavParameter () | |
getDetailParameter () | |
getConfigParameter () | |
getMoveParameter () | |
getRowTemplateName () | |
Get Row Template Name. More... | |
getRowTemplateDir () | |
Get Row Template Directory. More... | |
addBlockCommand ($a_href, $a_text, $a_target="", $a_img="", $a_right_aligned=false, $a_checked=false, $a_html="") | |
Add Block Command. More... | |
getBlockCommands () | |
Get Block commands. More... | |
addHeaderCommand ($a_href, $a_text, $a_as_close=false) | |
Add Header Block Command. More... | |
getHeaderCommands () | |
Get Header Block commands. More... | |
addFooterLink ($a_text, $a_href="", $a_onclick="", $a_block_id="", $a_top=false, $a_omit_separator=false, $a_checked=false) | |
Add a footer text/link. More... | |
getFooterLinks () | |
Get footer links. More... | |
clearFooterLinks () | |
Clear footer links. More... | |
handleDetailLevel () | |
Handle read/write current detail level. More... | |
getHTML () | |
Handle config status. More... | |
fillHeaderCommands () | |
Fill header commands block. More... | |
fillHeaderTitleBlock () | |
Fill header title block (title and. More... | |
setDataSection ($a_content) | |
Call this from overwritten fillDataSection(), if standard row based data is not used. More... | |
fillDataSection () | |
Standard implementation for row based data. More... | |
fillRow ($a_set) | |
fillFooter () | |
fillPreviousNext () | |
Fill previous/next row. More... | |
setPreviousNextLinks () | |
Get previous/next linkbar. More... | |
fillFooterLinks ($a_top=false, $a_numinfo="") | |
Fill footer links. More... | |
fillDetailRow () | |
Fill Detail Setting Row. More... | |
Static Public Member Functions | |
static | getBlockType () |
Get block type. More... | |
static | getScreenMode () |
static | isRepositoryObject () |
Get block type. More... | |
Static Public Member Functions inherited from ilBlockGUI | |
static | getBlockType () |
static | isRepositoryObject () |
static | getScreenMode () |
Get Screen Mode for current command. More... | |
Data Fields | |
const | VIEW_SELECTED_ITEMS = 0 |
const | VIEW_MY_MEMBERSHIPS = 1 |
const | VIEW_MY_STUDYPROGRAMME = 2 |
Static Public Attributes | |
static | $block_type = "pditems" |
Protected Member Functions | |
getObjectsByMembership ($types=array()) | |
Gets all objects the current user is member of. More... | |
Protected Member Functions inherited from ilBlockGUI | |
fillRowColor ($a_placeholder="CSS_ROW") | |
preloadData (array $data) | |
Can be overwritten in subclasses. More... | |
Private Attributes | |
$view = self::VIEW_SELECTED_ITEMS | |
$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 = "" | |
$dropdown | |
BlockGUI class for Selected Items on Personal Desktop.
ilPDSelectedItemsBlockGUI: ilColumnGUI ilPDSelectedItemsBlockGUI: ilCommonActionDispatcherGUI
Definition at line 18 of file class.ilPDSelectedItemsBlockGUI.php.
ilPDSelectedItemsBlockGUI::__construct | ( | ) |
Constructor.
Definition at line 32 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilCtrl, $ilUser, $lng, ilBlockGUI\fillDetailRow(), ilBlockGUI\setAvailableDetailLevels(), ilBlockGUI\setEnableNumInfo(), and ilBlockGUI\setLimit().
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 1235 of file class.ilPDSelectedItemsBlockGUI.php.
References $a_type, $title, ilUtil\getImagePath(), and ilObjectPlugin\lookupTxtById().
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 1277 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilSetting, $nd, $path, $title, ilContainer\_lookupIconPath(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), array, 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 1358 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilSetting, $path, $title, ilContainer\_lookupIconPath(), array, and ilUtil\getImagePath().
Referenced by getMembershipItemsPerLocation(), getMembershipItemsPerType(), getSelectedItemsPerLocation(), and getSelectedItemsPerType().
ilPDSelectedItemsBlockGUI::addToDeskObject | ( | ) |
Implements ilDesktopItemHandling.
Definition at line 70 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilCtrl, $lng, ilDesktopItemGUI\addToDesktop(), and ilUtil\sendSuccess().
ilPDSelectedItemsBlockGUI::confirmedRemove | ( | ) |
Definition at line 1578 of file class.ilPDSelectedItemsBlockGUI.php.
References $_POST, $ilCtrl, $ilUser, $ref_id, ilObjUser\_dropDesktopItem(), ilObject\_lookupType(), and ilUtil\sendSuccess().
ilPDSelectedItemsBlockGUI::confirmedUnsubscribe | ( | ) |
Definition at line 1599 of file class.ilPDSelectedItemsBlockGUI.php.
References $_POST, $ilCtrl, $ilUser, $ref_id, ilObject\_lookupObjId(), ilObject\_lookupType(), ilForumNotification\checkForumsExistsDelete(), ilUtil\sendSuccess(), ilGroupMembershipMailNotification\TYPE_NOTIFICATION_UNSUBSCRIBE, and ilGroupMembershipMailNotification\TYPE_UNSUBSCRIBE_MEMBER.
ilPDSelectedItemsBlockGUI::confirmRemoveObject | ( | ) |
Definition at line 1534 of file class.ilPDSelectedItemsBlockGUI.php.
References $_POST, $cmd, $ilCtrl, $ref_id, $title, ilObject\_getIcon(), ilObject\_lookupObjectId(), ilObject\_lookupTitle(), ilObject\_lookupType(), and ilUtil\sendFailure().
ilPDSelectedItemsBlockGUI::executeCommand | ( | ) |
execute command
Definition at line 275 of file class.ilPDSelectedItemsBlockGUI.php.
References $cmd, $ilCtrl, and ilCommonActionDispatcherGUI\getInstanceFromAjaxCall().
ilPDSelectedItemsBlockGUI::fillDataSection | ( | ) |
Fill data section.
Definition at line 316 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilUser, getContent(), getIntroduction(), and ilBlockGUI\setDataSection().
ilPDSelectedItemsBlockGUI::fillFooter | ( | ) |
block footer
Definition at line 334 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilCtrl, $ilUser, $lng, ilBlockGUI\fillFooterLinks(), ilBlockGUI\getColSpan(), and setFooterLinks().
|
static |
Get block type.
Definition at line 171 of file class.ilPDSelectedItemsBlockGUI.php.
ilPDSelectedItemsBlockGUI::getContent | ( | ) |
Definition at line 303 of file class.ilPDSelectedItemsBlockGUI.php.
Referenced by fillDataSection(), getHTML(), and setFooterLinks().
ilPDSelectedItemsBlockGUI::getFooterLinks | ( | ) |
ilPDSelectedItemsBlockGUI::getHTML | ( | ) |
Definition at line 207 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilCtrl, $ilDB, $ilSetting, $lng, $tpl, $view, array, getContent(), getMembershipItemsBlockHTML(), getSelectedItemsBlockHTML(), ilHelpGUI\ID_PART_SCREEN, setContent(), ilBlockGUI\setData(), ilBlockGUI\setEnableDetailRow(), and ilBlockGUI\setTitle().
Referenced by orderPDItemsByLocation(), and orderPDItemsByType().
ilPDSelectedItemsBlockGUI::getIntroduction | ( | ) |
Get overview.
Definition at line 1414 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilCtrl, $ilUser, $lng, $nd, $title, $tpl, and ilObject\_getIcon().
Referenced by fillDataSection().
& ilPDSelectedItemsBlockGUI::getItemListGUI | ( | $a_type | ) |
get item list gui class for type
Definition at line 1189 of file class.ilPDSelectedItemsBlockGUI.php.
References $a_type, and $location.
Referenced by getMembershipItemsPerLocation(), and getSelectedItemsPerLocation().
ilPDSelectedItemsBlockGUI::getMembershipItemsBlockHTML | ( | ) |
Gateway method to distinguish between sorting type.
public
Definition at line 820 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilUser, $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 478 of file class.ilPDSelectedItemsBlockGUI.php.
References $html, $ilBench, $ilSetting, $ilUser, $output, $tpl, ilObjectActivation\addListGUIActivationProperty(), addParentRow(), addStandardRow(), array, ilObjectListGUI\CONTEXT_PERSONAL_DESKTOP, 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 622 of file class.ilPDSelectedItemsBlockGUI.php.
References $a_type, $html, $ilBench, $ilSetting, $ilUser, $location, $output, $t, $title, $tpl, addHeaderRow(), ilObjectActivation\addListGUIActivationProperty(), addStandardRow(), array, ilObjectListGUI\CONTEXT_PERSONAL_DESKTOP, ilBlockGUI\getCurrentDetailLevel(), getObjectsByMembership(), and resetRowType().
Referenced by getMembershipItemsBlockHTML().
|
protected |
Gets all objects the current user is member of.
protected
Definition at line 411 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilUser, $ref_id, $title, ilObject\_getAllReferences(), ilParticipants\_getMembershipByType(), and array.
Referenced by getMembershipItemsPerLocation(), and getMembershipItemsPerType().
|
static |
Definition at line 176 of file class.ilPDSelectedItemsBlockGUI.php.
References $_GET, $_POST, $cmd, IL_SCREEN_FULL, and IL_SCREEN_SIDE.
ilPDSelectedItemsBlockGUI::getSelectedItemsBlockHTML | ( | ) |
get selected item block
Definition at line 843 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilBench, $ilUser, $ok, $tpl, getSelectedItemsPerLocation(), getSelectedItemsPerType(), and newBlockTemplate().
Referenced by getHTML().
ilPDSelectedItemsBlockGUI::getSelectedItemsPerLocation | ( | & | $tpl | ) |
get selected items per type
Definition at line 1055 of file class.ilPDSelectedItemsBlockGUI.php.
References $html, $ilBench, $ilSetting, $ilUser, $output, $tpl, ilObjectActivation\addListGUIActivationProperty(), addParentRow(), addStandardRow(), array, ilObjectListGUI\CONTEXT_PERSONAL_DESKTOP, ilBlockGUI\getCurrentDetailLevel(), getItemListGUI(), and resetRowType().
Referenced by getSelectedItemsBlockHTML().
ilPDSelectedItemsBlockGUI::getSelectedItemsPerType | ( | & | $tpl | ) |
get selected items per type
Definition at line 877 of file class.ilPDSelectedItemsBlockGUI.php.
References $a_type, $html, $ilBench, $ilCtrl, $ilSetting, $ilUser, $location, $output, $t, $title, $tpl, addHeaderRow(), ilObjectActivation\addListGUIActivationProperty(), addStandardRow(), array, ilObjectListGUI\CONTEXT_PERSONAL_DESKTOP, ilBlockGUI\getCurrentDetailLevel(), and resetRowType().
Referenced by getSelectedItemsBlockHTML().
|
static |
Get block type.
Definition at line 201 of file class.ilPDSelectedItemsBlockGUI.php.
ilPDSelectedItemsBlockGUI::manageObject | ( | ) |
Definition at line 1493 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilCtrl, $ilUser, $lng, array, ilUtil\getImagePath(), ilSubmitButton\getInstance(), and ilBlockGUI\setAvailableDetailLevels().
& ilPDSelectedItemsBlockGUI::newBlockTemplate | ( | ) |
returns a new list block template
private
Definition at line 1179 of file class.ilPDSelectedItemsBlockGUI.php.
References $tpl.
Referenced by getMembershipItemsBlockHTML(), and getSelectedItemsBlockHTML().
ilPDSelectedItemsBlockGUI::orderPDItemsByLocation | ( | ) |
ilPDSelectedItemsBlockGUI::orderPDItemsByType | ( | ) |
ilPDSelectedItemsBlockGUI::removeFromDeskObject | ( | ) |
Implements ilDesktopItemHandling.
Definition at line 84 of file class.ilPDSelectedItemsBlockGUI.php.
References $_GET, $allowed_views, $ilCtrl, $ilSetting, $lng, $view, array, ilDesktopItemGUI\removeFromDesktop(), and ilUtil\sendSuccess().
ilPDSelectedItemsBlockGUI::resetRowType | ( | ) |
Definition at line 1168 of file class.ilPDSelectedItemsBlockGUI.php.
Referenced by getMembershipItemsPerLocation(), getMembershipItemsPerType(), getSelectedItemsPerLocation(), and getSelectedItemsPerType().
ilPDSelectedItemsBlockGUI::setContent | ( | $a_content | ) |
Definition at line 308 of file class.ilPDSelectedItemsBlockGUI.php.
References $a_content.
Referenced by getHTML().
ilPDSelectedItemsBlockGUI::setFooterLinks | ( | ) |
Set footer links.
Definition at line 351 of file class.ilPDSelectedItemsBlockGUI.php.
References ilBlockGUI\$block_id, $ilCtrl, $ilUser, $lng, ilBlockGUI\addFooterLink(), getContent(), and ilBlockGUI\setEnableNumInfo().
Referenced by fillFooter().
|
private |
Definition at line 27 of file class.ilPDSelectedItemsBlockGUI.php.
Referenced by removeFromDeskObject().
|
static |
Definition at line 24 of file class.ilPDSelectedItemsBlockGUI.php.
|
private |
Definition at line 26 of file class.ilPDSelectedItemsBlockGUI.php.
Referenced by getHTML(), and removeFromDeskObject().
const ilPDSelectedItemsBlockGUI::VIEW_MY_MEMBERSHIPS = 1 |
Definition at line 21 of file class.ilPDSelectedItemsBlockGUI.php.
Referenced by ilPersonalDesktopGUI\setTabs().
const ilPDSelectedItemsBlockGUI::VIEW_MY_STUDYPROGRAMME = 2 |
Definition at line 22 of file class.ilPDSelectedItemsBlockGUI.php.
Referenced by ilPDStudyProgrammeSimpleListGUI\readToShowInfoMessage().
const ilPDSelectedItemsBlockGUI::VIEW_SELECTED_ITEMS = 0 |
Definition at line 20 of file class.ilPDSelectedItemsBlockGUI.php.
Referenced by ilPersonalDesktopGUI\setTabs().