-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgroup.php
More file actions
29 lines (29 loc) · 755 Bytes
/
Copy pathgroup.php
File metadata and controls
29 lines (29 loc) · 755 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
<?php
namespace pLinq;
class Group {
public $Other;
public $Fields;
public function select($fields) {
return new \pLinq\Select($this, $fields);
}
public function having($conditions) {
$having = new \pLinq\Having();
$having->Other = $this;
$having->Conditions = $conditions;
return $having;
}
public function limit($numberOfRows, $offset = 0) {
$limit = new \pLinq\Limit();
$limit->Offset = $offset;
$limit->Rows = $numberOfRows;
$limit->Other = $this;
return $limit;
}
public function orderBy($fields) {
$order = new \pLinq\Order();
$order->Fields = $fields;
$order->Other = $this;
return $order;
}
}
?>