ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
All Data Structures Namespaces Files Functions Variables Modules 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. More...
 
 checkAccess (array $a_users)
 Custom access method. More...
 
- Public Member Functions inherited from ilFileSystemStorageWebAccessChecker
 isValidPath (array $a_path)
 Check if current (image) path is valid. More...
 
 getRepositoryObjectId ()
 Get repository object id from path if any. More...
 
 checkAccess (array $a_user_ids)
 Custom access method. More...
 

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

◆ checkAccess()

ilPortfolioWebAccessChecker::checkAccess ( array  $a_user_ids)

Custom access method.

Parameters
array$a_user_ids
Returns
bool

Implements ilComponentWebAccessChecker.

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

34  {
35  include_once "Modules/Portfolio/classes/class.ilPortfolioAccessHandler.php";
36  $access_handler = new ilPortfolioAccessHandler();
37  foreach ($a_users as $user_id)
38  {
39  if ($access_handler->checkAccessOfUser($user_id, "read", "view", $this->prtf_id, "prtf"))
40  {
41  return true;
42  }
43  }
44  return false;
45  }
Access handler for portfolio.

◆ isValidPath()

ilPortfolioWebAccessChecker::isValidPath ( array  $a_path)

Check if current (image) path is valid.

Parameters
array$a_path
Returns
bool

Implements ilComponentWebAccessChecker.

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

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

19  {
20  if(parent::isValidPath($a_path))
21  {
22  // portfolio (not in repository)?
23  if(ilObject::_lookupType($this->object_id) == "prtf")
24  {
25  $this->prtf_id = $this->object_id;
26  $this->object_id = null; // force custom check
27  }
28 
29  return true;
30  }
31  }
static _lookupType($a_id, $a_reference=false)
lookup object type
+ Here is the call graph for this function:

Field Documentation

◆ $prtf_id

ilPortfolioWebAccessChecker::$prtf_id
protected

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


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