Beispiel #1
0
 /**
  * @return array
  */
 public function getTables()
 {
     if (!$this->tables) {
         $this->tables = $this->connection->getTables();
     }
     return $this->tables;
 }
Beispiel #2
0
 /**
  * @return array
  */
 public function getRows()
 {
     if (!$this->rows) {
         $this->rows = $this->connection->getRows($this->name);
     }
     return $this->rows;
 }
 /**
  * @return array
  */
 public function getTables()
 {
     if (!$this->tables) {
         $this->tables = $this->connection->getTables();
     }
     if (!$this->tables) {
         throw new \exception("Unable to retrieve any tables.");
     }
     return $this->tables;
 }