Update list of deprecated methods

This commit is contained in:
Joas Schilling 2015-10-13 10:23:24 +02:00 committed by Morris Jobke
parent df1313d025
commit e2806b0ae8
2 changed files with 27 additions and 7 deletions

View File

@ -34,6 +34,8 @@ class DeprecationCheck extends AbstractCheck implements ICheck {
*/ */
protected function getLocalClasses() { protected function getLocalClasses() {
return [ return [
'OC_JSON' => '8.2.0',
'OCP\Config' => '8.0.0', 'OCP\Config' => '8.0.0',
'OCP\Contacts' => '8.1.0', 'OCP\Contacts' => '8.1.0',
'OCP\DB' => '8.1.0', 'OCP\DB' => '8.1.0',
@ -49,6 +51,15 @@ class DeprecationCheck extends AbstractCheck implements ICheck {
*/ */
protected function getLocalConstants() { protected function getLocalConstants() {
return [ return [
'OC_API::GUEST_AUTH' => '8.2.0',
'OC_API::USER_AUTH' => '8.2.0',
'OC_API::SUBADMIN_AUTH' => '8.2.0',
'OC_API::ADMIN_AUTH' => '8.2.0',
'OC_API::RESPOND_UNAUTHORISED' => '8.2.0',
'OC_API::RESPOND_SERVER_ERROR' => '8.2.0',
'OC_API::RESPOND_NOT_FOUND' => '8.2.0',
'OC_API::RESPOND_UNKNOWN_ERROR' => '8.2.0',
'OCP::PERMISSION_CREATE' => '8.0.0', 'OCP::PERMISSION_CREATE' => '8.0.0',
'OCP::PERMISSION_READ' => '8.0.0', 'OCP::PERMISSION_READ' => '8.0.0',
'OCP::PERMISSION_UPDATE' => '8.0.0', 'OCP::PERMISSION_UPDATE' => '8.0.0',
@ -80,8 +91,13 @@ class DeprecationCheck extends AbstractCheck implements ICheck {
*/ */
protected function getLocalMethods() { protected function getLocalMethods() {
return [ return [
'OC_L10N::get' => '8.2.0',
'OCP\Activity\IManager::publishActivity' => '8.2.0',
'OCP\App::register' => '8.1.0', 'OCP\App::register' => '8.1.0',
'OCP\App::addNavigationEntry' => '8.1.0', 'OCP\App::addNavigationEntry' => '8.1.0',
'OCP\App::getActiveNavigationEntry' => '8.2.0',
'OCP\App::setActiveNavigationEntry' => '8.1.0', 'OCP\App::setActiveNavigationEntry' => '8.1.0',
'OCP\AppFramework\Controller::params' => '7.0.0', 'OCP\AppFramework\Controller::params' => '7.0.0',
@ -115,8 +131,12 @@ class DeprecationCheck extends AbstractCheck implements ICheck {
'OCP\IAppConfig::setValue' => '8.0.0', 'OCP\IAppConfig::setValue' => '8.0.0',
'OCP\IAppConfig::deleteApp' => '8.0.0', 'OCP\IAppConfig::deleteApp' => '8.0.0',
'OCP\IDBConnection::createQueryBuilder' => '8.2.0',
'OCP\IDBConnection::getExpressionBuilder' => '8.2.0',
'OCP\ISearch::search' => '8.0.0', 'OCP\ISearch::search' => '8.0.0',
'OCP\IServerContainer::getCache' => '8.2.0',
'OCP\IServerContainer::getDb' => '8.1.0', 'OCP\IServerContainer::getDb' => '8.1.0',
'OCP\IServerContainer::getHTTPHelper' => '8.1.0', 'OCP\IServerContainer::getHTTPHelper' => '8.1.0',
@ -128,20 +148,21 @@ class DeprecationCheck extends AbstractCheck implements ICheck {
'OCP\User::logout' => '8.1.0', 'OCP\User::logout' => '8.1.0',
'OCP\User::checkPassword' => '8.1.0', 'OCP\User::checkPassword' => '8.1.0',
'OCP\Util::sendMail' => '8.1.0',
'OCP\Util::formatDate' => '8.0.0',
'OCP\Util::encryptedFiles' => '8.1.0', 'OCP\Util::encryptedFiles' => '8.1.0',
'OCP\Util::linkToRoute' => '8.1.0', 'OCP\Util::formatDate' => '8.0.0',
'OCP\Util::linkTo' => '8.1.0', 'OCP\Util::generateRandomBytes' => '8.1.0',
'OCP\Util::getServerHost' => '8.1.0', 'OCP\Util::getServerHost' => '8.1.0',
'OCP\Util::getServerProtocol' => '8.1.0', 'OCP\Util::getServerProtocol' => '8.1.0',
'OCP\Util::getRequestUri' => '8.1.0', 'OCP\Util::getRequestUri' => '8.1.0',
'OCP\Util::getScriptName' => '8.1.0', 'OCP\Util::getScriptName' => '8.1.0',
'OCP\Util::imagePath' => '8.1.0', 'OCP\Util::imagePath' => '8.1.0',
'OCP\Util::isValidFileName' => '8.1.0', 'OCP\Util::isValidFileName' => '8.1.0',
'OCP\Util::generateRandomBytes' => '8.1.0', 'OCP\Util::linkToRoute' => '8.1.0',
'OCP\Util::linkTo' => '8.1.0',
'OCP\Util::logException' => '8.2.0',
'OCP\Util::mb_str_replace' => '8.2.0', 'OCP\Util::mb_str_replace' => '8.2.0',
'OCP\Util::mb_substr_replace' => '8.2.0', 'OCP\Util::mb_substr_replace' => '8.2.0',
'OCP\Util::sendMail' => '8.1.0',
]; ];
} }
} }

View File

@ -1300,12 +1300,11 @@ class OC_Util {
/** /**
* Get URL content * Get URL content
* @param string $url Url to get content * @param string $url Url to get content
* @deprecated Use \OC::$server->getHTTPHelper()->getUrlContent($url);
* @throws Exception If the URL does not start with http:// or https:// * @throws Exception If the URL does not start with http:// or https://
* @return string of the response or false on error * @return string of the response or false on error
* This function get the content of a page via curl, if curl is enabled. * This function get the content of a page via curl, if curl is enabled.
* If not, file_get_contents is used. * If not, file_get_contents is used.
* @deprecated Use \OCP\Http\Client\IClientService * @deprecated Use \OC::$server->getHTTPHelper()->getUrlContent($url);
*/ */
public static function getUrlContent($url) { public static function getUrlContent($url) {
try { try {