40        $this->
user = $DIC->user();
 
   41        $this->lng = 
$DIC->language();
 
   42        $this->rbacsystem = 
$DIC->rbac()->system();
 
   43        $this->access = 
$DIC->access();
 
   49            array(
"permission" => 
"read", 
"cmd" => 
"preview", 
"lang_var" => 
"preview", 
"default" => 
true),
 
   50            array(
"permission" => 
"write", 
"cmd" => 
"view", 
"lang_var" => 
"edit"),
 
   51            array(
"permission" => 
"read", 
"cmd" => 
"createfromtemplate", 
"lang_var" => 
"prtf_create_portfolio_from_template"),
 
   58    public function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id = 
"")
 
   65        if ($a_user_id == 
"") {
 
   71                    if (!self::_lookupOnline($a_obj_id)
 
   72                         && !
$rbacsystem->checkAccessOfUser($a_user_id, 
'write', $a_ref_id)) {
 
   80                    if (!self::_lookupOnline($a_obj_id)) {
 
   89        switch ($a_permission) {
 
   92                    if (!self::_lookupOnline($a_obj_id) &&
 
   93                         (!
$rbacsystem->checkAccessOfUser($a_user_id, 
'write', $a_ref_id))) {
 
  119        $q = 
"SELECT id, is_online FROM usr_portfolio WHERE " .
 
  120            $ilDB->in(
"id", $a_ids, 
false, 
"integer");
 
  124            $status[$r[
"id"]] = $r[
"is_online"];
 
  137        $ilAccess = 
$DIC->access();
 
  139        $t_arr = explode(
"_", $a_target);
 
  141        if ($t_arr[0] != 
"prtt" || ((
int) $t_arr[1]) <= 0) {
 
  145        if ($ilAccess->checkAccess(
"read", 
"", $t_arr[1]) ||
 
  146            $ilAccess->checkAccess(
"visible", 
"", $t_arr[1])) {
 
An exception for terminatinating execution or to throw for unit testing.
const IL_NO_OBJECT_ACCESS
static lookupOnline($a_id)
Is online?
Class ilObjPortfolioTemplateAccess.
static _checkGoto($a_target)
check whether goto script will succeed
static _lookupOnline($a_id)
static _lookupOnlineStatus($a_ids)
Check wether booking pool is online (legacy version)
_checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id="")
Checks wether a user may invoke a command or not (this method is called by ilAccessHandler::checkAcce...
__construct()
Constructor.
static _getCommands()
get commands