phprs\ezsql\impls\WhereImpl::whereArgs PHP Method

whereArgs() public static method

public static whereArgs ( $context, $args )
    public static function whereArgs($context, $args)
    {
        self::conditionArgs($context, 'WHERE', $args);
    }

Usage Example

Example #1
0
 /**
  * whereArgs([
  *      'a'=>1, 
  *      'b'=>['IN'=>[1,2]]
  *      'c'=>['BETWEEN'=>[1,2]]
  *      'd'=>['<>'=>1]
  *      ])
  *      
  *      =>
  *      "WHERE a=1 AND b IN(1,2) AND c BETWEEN 1 AND 2 AND d<>1"
  * @param array $args  
  * @return\phprs\ezsql\rules\select\GroupByRule
  */
 public function whereArgs($args)
 {
     WhereImpl::whereArgs($this->context, $args);
     return new GroupByRule($this->context);
 }