Example #1
0
 /**
  * @param Collection $coll
  */
 public function blackListCollection(Collection $coll)
 {
     //going to first element.
     $coll->rewind();
     $ptr = $coll;
     $head = $ptr->get('rdf:first');
     $next = $ptr->get('rdf:rest');
     $this->managementBlackList($coll->getUri());
     //putting all structure collection on a blacklist
     while ($head) {
         $this->managementBlackList($next->getUri());
         $head = $next->get('rdf:first');
         $next = $next->get('rdf:rest');
     }
     //and resetting pointer of collection
     $coll->rewind();
 }