ILIAS
Release_4_4_x_branch Revision 61816
|
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 () | |
Handle config status. | |
& | 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 | |
manageObject () | |
confirmRemoveObject () | |
confirmedRemove () | |
confirmedUnsubscribe () | |
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, $a_checked=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, $a_checked=false) | |
Add a footer text/link. | |
getFooterLinks () | |
Get footer links. | |
clearFooterLinks () | |
Clear footer links. | |
handleDetailLevel () | |
Handle read/write current detail level. | |
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. |
Static Public Member Functions | |
static | getBlockType () |
Get block type. | |
static | getScreenMode () |
Get Screen Mode for current command. | |
static | isRepositoryObject () |
Get block type. |
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") | |
preloadData (array $data) | |
Can be overwritten in subclasses. |
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 = "" | |
$dropdown |
BlockGUI class for Selected Items on Personal Desktop.
ilPDSelectedItemsBlockGUI: ilColumnGUI ilPDSelectedItemsBlockGUI: ilCommonActionDispatcherGUI
Definition at line 17 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 1226 of file class.ilPDSelectedItemsBlockGUI.php.
References 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 1268 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilSetting, $path, 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 1350 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilSetting, $path, ilContainer\_lookupIconPath(), and ilUtil\getImagePath().
Referenced by getMembershipItemsPerLocation(), getMembershipItemsPerType(), getSelectedItemsPerLocation(), and getSelectedItemsPerType().
ilPDSelectedItemsBlockGUI::addToDeskObject | ( | ) |
Implements ilDesktopItemHandling.
Definition at line 54 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilCtrl, $lng, ilDesktopItemGUI\addToDesktop(), and ilUtil\sendSuccess().
ilPDSelectedItemsBlockGUI::changeView | ( | ) |
Method to switch between the different views of personal items block.
public
Definition at line 83 of file class.ilPDSelectedItemsBlockGUI.php.
ilPDSelectedItemsBlockGUI::confirmedRemove | ( | ) |
Definition at line 1595 of file class.ilPDSelectedItemsBlockGUI.php.
References $_POST, $ilCtrl, $ilUser, $ref_id, ilObjUser\_dropDesktopItem(), ilObject\_lookupType(), and ilUtil\sendSuccess().
ilPDSelectedItemsBlockGUI::confirmedUnsubscribe | ( | ) |
Definition at line 1614 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 1552 of file class.ilPDSelectedItemsBlockGUI.php.
References $_POST, $cmd, $ilCtrl, $ref_id, ilObject\_getIcon(), ilObject\_lookupObjectId(), ilObject\_lookupTitle(), ilObject\_lookupType(), and ilUtil\sendFailure().
|
protected |
Sets the current view of the user and determines which views are allowed.
protected
Definition at line 106 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilSetting, $ilUser, VIEW_MY_MEMBERSHIPS, and VIEW_MY_OFFERS.
Referenced by ilPDSelectedItemsBlockGUI().
& ilPDSelectedItemsBlockGUI::executeCommand | ( | ) |
execute command
Definition at line 259 of file class.ilPDSelectedItemsBlockGUI.php.
References $cmd, $ilCtrl, and ilCommonActionDispatcherGUI\getInstanceFromAjaxCall().
ilPDSelectedItemsBlockGUI::fillDataSection | ( | ) |
Fill data section.
Reimplemented from ilBlockGUI.
Definition at line 300 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilUser, getContent(), getIntroduction(), and ilBlockGUI\setDataSection().
ilPDSelectedItemsBlockGUI::fillFooter | ( | ) |
block footer
Reimplemented from ilBlockGUI.
Definition at line 318 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilCtrl, $ilUser, $lng, ilBlockGUI\fillFooterLinks(), ilBlockGUI\getColSpan(), and setFooterLinks().
|
static |
Get block type.
Reimplemented from ilBlockGUI.
Definition at line 150 of file class.ilPDSelectedItemsBlockGUI.php.
References $block_type.
ilPDSelectedItemsBlockGUI::getContent | ( | ) |
Definition at line 287 of file class.ilPDSelectedItemsBlockGUI.php.
Referenced by fillDataSection(), getHTML(), and setFooterLinks().
ilPDSelectedItemsBlockGUI::getHTML | ( | ) |
Handle config status.
Get HTML.
Reimplemented from ilBlockGUI.
Definition at line 186 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilCtrl, $ilSetting, $lng, $tpl, $view, 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 1406 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilCtrl, $ilUser, $lng, $tpl, and ilUtil\getImagePath().
Referenced by fillDataSection().
& ilPDSelectedItemsBlockGUI::getItemListGUI | ( | $a_type | ) |
get item list gui class for type
Definition at line 1180 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 806 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 462 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilBench, $ilSetting, $ilUser, $tpl, ilObjectActivation\addListGUIActivationProperty(), addParentRow(), addStandardRow(), 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 607 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilBench, $ilSetting, $ilUser, $location, $t, $tpl, addHeaderRow(), ilObjectActivation\addListGUIActivationProperty(), addStandardRow(), 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 395 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilUser, $ref_id, ilObject\_getAllReferences(), and ilParticipants\_getMembershipByType().
Referenced by getMembershipItemsPerLocation(), and getMembershipItemsPerType().
|
static |
Get Screen Mode for current command.
Reimplemented from ilBlockGUI.
Definition at line 155 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 829 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 1041 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilBench, $ilSetting, $ilUser, $tpl, ilObjectActivation\addListGUIActivationProperty(), addParentRow(), addStandardRow(), ilObjectListGUI\CONTEXT_PERSONAL_DESKTOP, ilBlockGUI\getCurrentDetailLevel(), getItemListGUI(), and resetRowType().
Referenced by getSelectedItemsBlockHTML().
ilPDSelectedItemsBlockGUI::getSelectedItemsPerType | ( | & | $tpl | ) |
get selected items per type
Definition at line 863 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilBench, $ilCtrl, $ilSetting, $ilUser, $location, $t, $tpl, addHeaderRow(), ilObjectActivation\addListGUIActivationProperty(), addStandardRow(), ilObjectListGUI\CONTEXT_PERSONAL_DESKTOP, ilBlockGUI\getCurrentDetailLevel(), and resetRowType().
Referenced by getSelectedItemsBlockHTML().
ilPDSelectedItemsBlockGUI::ilPDSelectedItemsBlockGUI | ( | ) |
Constructor.
Definition at line 30 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilCtrl, $ilUser, $lng, determineViewSettings(), ilBlockGUI\ilBlockGUI(), ilBlockGUI\setAvailableDetailLevels(), ilBlockGUI\setEnableNumInfo(), and ilBlockGUI\setLimit().
|
static |
Get block type.
Reimplemented from ilBlockGUI.
Definition at line 180 of file class.ilPDSelectedItemsBlockGUI.php.
ilPDSelectedItemsBlockGUI::manageObject | ( | ) |
Definition at line 1483 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilCtrl, $ilUser, $lng, ilUtil\getImagePath(), and ilBlockGUI\setAvailableDetailLevels().
& ilPDSelectedItemsBlockGUI::newBlockTemplate | ( | ) |
returns a new list block template
private
Definition at line 1170 of file class.ilPDSelectedItemsBlockGUI.php.
References $tpl.
Referenced by getMembershipItemsBlockHTML(), and getSelectedItemsBlockHTML().
ilPDSelectedItemsBlockGUI::orderPDItemsByLocation | ( | ) |
order desktop items by location
Definition at line 1446 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilCtrl, $ilUser, exit, and getHTML().
ilPDSelectedItemsBlockGUI::orderPDItemsByType | ( | ) |
order desktop items by Type
Definition at line 1466 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilCtrl, $ilUser, exit, and getHTML().
ilPDSelectedItemsBlockGUI::removeFromDeskObject | ( | ) |
Implements ilDesktopItemHandling.
Definition at line 67 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilCtrl, $lng, ilDesktopItemGUI\removeFromDesktop(), and ilUtil\sendSuccess().
ilPDSelectedItemsBlockGUI::resetRowType | ( | ) |
Definition at line 1159 of file class.ilPDSelectedItemsBlockGUI.php.
Referenced by getMembershipItemsPerLocation(), getMembershipItemsPerType(), getSelectedItemsPerLocation(), and getSelectedItemsPerType().
ilPDSelectedItemsBlockGUI::setContent | ( | $a_content | ) |
Definition at line 292 of file class.ilPDSelectedItemsBlockGUI.php.
Referenced by getHTML().
ilPDSelectedItemsBlockGUI::setFooterLinks | ( | ) |
Set footer links.
Definition at line 335 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 25 of file class.ilPDSelectedItemsBlockGUI.php.
|
static |
Definition at line 22 of file class.ilPDSelectedItemsBlockGUI.php.
Referenced by getBlockType().
|
private |
Definition at line 24 of file class.ilPDSelectedItemsBlockGUI.php.
Referenced by changeView(), and getHTML().
const ilPDSelectedItemsBlockGUI::VIEW_MY_MEMBERSHIPS = 1 |
Definition at line 20 of file class.ilPDSelectedItemsBlockGUI.php.
Referenced by ilPDSelectedItemsTableGUI\__construct(), and determineViewSettings().
const ilPDSelectedItemsBlockGUI::VIEW_MY_OFFERS = 0 |
Definition at line 19 of file class.ilPDSelectedItemsBlockGUI.php.
Referenced by ilPDSelectedItemsTableGUI\__construct(), and determineViewSettings().