Browse Source

add missing @deprecated annotation to legacy classes

tags/v8.0.0alpha1
Jörn Friedrich Dreyer 9 years ago
parent
commit
799fb46927

+ 2
- 0
lib/private/legacy/appconfig.php View File

@@ -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 {
/**

+ 2
- 0
lib/private/legacy/config.php View File

@@ -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 {


+ 3
- 0
lib/private/legacy/log.php View File

@@ -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;


+ 2
- 1
lib/private/legacy/preferences.php View File

@@ -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;
/**

+ 1
- 0
lib/private/legacy/search.php View File

@@ -22,6 +22,7 @@

/**
* provides an interface to all search providers
*
* @deprecated use \OCP\ISearch / \OC\Search instead
*/
class OC_Search {

+ 1
- 0
lib/private/legacy/search/provider.php View File

@@ -19,6 +19,7 @@

/**
* Class OC_Search_Provider
*
* @deprecated use \OCP\Search\Provider instead
*/
abstract class OC_Search_Provider extends \OCP\Search\Provider {

+ 3
- 0
lib/private/legacy/search/provider/file.php View File

@@ -17,6 +17,9 @@
*
*/

/**
* @deprecated use \OC\Search\Provider\File instead
*/
class OC_Search_Provider_File extends \OC\Search\Provider\File {

}

+ 3
- 1
lib/private/legacy/search/result.php View 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]'

+ 5
- 0
lib/private/legacy/updater.php View File

@@ -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…
Cancel
Save