ILIAS
release_4-3 Revision
|
Portfolio view gui class. More...
Public Member Functions | |
__construct () | |
Constructor. | |
initPortfolioObject ($a_id) | |
Init portfolio object. | |
& | executeCommand () |
execute command | |
setTabs () | |
Set all tabs. | |
confirmPortfolioDeletion () | |
Confirm portfolio deletion. | |
deletePortfolios () | |
Delete portfolios. | |
getExerciseInfo ($a_assignment_id, $a_add_submit=false) | |
downloadExcAssFile () | |
downloadExcSubFile () | |
initPageForm ($a_mode="create") | |
Init portfolio page form. | |
savePage () | |
Create new portfolio page. | |
initBlogForm ($a_mode="create") | |
Init portfolio page form. | |
saveBlog () | |
Create new portfolio blog page. | |
savePortfolioPagesOrdering () | |
Save ordering of portfolio pages. | |
confirmPortfolioPageDeletion () | |
Confirm portfolio deletion. | |
deletePortfolioPages () | |
Delete portfolio pages. | |
preview ($a_return=false, $a_content=false, $a_show_notes=true) | |
Show user page. | |
export () | |
copyPageForm ($a_form=null) | |
Select target portfolio for page(s) copy. | |
copyPage () | |
initCopyPageForm () | |
setAdditional ($a_additional) | |
Set Additonal Information. | |
getAdditional () | |
Get Additonal Information. | |
setPermaLink ($a_link) | |
_goto ($a_target) |
Static Public Member Functions | |
static | renderFullscreenHeader ($a_portfolio, $a_tpl, $a_user_id, $a_export=false) |
Render banner, user name. |
Protected Member Functions | |
checkAccess ($a_permission, $a_portfolio_id=null) | |
show () | |
Show list of user portfolios. | |
saveTitles () | |
add () | |
Show portfolio creation form. | |
save () | |
Create new portfolio instance. | |
edit () | |
Show portfolio edit form. | |
update () | |
Update portfolio properties. | |
initForm ($a_mode="create") | |
Init portfolio form. | |
setDefaultConfirmation () | |
Confirm sharing when setting default. | |
setDefaultGlobal () | |
setDefaultRegistered () | |
setDefault () | |
Set default portfolio for user. | |
unsetDefault () | |
Unset default portfolio for user. | |
setPagesTabs () | |
pages () | |
Show list of portfolio pages. | |
addPage () | |
Show portfolio page creation form. | |
addBlog () | |
Show portfolio blog page creation form. | |
finalize () | |
Finalize and submit blog to exercise. | |
setLocator ($a_page_id=null) | |
showOther () |
Protected Attributes | |
$user_id | |
$portfolio | |
$access_handler | |
$additional = array() | |
$perma_link |
Portfolio view gui class.
ilObjPortfolioGUI: ilPortfolioPageGUI, ilPageObjectGUI ilObjPortfolioGUI: ilWorkspaceAccessGUI, ilNoteGUI
Definition at line 18 of file class.ilObjPortfolioGUI.php.
ilObjPortfolioGUI::__construct | ( | ) |
Constructor.
Definition at line 29 of file class.ilObjPortfolioGUI.php.
References $_REQUEST, $ilCtrl, $ilUser, $lng, and initPortfolioObject().
ilObjPortfolioGUI::_goto | ( | $a_target | ) |
|
protected |
Show portfolio creation form.
Definition at line 249 of file class.ilObjPortfolioGUI.php.
References $tpl, and initForm().
|
protected |
Show portfolio blog page creation form.
Definition at line 1065 of file class.ilObjPortfolioGUI.php.
References $ilCtrl, $lng, $tpl, and initBlogForm().
|
protected |
Show portfolio page creation form.
Definition at line 952 of file class.ilObjPortfolioGUI.php.
References $ilCtrl, $lng, $tpl, and initPageForm().
|
protected |
Definition at line 47 of file class.ilObjPortfolioGUI.php.
Referenced by deletePortfolioPages(), deletePortfolios(), executeCommand(), pages(), preview(), saveBlog(), savePage(), savePortfolioPagesOrdering(), saveTitles(), setDefault(), setDefaultConfirmation(), setDefaultGlobal(), setDefaultRegistered(), setPagesTabs(), unsetDefault(), and update().
ilObjPortfolioGUI::confirmPortfolioDeletion | ( | ) |
Confirm portfolio deletion.
Definition at line 629 of file class.ilObjPortfolioGUI.php.
References $_POST, $ilCtrl, $lng, $tpl, ilObject2\_lookupTitle(), and ilUtil\sendInfo().
ilObjPortfolioGUI::confirmPortfolioPageDeletion | ( | ) |
Confirm portfolio deletion.
Definition at line 1206 of file class.ilObjPortfolioGUI.php.
References $_POST, $ilCtrl, $lng, $title, $tpl, ilObject\_lookupTitle(), ilUtil\sendInfo(), and ilPortfolioPage\TYPE_BLOG.
ilObjPortfolioGUI::copyPage | ( | ) |
Definition at line 1550 of file class.ilObjPortfolioGUI.php.
References $_POST, $ilCtrl, $lng, $portfolio, copyPageForm(), initCopyPageForm(), and ilUtil\sendSuccess().
ilObjPortfolioGUI::copyPageForm | ( | $a_form = null | ) |
Select target portfolio for page(s) copy.
Definition at line 1523 of file class.ilObjPortfolioGUI.php.
References $_POST, $ilCtrl, $ilUser, $lng, $tpl, initCopyPageForm(), and ilUtil\sendInfo().
Referenced by copyPage().
ilObjPortfolioGUI::deletePortfolioPages | ( | ) |
Delete portfolio pages.
Definition at line 1243 of file class.ilObjPortfolioGUI.php.
References $_POST, $ilCtrl, $lng, checkAccess(), ilPortfolioPage\delete(), and ilUtil\sendSuccess().
ilObjPortfolioGUI::deletePortfolios | ( | ) |
Delete portfolios.
Definition at line 659 of file class.ilObjPortfolioGUI.php.
References $_POST, $ilCtrl, $lng, $portfolio, $user_id, checkAccess(), and ilUtil\sendSuccess().
ilObjPortfolioGUI::downloadExcAssFile | ( | ) |
Definition at line 902 of file class.ilObjPortfolioGUI.php.
References $_GET, $file, ilUtil\deliverFile(), and ilExAssignment\getFiles().
ilObjPortfolioGUI::downloadExcSubFile | ( | ) |
Definition at line 923 of file class.ilObjPortfolioGUI.php.
References $_GET, $ilUser, $title, ilObjUser\_lookupName(), ilObject\_lookupTitle(), ilUtil\deliverFile(), and ilExAssignment\getDeliveredFiles().
|
protected |
Show portfolio edit form.
Definition at line 308 of file class.ilObjPortfolioGUI.php.
References $ilCtrl, $lng, $tpl, initForm(), and setPagesTabs().
& ilObjPortfolioGUI::executeCommand | ( | ) |
execute command
Definition at line 76 of file class.ilObjPortfolioGUI.php.
References $_REQUEST, $access_handler, $cmd, $ilCtrl, $ilUser, $lng, $ret, $title, $tpl, checkAccess(), getAdditional(), ilPermanentLinkGUI\getHTML(), ilUtil\getImagePath(), preview(), ilPortfolioPageGUI\setAdditional(), setLocator(), setPagesTabs(), and setTabs().
ilObjPortfolioGUI::export | ( | ) |
Definition at line 1458 of file class.ilObjPortfolioGUI.php.
References ilUtil\deliverFile().
|
protected |
Finalize and submit blog to exercise.
Definition at line 1470 of file class.ilObjPortfolioGUI.php.
References $_GET, $_REQUEST, $ilCtrl, $ilUser, $lng, ilObject\_getAllReferences(), and ilUtil\sendSuccess().
ilObjPortfolioGUI::getAdditional | ( | ) |
Get Additonal Information.
Definition at line 1690 of file class.ilObjPortfolioGUI.php.
References $additional.
Referenced by executeCommand(), and preview().
ilObjPortfolioGUI::getExerciseInfo | ( | $a_assignment_id, | |
$a_add_submit = false |
|||
) |
Definition at line 789 of file class.ilObjPortfolioGUI.php.
References $file, $ilCtrl, $ilUser, $lng, ilObject\_getAllReferences(), ilLink\_getStaticLink(), ilObject\_lookupTitle(), ilDatePresentation\formatDate(), ilExAssignment\getDeliveredFiles(), ilExAssignment\getFiles(), IL_CAL_DATETIME, ilDatePresentation\setUseRelativeDates(), and ilDatePresentation\useRelativeDates().
Referenced by pages().
ilObjPortfolioGUI::initBlogForm | ( | $a_mode = "create" | ) |
Init portfolio page form.
string | $a_mode |
Definition at line 1083 of file class.ilObjPortfolioGUI.php.
References $ilCtrl, $ilUser, $lng, ilTree\getNodeData(), ilTree\readRootId(), ilUtil\sendInfo(), and ilFormPropertyGUI\setRequired().
Referenced by addBlog(), and saveBlog().
ilObjPortfolioGUI::initCopyPageForm | ( | ) |
Definition at line 1593 of file class.ilObjPortfolioGUI.php.
References $ilCtrl, $ilUser, $lng, ilObjPortfolio\getPortfoliosOfUser(), ilTextInputGUI\setMaxLength(), and ilFormPropertyGUI\setRequired().
Referenced by copyPage(), and copyPageForm().
|
protected |
Init portfolio form.
string | $a_mode |
Definition at line 377 of file class.ilObjPortfolioGUI.php.
References $file, $ilCtrl, $ilSetting, $ilUser, $img, $lng, ilPageLayout\activeLayouts(), ilTree\getNodeData(), ilPageLayout\MODULE_PORTFOLIO, ilTree\readRootId(), ilUtil\sendInfo(), ilTextInputGUI\setMaxLength(), ilFormPropertyGUI\setRequired(), and ilColorPickerInputGUI\setValue().
Referenced by add(), edit(), save(), and update().
ilObjPortfolioGUI::initPageForm | ( | $a_mode = "create" | ) |
Init portfolio page form.
string | $a_mode |
Definition at line 970 of file class.ilObjPortfolioGUI.php.
References $ilCtrl, $ilUser, $lng, ilPageLayout\activeLayouts(), ilPageLayout\MODULE_PORTFOLIO, ilTextInputGUI\setMaxLength(), ilFormPropertyGUI\setRequired(), and ilRadioOption\setTitle().
Referenced by addPage(), and savePage().
ilObjPortfolioGUI::initPortfolioObject | ( | $a_id | ) |
Init portfolio object.
int | $a_id |
Definition at line 64 of file class.ilObjPortfolioGUI.php.
References $portfolio.
Referenced by __construct().
|
protected |
Show list of portfolio pages.
Definition at line 717 of file class.ilObjPortfolioGUI.php.
References $ilCtrl, $ilSetting, $ilUser, $lng, $ref_id, $tpl, ilObject\_getAllReferences(), checkAccess(), ilObjExercise\findUserFiles(), getExerciseInfo(), ilUtil\sendInfo(), and setPagesTabs().
ilObjPortfolioGUI::preview | ( | $a_return = false , |
|
$a_content = false , |
|||
$a_show_notes = true |
|||
) |
Show user page.
Definition at line 1268 of file class.ilObjPortfolioGUI.php.
References $_GET, $_REQUEST, $ilCtrl, $ilUser, $lng, $perma_link, $tpl, $user_id, ilObject2\_lookupTitle(), checkAccess(), exit, getAdditional(), ilPortfolioPage\getAllPages(), ilPermanentLinkGUI\getHTML(), renderFullscreenHeader(), ilPortfolioPageGUI\setEmbedded(), and ilPortfolioPage\TYPE_BLOG.
Referenced by executeCommand().
|
static |
Render banner, user name.
object | $a_tpl | |
int | $a_user_id | |
bool | $a_export_path |
Definition at line 1415 of file class.ilObjPortfolioGUI.php.
References $t, ilObjUser\_getPersonalPicturePath(), and ilObjUser\_lookupName().
Referenced by ilPortfolioHTMLExport\buildExportTemplate(), and preview().
|
protected |
Create new portfolio instance.
Definition at line 261 of file class.ilObjPortfolioGUI.php.
References $ilCtrl, $lng, $portfolio, $tpl, initForm(), ilUtil\sendSuccess(), ilPortfolioPage\setType(), ilPortfolioPage\TYPE_BLOG, and ilPortfolioPage\TYPE_PAGE.
ilObjPortfolioGUI::saveBlog | ( | ) |
Create new portfolio blog page.
Definition at line 1144 of file class.ilObjPortfolioGUI.php.
References $ilCtrl, $lng, $tpl, checkAccess(), initBlogForm(), ilUtil\sendSuccess(), ilPortfolioPage\setType(), and ilPortfolioPage\TYPE_BLOG.
ilObjPortfolioGUI::savePage | ( | ) |
Create new portfolio page.
Definition at line 1027 of file class.ilObjPortfolioGUI.php.
References $ilCtrl, $lng, $tpl, checkAccess(), initPageForm(), ilUtil\sendSuccess(), ilPortfolioPage\setType(), and ilPortfolioPage\TYPE_PAGE.
ilObjPortfolioGUI::savePortfolioPagesOrdering | ( | ) |
Save ordering of portfolio pages.
Definition at line 1172 of file class.ilObjPortfolioGUI.php.
References $_POST, $ilCtrl, $ilUser, $lng, checkAccess(), ilPortfolioPage\fixOrdering(), ilUtil\sendSuccess(), ilPortfolioPage\setTitle(), and ilUtil\stripSlashes().
|
protected |
Definition at line 215 of file class.ilObjPortfolioGUI.php.
References $_POST, $ilCtrl, $lng, $portfolio, $title, checkAccess(), and ilUtil\sendSuccess().
ilObjPortfolioGUI::setAdditional | ( | $a_additional | ) |
Set Additonal Information.
array | $a_additional | Additonal Information |
Definition at line 1680 of file class.ilObjPortfolioGUI.php.
|
protected |
Set default portfolio for user.
Definition at line 580 of file class.ilObjPortfolioGUI.php.
References $ilCtrl, $ilUser, $lng, checkAccess(), ilUtil\sendSuccess(), and ilObjPortfolio\setUserDefault().
Referenced by setDefaultConfirmation(), setDefaultGlobal(), and setDefaultRegistered().
|
protected |
Confirm sharing when setting default.
Definition at line 527 of file class.ilObjPortfolioGUI.php.
References $ilCtrl, $lng, $tpl, checkAccess(), and setDefault().
|
protected |
Definition at line 553 of file class.ilObjPortfolioGUI.php.
References $ilCtrl, checkAccess(), ilWorkspaceAccessGUI\PERMISSION_ALL, and setDefault().
|
protected |
Definition at line 565 of file class.ilObjPortfolioGUI.php.
References $ilCtrl, checkAccess(), ilWorkspaceAccessGUI\PERMISSION_REGISTERED, and setDefault().
|
protected |
Definition at line 1488 of file class.ilObjPortfolioGUI.php.
References $ilCtrl, $lng, $title, $tpl, ilObject\_lookupTitle(), and ilPortfolioPage\TYPE_BLOG.
Referenced by executeCommand().
|
protected |
Definition at line 687 of file class.ilObjPortfolioGUI.php.
References $ilCtrl, $lng, and checkAccess().
Referenced by edit(), executeCommand(), and pages().
ilObjPortfolioGUI::setPermaLink | ( | $a_link | ) |
Definition at line 1695 of file class.ilObjPortfolioGUI.php.
ilObjPortfolioGUI::setTabs | ( | ) |
Set all tabs.
@return |
Definition at line 184 of file class.ilObjPortfolioGUI.php.
Referenced by executeCommand().
|
protected |
Show list of user portfolios.
Definition at line 202 of file class.ilObjPortfolioGUI.php.
References $ilCtrl, $lng, and $tpl.
|
protected |
Definition at line 1642 of file class.ilObjPortfolioGUI.php.
References $_REQUEST, $ilCtrl, $lng, $si, $tpl, and ilUtil\sendInfo().
|
protected |
Unset default portfolio for user.
Definition at line 610 of file class.ilObjPortfolioGUI.php.
References $ilCtrl, $ilUser, $lng, checkAccess(), ilUtil\sendSuccess(), and ilObjPortfolio\setUserDefault().
|
protected |
Update portfolio properties.
Definition at line 329 of file class.ilObjPortfolioGUI.php.
References $ilCtrl, $ilUser, $lng, $tpl, checkAccess(), initForm(), ilUtil\sendSuccess(), and ilObjPortfolio\setUserDefault().
|
protected |
Definition at line 22 of file class.ilObjPortfolioGUI.php.
Referenced by executeCommand().
|
protected |
Definition at line 23 of file class.ilObjPortfolioGUI.php.
Referenced by getAdditional().
|
protected |
Definition at line 24 of file class.ilObjPortfolioGUI.php.
Referenced by preview().
|
protected |
Definition at line 21 of file class.ilObjPortfolioGUI.php.
Referenced by copyPage(), deletePortfolios(), initPortfolioObject(), save(), and saveTitles().
|
protected |
Definition at line 20 of file class.ilObjPortfolioGUI.php.
Referenced by deletePortfolios(), and preview().