Beispiel #1
0
 /**
  * {@inheritdoc}
  */
 public function fields($table_alias, array $fields = array())
 {
     if (!$fields) {
         $table = $this->tables[$table_alias]['table'];
         if (!empty($this->databaseContents[$table])) {
             $fields = array_keys(reset($this->databaseContents[$table]));
         } else {
             throw new \Exception(SafeMarkup::format('All fields on empty table @table is not supported.', array('@table' => $table)));
         }
     }
     return parent::fields($table_alias, $fields);
 }