Merge pull request #10434 from owncloud/update_deprecation_doc

add missing @deprecated annotation to legacy classes
This commit is contained in:
Morris Jobke 2014-08-15 01:23:07 +02:00
commit e4595311b4
9 changed files with 22 additions and 2 deletions

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

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 {

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;

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

View File

@ -22,6 +22,7 @@
/**
* provides an interface to all search providers
*
* @deprecated use \OCP\ISearch / \OC\Search instead
*/
class OC_Search {

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 {

View File

@ -17,6 +17,9 @@
*
*/
/**
* @deprecated use \OC\Search\Provider\File instead
*/
class OC_Search_Provider_File extends \OC\Search\Provider\File {
}

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]'

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();