add missing @deprecated annotation to legacy classes
This commit is contained in:
parent
c1102b1671
commit
799fb46927
9 changed files with 22 additions and 2 deletions
|
@ -24,6 +24,8 @@
|
|||
/**
|
||||
* This class provides an easy way for apps to store config values in the
|
||||
* database.
|
||||
*
|
||||
* @deprecated use \OC::$server->getAppConfig() to get an \OCP\IAppConfig instance
|
||||
*/
|
||||
class OC_Appconfig {
|
||||
/**
|
||||
|
|
|
@ -37,6 +37,8 @@
|
|||
/**
|
||||
* This class is responsible for reading and writing config.php, the very basic
|
||||
* configuration file of ownCloud.
|
||||
*
|
||||
* @deprecated use \OC::$server->getConfig() to get an \OCP\Config instance
|
||||
*/
|
||||
class OC_Config {
|
||||
|
||||
|
|
|
@ -14,6 +14,9 @@
|
|||
*/
|
||||
|
||||
OC_Log::$object = new \OC\Log();
|
||||
/**
|
||||
* @deprecated use \OC::$server->getLogger() to get an \OCP\ILogger instance
|
||||
*/
|
||||
class OC_Log {
|
||||
public static $object;
|
||||
|
||||
|
|
|
@ -21,10 +21,11 @@
|
|||
*
|
||||
*/
|
||||
|
||||
OC_Preferences::$object = new \OC\Preferences(OC_DB::getConnection());
|
||||
/**
|
||||
* This class provides an easy way for storing user preferences.
|
||||
* @deprecated use \OC\Preferences instead
|
||||
*/
|
||||
OC_Preferences::$object = new \OC\Preferences(OC_DB::getConnection());
|
||||
class OC_Preferences{
|
||||
public static $object;
|
||||
/**
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
|
||||
/**
|
||||
* provides an interface to all search providers
|
||||
*
|
||||
* @deprecated use \OCP\ISearch / \OC\Search instead
|
||||
*/
|
||||
class OC_Search {
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
/**
|
||||
* Class OC_Search_Provider
|
||||
*
|
||||
* @deprecated use \OCP\Search\Provider instead
|
||||
*/
|
||||
abstract class OC_Search_Provider extends \OCP\Search\Provider {
|
||||
|
|
|
@ -17,6 +17,9 @@
|
|||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @deprecated use \OC\Search\Provider\File instead
|
||||
*/
|
||||
class OC_Search_Provider_File extends \OC\Search\Provider\File {
|
||||
|
||||
}
|
||||
|
|
|
@ -17,8 +17,10 @@
|
|||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @deprecated use \OCP\Search\Result instead
|
||||
*/
|
||||
class OC_Search_Result extends \OCP\Search\Result {
|
||||
|
||||
/**
|
||||
* Create a new search result
|
||||
* @param string $id unique identifier from application: '[app_name]/[item_identifier_in_app]'
|
||||
|
|
|
@ -6,6 +6,11 @@
|
|||
* See the COPYING-README file.
|
||||
*/
|
||||
|
||||
/**
|
||||
* provides an interface to all search providers
|
||||
*
|
||||
* @deprecated use \OC\Updater instead
|
||||
*/
|
||||
class OC_Updater {
|
||||
public static function check() {
|
||||
$updater = new \OC\Updater();
|
||||
|
|
Loading…
Reference in a new issue