Browse Source

Deprecate the method and warn against using it

tags/v9.0beta1
Joas Schilling 8 years ago
parent
commit
ef73aedd7e
2 changed files with 4 additions and 0 deletions
  1. 2
    0
      lib/private/backgroundjob/joblist.php
  2. 2
    0
      lib/public/backgroundjob/ijoblist.php

+ 2
- 0
lib/private/backgroundjob/joblist.php View File

* get all jobs in the list * get all jobs in the list
* *
* @return IJob[] * @return IJob[]
* @deprecated 9.0.0 - This method is dangerous since it can cause load and
* memory problems when creating too many instances.
*/ */
public function getAll() { public function getAll() {
$query = $this->connection->getQueryBuilder(); $query = $this->connection->getQueryBuilder();

+ 2
- 0
lib/public/backgroundjob/ijoblist.php View File

* *
* @return \OCP\BackgroundJob\IJob[] * @return \OCP\BackgroundJob\IJob[]
* @since 7.0.0 * @since 7.0.0
* @deprecated 9.0.0 - This method is dangerous since it can cause load and
* memory problems when creating too many instances.
*/ */
public function getAll(); public function getAll();



Loading…
Cancel
Save