Пример #1
0
 /**
  * @return Dimension[]
  */
 public function getDimensions()
 {
     $dimensions = new \AppendIterator();
     $set = $this->set;
     foreach ($this->set->getArcsFromConcept($this->concept) as $arc) {
         if ($arc->getArcRole() == "http://xbrl.org/int/dim/arcrole/hypercube-dimension" && $arc instanceof Definition\Arc) {
             $dimensions->append(new \ArrayIterator(array_map(function (NamespaceId $id) use($set) {
                 return new Dimension($set, $set->getConcept($id));
             }, $arc->getToConcepts())));
         }
     }
     return $dimensions;
 }
Пример #2
0
 /**
  * @return Set
  */
 private function getSet()
 {
     $set = new Set();
     $set->import(__DIR__ . '/ca-gaap-pfs-2007-01-19/', 'ca-gaap-pfs-2007-01-19.xsd');
     return $set;
 }