예제 #1
0
파일: TRecord.php 프로젝트: kiibe/linkERP
 /**
  * Creates a Repository with filter
  * @returns the TRepository object with a filter
  */
 public static function where($variable, $operator, $value, $logicOperator = TExpression::AND_OPERATOR)
 {
     $class = get_called_class();
     // get the Active Record class name
     $repository = new TRepository($class);
     // create the repository
     return $repository->where($variable, $operator, $value, $logicOperator);
 }