Exemple #1
0
 /**
  * @param Connection $db
  * @param Cube $cube
  * @return DB\Cube
  */
 public static function getCube(Connection $db, Cube $cube)
 {
     if (empty(self::$cubes[$cube->getName()])) {
         self::$cubes[$cube->getName()] = new DB\Cube($db, $cube);
     }
     return self::$cubes[$cube->getName()];
 }
Exemple #2
0
 public function get()
 {
     return $this->cube->get();
 }