Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
	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();
		}
	}
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
 public function getPermissionKeyToolsURL($task = false)
 {
     $area = $this->getPermissionObject();
     $c = $area->getAreaCollectionObject();
     return parent::getPermissionKeyToolsURL($task) . '&cID=' . $c->getCollectionID() . '&arHandle=' . urlencode($area->getAreaHandle());
 }
Ejemplo n.º 5
0
 public function getPermissionKeyToolsURL($task = false)
 {
     return parent::getPermissionKeyToolsURL($task) . '&wfID=' . $this->getPermissionObject()->getWorkflowID();
 }
Ejemplo n.º 6
0
	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;
	}
Ejemplo n.º 7
0
 public function getPermissionKeyToolsURL($task = false)
 {
     return parent::getPermissionKeyToolsURL($task) . '&fsID=' . $this->getPermissionObject()->getFileSetID();
 }