ILIAS
release_4-3 Revision
|
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 | |
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 | 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") | |
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 1124 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 1166 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilSetting, $path, $title, 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 1248 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 53 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 80 of file class.ilPDSelectedItemsBlockGUI.php.
|
protected |
Sets the current view of the user and determines which views are allowed.
protected
Definition at line 103 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 231 of file class.ilPDSelectedItemsBlockGUI.php.
References $cmd, $ilCtrl, and ilCommonActionDispatcherGUI\getInstanceFromAjaxCall().
ilPDSelectedItemsBlockGUI::fillDataSection | ( | ) |
Fill data section.
Reimplemented from ilBlockGUI.
Definition at line 272 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilUser, getContent(), getIntroduction(), and ilBlockGUI\setDataSection().
ilPDSelectedItemsBlockGUI::fillFooter | ( | ) |
block footer
Reimplemented from ilBlockGUI.
Definition at line 290 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 147 of file class.ilPDSelectedItemsBlockGUI.php.
References $block_type.
ilPDSelectedItemsBlockGUI::getContent | ( | ) |
Definition at line 259 of file class.ilPDSelectedItemsBlockGUI.php.
Referenced by fillDataSection(), getHTML(), and setFooterLinks().
ilPDSelectedItemsBlockGUI::getHTML | ( | ) |
Handle config status.
Get HTML.
Reimplemented from ilBlockGUI.
Definition at line 163 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 1304 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilCtrl, $ilUser, $lng, $title, $tpl, and ilUtil\getImagePath().
Referenced by fillDataSection().
& ilPDSelectedItemsBlockGUI::getItemListGUI | ( | $a_type | ) |
get item list gui class for type
Definition at line 1085 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 723 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 425 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilBench, $ilSetting, $ilUser, $tpl, ilObjectActivation\addListGUIActivationProperty(), addParentRow(), addStandardRow(), ilBlockGUI\getCurrentDetailLevel(), getItemListGUI(), getObjectsByMembership(), ilBlockGUI\preloadData(), 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 551 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilBench, $ilSetting, $ilUser, $location, $t, $title, $tpl, addHeaderRow(), ilObjectActivation\addListGUIActivationProperty(), addStandardRow(), ilBlockGUI\getCurrentDetailLevel(), getObjectsByMembership(), ilBlockGUI\preloadData(), and resetRowType().
Referenced by getMembershipItemsBlockHTML().
|
protected |
Gets all objects the current user is member of.
protected
Definition at line 358 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilUser, $ref_id, $title, ilObject\_getAllReferences(), and ilParticipants\_getMembershipByType().
Referenced by getMembershipItemsPerLocation(), and getMembershipItemsPerType().
ilPDSelectedItemsBlockGUI::getSelectedItemsBlockHTML | ( | ) |
get selected item block
Definition at line 746 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 943 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilBench, $ilSetting, $ilUser, $tpl, ilObjectActivation\addListGUIActivationProperty(), addParentRow(), addStandardRow(), ilBlockGUI\getCurrentDetailLevel(), getItemListGUI(), ilBlockGUI\preloadData(), and resetRowType().
Referenced by getSelectedItemsBlockHTML().
ilPDSelectedItemsBlockGUI::getSelectedItemsPerType | ( | & | $tpl | ) |
get selected items per type
Definition at line 769 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilBench, $ilSetting, $ilUser, $location, $t, $title, $tpl, addHeaderRow(), ilObjectActivation\addListGUIActivationProperty(), addStandardRow(), ilBlockGUI\getCurrentDetailLevel(), ilBlockGUI\preloadData(), 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\setBigMode(), ilBlockGUI\setEnableNumInfo(), and ilBlockGUI\setLimit().
|
static |
Get block type.
Reimplemented from ilBlockGUI.
Definition at line 157 of file class.ilPDSelectedItemsBlockGUI.php.
& ilPDSelectedItemsBlockGUI::newBlockTemplate | ( | ) |
returns a new list block template
private
Definition at line 1075 of file class.ilPDSelectedItemsBlockGUI.php.
References $tpl.
Referenced by getMembershipItemsBlockHTML(), and getSelectedItemsBlockHTML().
ilPDSelectedItemsBlockGUI::orderPDItemsByLocation | ( | ) |
order desktop items by location
Definition at line 1344 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilCtrl, $ilUser, exit, and getHTML().
ilPDSelectedItemsBlockGUI::orderPDItemsByType | ( | ) |
order desktop items by Type
Definition at line 1364 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilCtrl, $ilUser, exit, and getHTML().
ilPDSelectedItemsBlockGUI::removeFromDeskObject | ( | ) |
Implements ilDesktopItemHandling.
Definition at line 65 of file class.ilPDSelectedItemsBlockGUI.php.
References $ilCtrl, and ilDesktopItemGUI\removeFromDesktop().
ilPDSelectedItemsBlockGUI::resetRowType | ( | ) |
Definition at line 1064 of file class.ilPDSelectedItemsBlockGUI.php.
Referenced by getMembershipItemsPerLocation(), getMembershipItemsPerType(), getSelectedItemsPerLocation(), and getSelectedItemsPerType().
ilPDSelectedItemsBlockGUI::setContent | ( | $a_content | ) |
Definition at line 264 of file class.ilPDSelectedItemsBlockGUI.php.
Referenced by getHTML().
ilPDSelectedItemsBlockGUI::setFooterLinks | ( | ) |
Set footer links.
Definition at line 307 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 determineViewSettings().
const ilPDSelectedItemsBlockGUI::VIEW_MY_OFFERS = 0 |
Definition at line 19 of file class.ilPDSelectedItemsBlockGUI.php.
Referenced by determineViewSettings().