| @@ 38-45 (lines=8) @@ | ||
| 35 | * @param string $start Start date in a format accepted by strtotime() |
|
| 36 | * @param string $end End date in a format accepted by strtotime() |
|
| 37 | */ |
|
| 38 | public function __construct(Project $project, User $user, $namespace = 'all', $start = '', $end = '') |
|
| 39 | { |
|
| 40 | $this->project = $project; |
|
| 41 | $this->user = $user; |
|
| 42 | $this->namespace = $namespace; |
|
| 43 | $this->start = $start; |
|
| 44 | $this->end = $end; |
|
| 45 | } |
|
| 46 | ||
| 47 | /** |
|
| 48 | * Get the number of edits this user made using semi-automated tools. |
|
| @@ 52-64 (lines=13) @@ | ||
| 49 | * @param string $redirects One of 'noredirects', 'onlyredirects' or blank for both. |
|
| 50 | * @param int $offset Pagination offset. |
|
| 51 | */ |
|
| 52 | public function __construct( |
|
| 53 | Project $project, |
|
| 54 | User $user, |
|
| 55 | $namespace = 0, |
|
| 56 | $redirects = 'noredirects', |
|
| 57 | $offset = 0 |
|
| 58 | ) { |
|
| 59 | $this->project = $project; |
|
| 60 | $this->user = $user; |
|
| 61 | $this->namespace = $namespace === 'all' ? 'all' : (string)$namespace; |
|
| 62 | $this->redirects = $redirects; |
|
| 63 | $this->offset = $offset; |
|
| 64 | } |
|
| 65 | ||
| 66 | /** |
|
| 67 | * The project associated with this Pages instance. |
|