Timeline/TimelineBuilder.php
private function buildSelectQuery(TimelineProviderInterface $provider, $context, array $args)
    {
        $data = $provider->fetchQuery($context, $args);
        
        return sprintf(
                'SELECT %s AS id, '
                . '%s AS "date", '
                . "'%s' AS type "
                . 'FROM %s '
                . 'WHERE %s',
                $data['id'],
                $data['date'],
                $data['type'],
                $data['FROM'],
                $data['WHERE']);
    }
private function buildSelectQuery(TimelineProviderInterface $provider, $context, array $args)
    {
        $data = $provider->fetchQuery($context, $args);
        
        return sprintf(
                'SELECT %s AS id, '
                . '%s AS "date", '
                . "'%s' AS type "
                . 'FROM %s '
                . 'WHERE %s',
                $data['id'],
                $data['date'],
                $data['type'],
                $data['FROM'],
                $data['WHERE']);
    }
private function buildSelectQuery ( TimelineProviderInterface $ provider , $ context , array $ args ) { $ data = $ provider -> fetchQuery ( $ context , $ args ) ; return sprintf ( 'SELECT %s AS id, ' . '%s AS "date", ' . "'%s' AS type " . 'FROM %s ' . 'WHERE %s' , $ data [ 'id' ] , $ data [ 'date' ] , $ data [ 'type' ] , $ data [ 'FROM' ] , $ data [ 'WHERE' ] ) ; }
return the SQL SELECT query as a string,

@uses TimelineProfiderInterface::fetchQuery use the fetchQuery function
@param \Chill\MainBundle\Timeline\TimelineProviderInterface $provider
@param string $context
@param mixed[] $args
@return string
return the SQL SELECT query as a string