Multiple() public static method

public static Multiple ( array $Expressions ) : ReviveColumnExpression
$Expressions array
return ReviveColumnExpression
Beispiel #1
0
 public function trim(&$MappedName, array &$ArgumentExpressions, $Direction = 'BOTH')
 {
     $MappedName = 'TRIM';
     $TrimCharacters = isset($ArgumentExpressions[1]) ? $ArgumentExpressions[1] : Expression::Constant(" \t\n\r\v");
     if (!$TrimCharacters instanceof EE\ConstantExpression || strlen($TrimCharacters->GetValue()) !== 1) {
         throw new PlatformException('Mysql does not support trimming a set of characters');
     }
     $ArgumentExpressions = [Expression::Multiple([Expression::Keyword($Direction), $TrimCharacters, Expression::Keyword('FROM'), $ArgumentExpressions[0]])];
 }