ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilPortfolioWebAccessChecker Class Reference

Class ilPortfolioWebAccessChecker. More...

+ Inheritance diagram for ilPortfolioWebAccessChecker:
+ Collaboration diagram for ilPortfolioWebAccessChecker:

Public Member Functions

 isValidPath (array $a_path)
 Check if current (image) path is valid.
 checkAccess (array $a_users)
 Custom access method.
- Public Member Functions inherited from ilFileSystemStorageWebAccessChecker
 getRepositoryObjectId ()
 Get repository object id from path if any.

Protected Attributes

 $prtf_id
- Protected Attributes inherited from ilFileSystemStorageWebAccessChecker
 $object_id

Detailed Description

Class ilPortfolioWebAccessChecker.

Author
Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
Id:
class.ilObjFolder.php 25528 2010-09-03 10:37:11Z smeyer

Definition at line 14 of file class.ilPortfolioWebAccessChecker.php.

Member Function Documentation

ilPortfolioWebAccessChecker::checkAccess ( array  $a_user_ids)

Custom access method.

Parameters
array$a_user_ids
Returns
bool

Reimplemented from ilFileSystemStorageWebAccessChecker.

Definition at line 33 of file class.ilPortfolioWebAccessChecker.php.

{
include_once "Modules/Portfolio/classes/class.ilPortfolioAccessHandler.php";
$access_handler = new ilPortfolioAccessHandler();
foreach ($a_users as $user_id)
{
if ($access_handler->checkAccessOfUser($user_id, "read", "view", $this->prtf_id, "prtf"))
{
return true;
}
}
return false;
}
ilPortfolioWebAccessChecker::isValidPath ( array  $a_path)

Check if current (image) path is valid.

Parameters
array$a_path
Returns
bool

Reimplemented from ilFileSystemStorageWebAccessChecker.

Definition at line 18 of file class.ilPortfolioWebAccessChecker.php.

References ilFileSystemStorageWebAccessChecker\$object_id, and ilObject\_lookupType().

{
if(parent::isValidPath($a_path))
{
// portfolio (not in repository)?
if(ilObject::_lookupType($this->object_id) == "prtf")
{
$this->prtf_id = $this->object_id;
$this->object_id = null; // force custom check
}
return true;
}
}

+ Here is the call graph for this function:

Field Documentation

ilPortfolioWebAccessChecker::$prtf_id
protected

Definition at line 16 of file class.ilPortfolioWebAccessChecker.php.


The documentation for this class was generated from the following file: