Exemplo n.º 1
0
 /**
  * Check structure of cube
  */
 public function checkStructure()
 {
     foreach ($this->getDimensions() as $dimension) {
         $dimension->checkStructure();
     }
     parent::checkStructure();
     $this->checkSetter();
 }
Exemplo n.º 2
0
 /**
  * @param Connection $db
  * @param \OLAP\Cube $object
  * @param Base $sender
  */
 public function __construct(Connection $db, \OLAP\Cube $object, Base $sender = null)
 {
     parent::__construct($db, $object, $sender);
     $defaultDrill = null;
     $this->facts = [];
     foreach ($this->object()->getFacts() as $fact) {
         $class = Fact::class;
         if ($fact->isSpecial()) {
             $class = $this->getSpecialFact($fact);
         }
         if (!$defaultDrill && $fact->isDefaultDrill()) {
             $defaultDrill = $fact->getName();
         }
         $this->facts[$fact->getName()] = new $class($this->db(), $fact, $this);
     }
     $this->drill = $defaultDrill;
     $this->dataType = new Type($this->db(), $this->object()->getDataType());
 }
Exemplo n.º 3
0
 public function checkStructure()
 {
     parent::checkStructure();
     $this->checkSetter();
 }