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

Class ilFileSystemStorageWebAccessChecker. More...

+ Inheritance diagram for ilFileSystemStorageWebAccessChecker:
+ Collaboration diagram for ilFileSystemStorageWebAccessChecker:

Public Member Functions

 isValidPath (array $a_path)
 Check if current (image) path is valid.
 getRepositoryObjectId ()
 Get repository object id from path if any.
 checkAccess (array $a_user_ids)
 Custom access method.

Protected Attributes

 $object_id

Detailed Description

Class ilFileSystemStorageWebAccessChecker.

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

Member Function Documentation

ilFileSystemStorageWebAccessChecker::checkAccess ( array  $a_user_ids)

Custom access method.

Parameters
array$a_user_ids
Returns
bool

Implements ilComponentWebAccessChecker.

Reimplemented in ilBlogWebAccessChecker, and ilPortfolioWebAccessChecker.

Definition at line 40 of file class.ilFileSystemStorageWebAccessChecker.php.

{
}
ilFileSystemStorageWebAccessChecker::getRepositoryObjectId ( )

Get repository object id from path if any.

If an object id is returned a simple RBAC-based access check is done

Returns
int

Implements ilComponentWebAccessChecker.

Definition at line 35 of file class.ilFileSystemStorageWebAccessChecker.php.

References $object_id.

{
}
ilFileSystemStorageWebAccessChecker::isValidPath ( array  $a_path)

Check if current (image) path is valid.

Parameters
array$a_path
Returns
bool

Implements ilComponentWebAccessChecker.

Reimplemented in ilBlogWebAccessChecker, and ilPortfolioWebAccessChecker.

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

{
// last element is file
array_pop($a_path);
// 2nd to last: directory with object id
$dir = array_pop($a_path);
// extract id from directory title
$obj_id = (int)array_pop(explode("_", $dir));
if((int)$obj_id)
{
$this->object_id = $obj_id;
return true;
}
}

Field Documentation

ilFileSystemStorageWebAccessChecker::$object_id
protected

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