ILIAS
Release_4_2_x_branch Revision 61807
|
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, $lng, and initPortfolioObject().
ilObjPortfolioGUI::_goto | ( | $a_target | ) |
|
protected |
Show portfolio creation form.
Definition at line 247 of file class.ilObjPortfolioGUI.php.
References $tpl, and initForm().
|
protected |
Show portfolio blog page creation form.
Definition at line 1042 of file class.ilObjPortfolioGUI.php.
References $ilCtrl, $lng, $tpl, and initBlogForm().
|
protected |
Show portfolio page creation form.
Definition at line 929 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 608 of file class.ilObjPortfolioGUI.php.
References $_POST, $ilCtrl, $lng, $tpl, ilObject2\_lookupTitle(), and ilUtil\sendInfo().
ilObjPortfolioGUI::confirmPortfolioPageDeletion | ( | ) |
Confirm portfolio deletion.
Definition at line 1183 of file class.ilObjPortfolioGUI.php.
References $_POST, $ilCtrl, $lng, $title, $tpl, ilObject\_lookupTitle(), ilUtil\sendInfo(), and ilPortfolioPage\TYPE_BLOG.
ilObjPortfolioGUI::copyPage | ( | ) |
Definition at line 1521 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 1494 of file class.ilObjPortfolioGUI.php.
References $_POST, $ilCtrl, $lng, $tpl, initCopyPageForm(), and ilUtil\sendInfo().
Referenced by copyPage().
ilObjPortfolioGUI::deletePortfolioPages | ( | ) |
Delete portfolio pages.
Definition at line 1220 of file class.ilObjPortfolioGUI.php.
References $_POST, $ilCtrl, $lng, checkAccess(), ilPortfolioPage\delete(), and ilUtil\sendSuccess().
ilObjPortfolioGUI::deletePortfolios | ( | ) |
Delete portfolios.
Definition at line 638 of file class.ilObjPortfolioGUI.php.
References $_POST, $ilCtrl, $lng, $portfolio, $user_id, checkAccess(), and ilUtil\sendSuccess().
ilObjPortfolioGUI::downloadExcAssFile | ( | ) |
Definition at line 879 of file class.ilObjPortfolioGUI.php.
References $_GET, $file, ilUtil\deliverFile(), and ilExAssignment\getFiles().
ilObjPortfolioGUI::downloadExcSubFile | ( | ) |
Definition at line 900 of file class.ilObjPortfolioGUI.php.
References $_GET, $title, ilObjUser\_lookupName(), ilObject\_lookupTitle(), ilUtil\deliverFile(), and ilExAssignment\getDeliveredFiles().
|
protected |
Show portfolio edit form.
Definition at line 306 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, $lng, $ret, $title, $tpl, checkAccess(), getAdditional(), ilPermanentLinkGUI\getHTML(), ilUtil\getImagePath(), preview(), ilPortfolioPageGUI\setAdditional(), setLocator(), setPagesTabs(), and setTabs().
ilObjPortfolioGUI::export | ( | ) |
Definition at line 1432 of file class.ilObjPortfolioGUI.php.
References ilUtil\deliverFile().
|
protected |
Finalize and submit blog to exercise.
Definition at line 1444 of file class.ilObjPortfolioGUI.php.
References $_GET, $_REQUEST, $ilCtrl, $lng, and ilUtil\sendSuccess().
ilObjPortfolioGUI::getAdditional | ( | ) |
Get Additonal Information.
Definition at line 1661 of file class.ilObjPortfolioGUI.php.
References $additional.
Referenced by executeCommand(), and preview().
ilObjPortfolioGUI::getExerciseInfo | ( | $a_assignment_id, | |
$a_add_submit = false |
|||
) |
Definition at line 766 of file class.ilObjPortfolioGUI.php.
References $file, $ilCtrl, $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 1060 of file class.ilObjPortfolioGUI.php.
References $ilCtrl, $lng, ilTree\getNodeData(), ilTree\readRootId(), ilUtil\sendInfo(), and ilFormPropertyGUI\setRequired().
Referenced by addBlog(), and saveBlog().
ilObjPortfolioGUI::initCopyPageForm | ( | ) |
Definition at line 1564 of file class.ilObjPortfolioGUI.php.
References $ilCtrl, $lng, ilObjPortfolio\getPortfoliosOfUser(), ilTextInputGUI\setMaxLength(), and ilFormPropertyGUI\setRequired().
Referenced by copyPage(), and copyPageForm().
|
protected |
Init portfolio form.
string | $a_mode |
Definition at line 375 of file class.ilObjPortfolioGUI.php.
References $file, $ilCtrl, $ilSetting, $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 947 of file class.ilObjPortfolioGUI.php.
References $ilCtrl, $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 694 of file class.ilObjPortfolioGUI.php.
References $ilCtrl, $ilSetting, $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 1245 of file class.ilObjPortfolioGUI.php.
References $_GET, $_REQUEST, $ilCtrl, $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 1390 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 259 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 1121 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 1004 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 1149 of file class.ilObjPortfolioGUI.php.
References $_POST, $ilCtrl, $lng, checkAccess(), ilPortfolioPage\fixOrdering(), ilUtil\sendSuccess(), ilPortfolioPage\setTitle(), and ilUtil\stripSlashes().
|
protected |
Definition at line 213 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 1651 of file class.ilObjPortfolioGUI.php.
|
protected |
Set default portfolio for user.
Definition at line 578 of file class.ilObjPortfolioGUI.php.
References $ilCtrl, $lng, checkAccess(), ilUtil\sendSuccess(), and ilObjPortfolio\setUserDefault().
Referenced by setDefaultConfirmation(), setDefaultGlobal(), and setDefaultRegistered().
|
protected |
Confirm sharing when setting default.
Definition at line 525 of file class.ilObjPortfolioGUI.php.
References $ilCtrl, $lng, $tpl, checkAccess(), and setDefault().
|
protected |
Definition at line 551 of file class.ilObjPortfolioGUI.php.
References $ilCtrl, checkAccess(), ilWorkspaceAccessGUI\PERMISSION_ALL, and setDefault().
|
protected |
Definition at line 563 of file class.ilObjPortfolioGUI.php.
References $ilCtrl, checkAccess(), ilWorkspaceAccessGUI\PERMISSION_REGISTERED, and setDefault().
|
protected |
Definition at line 1459 of file class.ilObjPortfolioGUI.php.
References $ilCtrl, $lng, $title, $tpl, ilObject\_lookupTitle(), and ilPortfolioPage\TYPE_BLOG.
Referenced by executeCommand().
|
protected |
Definition at line 666 of file class.ilObjPortfolioGUI.php.
References $ilCtrl, $lng, and checkAccess().
Referenced by edit(), executeCommand(), and pages().
ilObjPortfolioGUI::setPermaLink | ( | $a_link | ) |
Definition at line 1666 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 200 of file class.ilObjPortfolioGUI.php.
References $ilCtrl, $lng, and $tpl.
|
protected |
Definition at line 1613 of file class.ilObjPortfolioGUI.php.
References $_REQUEST, $ilCtrl, $lng, $tpl, ilUtil\sendInfo(), and ilSelectInputGUI\setOptions().
|
protected |
Unset default portfolio for user.
Definition at line 593 of file class.ilObjPortfolioGUI.php.
References $ilCtrl, $lng, checkAccess(), ilUtil\sendSuccess(), and ilObjPortfolio\setUserDefault().
|
protected |
Update portfolio properties.
Definition at line 327 of file class.ilObjPortfolioGUI.php.
References $ilCtrl, $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().