예제 #1
0
 protected function getProjection()
 {
     if (empty($this->projection)) {
         $colNames = $this->quoteIdentifier($this->metadata->getColumnNames());
         return implode(", ", $colNames);
     } elseif (is_string($this->projection)) {
         return $this->projection;
     } else {
         $ps = array();
         foreach ($this->projection as $p) {
             $ps[] = $this->quoteIdentifier($p);
         }
         return implode(", ", $ps);
     }
 }