1 | <?php |
||
37 | class ProcessRepository extends AbstractRepository |
||
38 | { |
||
39 | /** |
||
40 | * @var string |
||
41 | */ |
||
42 | protected $tableName = 'tx_crawler_process'; |
||
43 | |||
44 | /** |
||
45 | * This method is used to find all cli processes within a limit. |
||
46 | * |
||
47 | * @param string $orderField |
||
48 | * @param string $orderDirection |
||
49 | * @param integer $itemCount |
||
50 | * @param integer $offset |
||
51 | * @param string $where |
||
52 | * |
||
53 | * @return ProcessCollection |
||
54 | */ |
||
55 | 7 | public function findAll($orderField = '', $orderDirection = 'DESC', $itemCount = null, $offset = null, $where = '') |
|
85 | |||
86 | /** |
||
87 | * This method is used to count all processes in the process table. |
||
88 | * |
||
89 | * @param string $where Where clause |
||
90 | * |
||
91 | * @return integer |
||
92 | */ |
||
93 | 5 | public function countAll($where = '1 = 1') |
|
97 | |||
98 | /** |
||
99 | * Returns the number of active processes. |
||
100 | * |
||
101 | * @return integer |
||
102 | */ |
||
103 | 1 | public function countActive() |
|
107 | |||
108 | /** |
||
109 | * Returns the number of processes that live longer than the given timestamp. |
||
110 | * |
||
111 | * @param integer $ttl |
||
112 | * |
||
113 | * @return integer |
||
114 | */ |
||
115 | 1 | public function countNotTimeouted($ttl) |
|
119 | |||
120 | /** |
||
121 | * Get limit clause |
||
122 | * |
||
123 | * @param integer $itemCount |
||
124 | * @param integer $offset |
||
125 | * |
||
126 | * @return string |
||
127 | */ |
||
128 | 11 | public static function getLimitFromItemCountAndOffset($itemCount, $offset) |
|
136 | |||
137 | /** |
||
138 | * @return void |
||
139 | */ |
||
140 | public function deleteProcessesMarkedAsDeleted() |
||
144 | } |
||
145 |
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.