appendSource() public method

public appendSource ( Pinq\Queries\Common\ISource $source, $d = false )
$source Pinq\Queries\Common\ISource
Ejemplo n.º 1
0
 public function visitOperation(Segments\Operation $query)
 {
     $textMap = [Segments\Operation::APPEND => 'Append with: ', Segments\Operation::DIFFERENCE => 'The difference from: ', Segments\Operation::EXCEPT => 'Where not contained in: ', Segments\Operation::INTERSECT => 'The intersection with: ', Segments\Operation::UNION => 'The union with: ', Segments\Operation::WHERE_IN => 'Where contained in: '];
     $this->compilation->append($textMap[$query->getOperationType()]);
     $this->compilation->appendSource($query->getSource(), true);
     $this->compilation->appendLine();
 }
Ejemplo n.º 2
0
 public function visitRemoveValues(Operations\RemoveValues $operation)
 {
     $this->compilation->append('Remove the following values: ');
     $this->compilation->appendSource($operation->getSource());
 }