/**
  * @group issue18073
  * @link http://issues.ez.no/18073
  */
 public function testUnauthorizedContentByNode()
 {
     $this->setExpectedException('ezpContentAccessDeniedException');
     // Let's take content node #5 / object #4 (users) as unauthorized content for anonymous user
     $unauthorizedNodeID = 5;
     $content = ezpContent::fromNode(eZContentObjectTreeNode::fetch($unauthorizedNodeID));
 }
Example #2
0
 /**
  * Runs a content repository query using a given set of criteria
  *
  * @param ezpContentCriteria $criteria
  * @return ezpContentList
  */
 public static function query(ezpContentCriteria $criteria)
 {
     $fetchParams = self::translateFetchParams($criteria);
     $nodes = eZContentObjectTreeNode::subTreeByNodeID($fetchParams->params, $fetchParams->rootNodeId);
     $return = array();
     foreach ($nodes as $node) {
         $return[] = ezpContent::fromNode($node);
     }
     return $return;
 }