| 1 | <?php |
||
| 10 | class Specification implements ISpecificationCriteria |
||
| 11 | { |
||
| 12 | |||
| 13 | protected $where = []; |
||
| 14 | |||
| 15 | protected $limit = 0; |
||
| 16 | |||
| 17 | protected $ofset = 0; |
||
| 18 | |||
| 19 | protected $joins = []; |
||
| 20 | |||
| 21 | protected $order = []; |
||
| 22 | |||
| 23 | protected $manualJoins = []; |
||
| 24 | |||
| 25 | protected $group = null; |
||
| 26 | |||
| 27 | protected $manualWheres = []; |
||
| 28 | |||
| 29 | protected $whereType = 'AND'; |
||
| 30 | |||
| 31 | protected $manualSelect; |
||
| 32 | |||
| 33 | |||
| 34 | static public function create(){ |
||
| 37 | |||
| 38 | function getManualSelect() |
||
| 42 | |||
| 43 | function setManualSelect($Select) |
||
| 48 | |||
| 49 | function getWhere() |
||
| 53 | |||
| 54 | function getLimit() |
||
| 58 | |||
| 59 | function getOfset() |
||
| 63 | |||
| 64 | function getJoins() |
||
| 68 | |||
| 69 | function getOrder() |
||
| 73 | |||
| 74 | function getManualJoins() |
||
| 78 | |||
| 79 | function getGroup() |
||
| 83 | |||
| 84 | function getManualWheres() |
||
| 88 | |||
| 89 | function getWhereType() |
||
| 93 | |||
| 94 | function setWhere($field, $value = false) |
||
| 104 | |||
| 105 | function setLimit($limit) |
||
| 110 | |||
| 111 | function setOfset($ofset) |
||
| 116 | |||
| 117 | function setJoins($joins) |
||
| 122 | |||
| 123 | function setOrder($order) |
||
| 128 | |||
| 129 | function setManualJoins($manualJoins) |
||
| 134 | |||
| 135 | function setGroup($group) |
||
| 140 | |||
| 141 | function setManualWheres($manualWheres) |
||
| 146 | |||
| 147 | function setWhereType($whereType) |
||
| 152 | |||
| 153 | /** |
||
| 154 | * Создание критериев |
||
| 155 | */ |
||
| 156 | public function getCriteria() |
||
| 160 | } |
||
| 161 |