ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups 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.
 checkAccess (array $a_users)
 Custom access method.
- Public Member Functions inherited from ilFileSystemStorageWebAccessChecker
 getRepositoryObjectId ()
 Get repository object id from path if any.

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

ilBlogWebAccessChecker::checkAccess ( array  $a_user_ids)

Custom access method.

Parameters
array$a_user_ids
Returns
bool

Reimplemented from ilFileSystemStorageWebAccessChecker.

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

{
if($this->wsp_id)
{
include_once "Services/PersonalWorkspace/classes/class.ilWorkspaceAccessHandler.php";
foreach ($a_users as $user_id)
{
$access_handler = new ilWorkspaceAccessHandler($this->tree);
if ($access_handler->checkAccessOfUser($this->tree, $user_id, "read", "view", $this->wsp_id, "blog"))
{
return true;
}
}
}
}
ilBlogWebAccessChecker::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.ilBlogWebAccessChecker.php.

{
if(parent::isValidPath($a_path))
{
// personal workspace blog?
include_once "Services/PersonalWorkspace/classes/class.ilWorkspaceTree.php";
$this->tree = new ilWorkspaceTree(0);
$node_id = $this->tree->lookupNodeId($this->object_id);
if($node_id)
{
$this->wsp_id = $node_id;
$this->object_id = null; // force custom check
}
return true;
}
}

Field Documentation

ilBlogWebAccessChecker::$wsp_id
protected

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


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