예제 #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);
 }
예제 #2
0
파일: page.php 프로젝트: nveid/concrete5
	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();
		}
	}
예제 #3
0
파일: key.php 프로젝트: Zyqsempai/amanet
 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;
 }
예제 #4
0
파일: area.php 프로젝트: Zyqsempai/amanet
 public function getPermissionKeyToolsURL($task = false)
 {
     $area = $this->getPermissionObject();
     $c = $area->getAreaCollectionObject();
     return parent::getPermissionKeyToolsURL($task) . '&cID=' . $c->getCollectionID() . '&arHandle=' . urlencode($area->getAreaHandle());
 }
예제 #5
0
 public function getPermissionKeyToolsURL($task = false)
 {
     return parent::getPermissionKeyToolsURL($task) . '&wfID=' . $this->getPermissionObject()->getWorkflowID();
 }
예제 #6
0
파일: key.php 프로젝트: nveid/concrete5
	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;
	}
예제 #7
0
 public function getPermissionKeyToolsURL($task = false)
 {
     return parent::getPermissionKeyToolsURL($task) . '&fsID=' . $this->getPermissionObject()->getFileSetID();
 }