public function locked()
    {
        $this->defaultData();
	    $resource = $this->getResource($this->getRequestParameter('id'));
	    $lockData = LockManager::getImplementation()->getLockData($resource);

	    $this->setData('topclass-label',
	        $this->hasRequestParameter('topclass-label') ? $this->getRequestParameter('topclass-label') : __('Resource')
        );

	    if (AclProxy::hasAccess($this->getSession()->getUser(), __CLASS__, 'forceRelease', array('uri' => $resource->getUri()))) {
	        $this->setData('id', $resource->getUri());
            $this->setData('forceRelease', true);
	    }

	    $this->setData('lockDate', $lockData->getCreationTime());
	    $this->setData('ownerHtml', UserHelper::renderHtmlUser($lockData->getOwnerId()));

	    if ($this->hasRequestParameter('view') && $this->hasRequestParameter('ext')) {
	        $this->setView($this->getRequestParameter('view'), $this->getRequestParameter('ext'));
	    } else {
	        $this->setView('Lock/locked.tpl', 'tao');
	    }
	}
public function locked()
    {
        $this->defaultData();
	    $resource = $this->getResource($this->getRequestParameter('id'));
	    $lockData = LockManager::getImplementation()->getLockData($resource);

	    $this->setData('topclass-label',
	        $this->hasRequestParameter('topclass-label') ? $this->getRequestParameter('topclass-label') : __('Resource')
        );

	    if (AclProxy::hasAccess($this->getSession()->getUser(), __CLASS__, 'forceRelease', array('uri' => $resource->getUri()))) {
	        $this->setData('id', $resource->getUri());
            $this->setData('forceRelease', true);
	    }

	    $this->setData('lockDate', $lockData->getCreationTime());
	    $this->setData('ownerHtml', UserHelper::renderHtmlUser($lockData->getOwnerId()));

	    if ($this->hasRequestParameter('view') && $this->hasRequestParameter('ext')) {
	        $this->setView($this->getRequestParameter('view'), $this->getRequestParameter('ext'));
	    } else {
	        $this->setView('Lock/locked.tpl', 'tao');
	    }
	}
public function locked ( ) { $ this -> defaultData ( ) ; $ resource = $ this -> getResource ( $ this -> getRequestParameter ( 'id' ) ) ; $ lockData = LockManager :: getImplementation ( ) -> getLockData ( $ resource ) ; $ this -> setData ( 'topclass-label' , $ this -> hasRequestParameter ( 'topclass-label' ) ? $ this -> getRequestParameter ( 'topclass-label' ) : __ ( 'Resource' ) ) ; if ( AclProxy :: hasAccess ( $ this -> getSession ( ) -> getUser ( ) , __CLASS__ , 'forceRelease' , array ( 'uri' => $ resource -> getUri ( ) ) ) ) { $ this -> setData ( 'id' , $ resource -> getUri ( ) ) ; $ this -> setData ( 'forceRelease' , true ) ; } $ this -> setData ( 'lockDate' , $ lockData -> getCreationTime ( ) ) ; $ this -> setData ( 'ownerHtml' , UserHelper :: renderHtmlUser ( $ lockData -> getOwnerId ( ) ) ) ; if ( $ this -> hasRequestParameter ( 'view' ) && $ this -> hasRequestParameter ( 'ext' ) ) { $ this -> setView ( $ this -> getRequestParameter ( 'view' ) , $ this -> getRequestParameter ( 'ext' ) ) ; } else { $ this -> setView ( 'Lock/locked.tpl' , 'tao' ) ; } }
actions that get prevented by a lock are forwareded to this action
parameter view is currently ignored
actions that get prevented by a lock are forwareded to this action parameter view is currently ignored