35 foreach ($pages as $page) {
38 $page_obj->setPortfolioId($this->
id);
60 $ilDB = $DIC->database();
62 $set =
$ilDB->query(
"SELECT up.*,od.title,od.description" .
63 " FROM usr_portfolio up" .
64 " JOIN object_data od ON (up.id = od.obj_id)" .
65 " WHERE od.owner = " .
$ilDB->quote($a_user_id,
"integer") .
66 " AND od.type = " .
$ilDB->quote(
"prtf",
"text") .
67 " ORDER BY od.title");
69 while ($rec =
$ilDB->fetchAssoc($set)) {
88 $all = self::getPortfoliosOfUser($a_user_id);
92 foreach ($all as $item) {
93 $access_handler->removePermission($item[
"id"]);
95 $portfolio =
new self($item[
"id"],
false);
103 ?
string $a_back_url =
null 115 foreach ($access_handler->getShardObjectsDataForUserIds($a_owner_ids) as $owner_id => $items) {
135 if (!$this->notes->domain()->commentsActive($this->
id)) {
138 if (!$privacy->enabledCommentsExport()) {
146 return \ilPortfolioPage::lookupTitle($a_sub_id);
static getAllPortfolioPages(int $a_portfolio_id)
Get pages of portfolio.
get(string $a_keyword, ?string $a_default_value=null)
get setting
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
static getDefaultPortfolio(int $a_user_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static getAdvMDSubItemTitle(int $a_obj_id, string $a_sub_type, int $a_sub_id)
static getPortfoliosOfUser(int $a_user_id)
Get portfolios of user.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static deleteUserPortfolios(int $a_user_id)
Delete all portfolio data for user.
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Access handler for portfolio NOTE: This file needs to stay in the classes directory, WAC will be confused otherwise.
static getAvailablePortfolioLinksForUserIds(array $a_owner_ids, ?string $a_back_url=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
isCommentsExportPossible()
Is export possible.