-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjoin.php
More file actions
38 lines (38 loc) · 1018 Bytes
/
Copy pathjoin.php
File metadata and controls
38 lines (38 loc) · 1018 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
namespace pLinq;
class Join {
public $LeftAs;
public $RightAs;
public $JoinFields;
public $JoinAlias;
public function where($conditions) {
$where = new \pLinq\Where();
$where->Other = $this;
$where->Conditions = $conditions;
return $where;
}
public function join($toJoin, $joinFields, $joinAlias = null) {
$join = new \pLinq\Join();
$join->LeftAs = $this;
$join->RightAs = $toJoin;
$join->JoinFields = $joinFields;
$join->JoinAlias = $joinAlias;
return $join;
}
public function groupBy($fields) {
$group = new \pLinq\Group();
$group->Other = $this;
$group->Fields = $fields;
return $group;
}
public function orderBy($fields) {
$order = new \pLinq\Order();
$order->Fields = $fields;
$order->Other = $this;
return $order;
}
public function select($fields) {
return new \pLinq\Select($this, $fields);
}
}
?>