Esempio n. 1
0
 public function isComplete()
 {
     $complete = parent::isComplete() && isset($this->sourceDataset) && $this->sourceDataset->isComplete();
     for ($i = 0, $count = count($this->dimensions); $complete && $i < $count; $i++) {
         $dimension = $this->dimensions[$i];
         $complete = $dimension->isComplete();
     }
     if ($complete) {
         foreach ($this->measures as $measure) {
             if ($measure->isComplete() !== TRUE) {
                 return FALSE;
             }
         }
     }
     return $complete;
 }
    public function isComplete() {
        $complete = parent::isComplete() && isset($this->factsDataset) && $this->factsDataset->isComplete();

        if (isset($this->dimensions)) {
            reset($this->dimensions);
            while ($complete && (list($index, $dimension) = each($this->dimensions))) {
                $complete = $dimension->isComplete();
            }
        }

        if ($complete) {
            foreach ($this->measures as $measure) {
                if ($measure->isComplete() !== TRUE) {
                    return FALSE;
                }
            }
        }

        return $complete;
    }
 public function isComplete() {
     return parent::isComplete() && (!isset($this->datasetName) || (isset($this->dataset) && $this->dataset->isComplete()));
 }