public function getPermissionKeyToolsURL($task = false) { $b = $this->getPermissionObject(); $c = $b->getBlockCollectionObject(); $arHandle = $b->getAreaHandle(); return parent::getPermissionKeyToolsURL($task) . '&cID=' . $c->getCollectionID() . '&cvID=' . $c->getVersionID() . '&bID=' . $b->getBlockID() . '&arHandle=' . urlencode($arHandle); }
public function getPermissionKeyToolsURL($task = false) { $pageArray = $this->pk->getMultiplePageArray(); if (is_array($pageArray) && count($pageArray) > 0) { $cIDStr = ''; foreach($pageArray as $sc) { $cIDStr .= '&cID[]=' . $sc->getCollectionID(); } return parent::getPermissionKeyToolsURL($task) . $cIDStr; } else { return parent::getPermissionKeyToolsURL($task) . '&cID=' . $this->getPermissionObject()->getCollectionID(); } }
public function getPermissionAssignmentObject() { if (is_object($this->permissionObject)) { if (method_exists($this->permissionObject, 'getPermissionObjectPermissionKeyCategoryHandle')) { $objectClass = Loader::helper('text')->camelcase($this->permissionObject->getPermissionObjectPermissionKeyCategoryHandle()); } else { $objectClass = get_class($this->permissionObject); } $class = $objectClass . 'PermissionAssignment'; if (!class_exists($class)) { if ($this->permissionObject instanceof Page) { $class = 'PagePermissionAssignment'; } else { if ($this->permissionObject instanceof Area) { $class = 'AreaPermissionAssignment'; } } } $targ = new $class(); $targ->setPermissionObject($this->permissionObject); } else { $targ = new PermissionAssignment(); } $targ->setPermissionKeyObject($this); return $targ; }
public function getPermissionKeyToolsURL($task = false) { $area = $this->getPermissionObject(); $c = $area->getAreaCollectionObject(); return parent::getPermissionKeyToolsURL($task) . '&cID=' . $c->getCollectionID() . '&arHandle=' . urlencode($area->getAreaHandle()); }
public function getPermissionKeyToolsURL($task = false) { return parent::getPermissionKeyToolsURL($task) . '&wfID=' . $this->getPermissionObject()->getWorkflowID(); }
public function getPermissionAssignmentObject() { if (is_object($this->permissionObject)) { $class = Loader::helper('text')->camelcase(get_class($this->permissionObject) . 'PermissionAssignment'); if (!class_exists($class) && $this->permissionObject instanceof Page) { $class = 'PagePermissionAssignment'; } $targ = new $class(); $targ->setPermissionObject($this->permissionObject); } else { $targ = new PermissionAssignment(); } $targ->setPermissionKeyObject($this); return $targ; }
public function getPermissionKeyToolsURL($task = false) { return parent::getPermissionKeyToolsURL($task) . '&fsID=' . $this->getPermissionObject()->getFileSetID(); }