Exemplo n.º 1
0
 /**
  * Render a functionCall.
  *
  * @param string  $name
  * @param array   $params
  * @param boolean $dereferenced
  *
  * @return string
  */
 public function functionCall($name, $params = array(), $dereferenced = false)
 {
     if ($dereferenced) {
         foreach ($params as $key => $value) {
             $this->query->addParam($key, $value);
         }
         return $name . '()';
     } else {
         return $name . '(' . implode($params, ',') . ')';
     }
 }