[owncloud-devel] Removal of static methods from private OC_Helper

Morris Jobke morris at owncloud.com
Wed May 11 14:56:57 GMT 2016


Hi,

we just removed following static methods in the upcoming ownCloud 9.1:

OC_Helper::previewIcon
OC_Helper::publicPreviewIcon
OC_Helper::ellipsis

They are in the private namespace anyhow, but as the OC_Helper class is one of the oldest code pieces we want to inform you to check this in your code.

You could use the method linkToRoute from the IURLGenerator. Simply check out the code that was in place for these methods, as it shows how it should be used nowadays.

Beside that there are also methods available in the templates that do the same:

https://github.com/owncloud/core/blob/3333c4c0b9476eb35ac6a41727b06f628c6bda2d/lib/public/template.php#L177
https://github.com/owncloud/core/blob/3333c4c0b9476eb35ac6a41727b06f628c6bda2d/lib/public/template.php#L190

The PR that removes the above mentioned private methods could be found at https://github.com/owncloud/core/pull/24379

Thanks
Morris

--
ownCloud GmbH - owncloud.com

Your Data, Your Cloud, Your Way!

ownCloud GmbH, GF: Markus Rex, Holger Dyroff, Frank Karlitschek
Schloßäckerstrasse 26a, 90443 Nürnberg, HRB 28050 (AG Nürnberg)




More information about the Devel mailing list