ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
All Data Structures Namespaces Files Functions Variables Modules Pages
ilBlogWebAccessChecker Class Reference

Class ilBlogWebAccessChecker. More...

+ Inheritance diagram for ilBlogWebAccessChecker:
+ Collaboration diagram for ilBlogWebAccessChecker:

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

 $wsp_id
 
- Protected Attributes inherited from ilFileSystemStorageWebAccessChecker
 $object_id
 

Detailed Description

Class ilBlogWebAccessChecker.

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.ilBlogWebAccessChecker.php.

Member Function Documentation

◆ checkAccess()

ilBlogWebAccessChecker::checkAccess ( array  $a_user_ids)

Custom access method.

Parameters
array$a_user_ids
Returns
bool

Implements ilComponentWebAccessChecker.

Definition at line 37 of file class.ilBlogWebAccessChecker.php.

38  {
39  if($this->wsp_id)
40  {
41  include_once "Services/PersonalWorkspace/classes/class.ilWorkspaceAccessHandler.php";
42  foreach ($a_users as $user_id)
43  {
44  $access_handler = new ilWorkspaceAccessHandler($this->tree);
45  if ($access_handler->checkAccessOfUser($this->tree, $user_id, "read", "view", $this->wsp_id, "blog"))
46  {
47  return true;
48  }
49  }
50  }
51  }
Access handler for personal workspace.

◆ isValidPath()

ilBlogWebAccessChecker::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.ilBlogWebAccessChecker.php.

19  {
20  if(parent::isValidPath($a_path))
21  {
22  // personal workspace blog?
23  include_once "Services/PersonalWorkspace/classes/class.ilWorkspaceTree.php";
24  $this->tree = new ilWorkspaceTree(0);
25  $node_id = $this->tree->lookupNodeId($this->object_id);
26 
27  if($node_id)
28  {
29  $this->wsp_id = $node_id;
30  $this->object_id = null; // force custom check
31  }
32 
33  return true;
34  }
35  }
Tree handler for personal workspace.

Field Documentation

◆ $wsp_id

ilBlogWebAccessChecker::$wsp_id
protected

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


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