L2jBrasil/L2JPHP

Filterbuilder, where cozido com badatas

Opened this issue · 0 comments

Filterbuilder é um construtor de where, de forma dinâmica, deve ser capaz de utilizar das mesmas abstrações dos models de forma que padronize os nomes das colunas.

<?php

  $FilterFactory = new FilterFactory();
  $FilterFactory->add("accessLevel", ">", 100, "int");


 $where = $FilterFactory->cook(); //Instancia de CookedWhere

$CharactersModel = \L2jBrasil\L2JPHP\ModelFactory::build('Players/Characters'); 
$CharactersModel->select(['*'])
   ->where($where->getWhere())
//   ->having($where->getHaving());