friendica/src/Core
Roland Häder 4d39164c1e [WIP] Rewrite to Proxy class: (#5507)
* Rewrite to Proxy class:
- introduced new Friendica\Network\Proxy class for in exchange of proxy_*()
  functions
- moved also all PROXY_* constants there as Proxy::*
- removed now no longer needed mod/proxy.php loading as composer's auto-load
  will do this for us
- renamed those proxy_*() functions to better names:
  + proxy_init()           -> Proxy::init()         (public)
  + proxy_url()            -> Proxy::proxifyUrl()   (public)
  + proxy_parse_html()     -> Proxy::proxifyHtml()  (public)
  + proxy_is_local_image() -> Proxy::isLocalImage() (private)
  + proxy_parse_query()    -> Proxy::parseQuery()   (private)
  + proxy_img_cb()         -> Proxy::replaceUrl()   (private)

* Ops, need to set $a here ...

* CR request:
- moved Proxy class to Friendica\Module
- extended BaseModule

* Ops, no need for own instance of $a when self::getApp() is around.

* Proxy-rewrite:
- proxy_url() and proxy_parse_html() are both non-module functions (now
  methods)
- so they must be splitted into a seperate class
- also the SIZE_* and DEFAULT_TIME constants are both not relevant to module

* No instances from utility classes

* Fixed error:
- proxify*() is now located in `Friendica\Util\ProxyUtils`

* Moved back to original place, ops? How did they move here? Well, it was not
intended by me.

* Removed duplicate (left-over from split) constants and static array. Thank to
MrPetovan finding it.

* Renamed ProxyUtils -> Proxy and aliased it back to ProxyUtils.
2018-07-30 22:06:22 -04:00
..
Cache Rename DBA::is_result to DBA::isResult 2018-07-23 11:04:14 -04:00
Config Rename DBA::is_result to DBA::isResult 2018-07-23 11:04:14 -04:00
Console Rename DBA::is_result to DBA::isResult 2018-07-23 11:04:14 -04:00
Lock Rename DBA::is_result to DBA::isResult 2018-07-23 11:04:14 -04:00
Session Rename DBA::is_result to DBA::isResult 2018-07-23 11:04:14 -04:00
ACL.php Moved CONTACT_* constants to Friendica\Model\Contact class, lesser in global namespace (#5490) 2018-07-24 22:53:46 -04:00
Addon.php Some more notices (#5526) 2018-07-30 06:41:20 +02:00
Cache.php redesign of locking & caching 2018-06-28 22:57:17 +02:00
Config.php Continued: (#5508) 2018-07-26 22:27:28 -04:00
Console.php Added console command to manually archive contacts 2018-04-23 05:33:47 +00:00
Install.php Fix config mentions (no doc) 2018-07-16 19:38:14 -04:00
L10n.php Rename Friendica\Database\dba to Friendica\Database\DBA 2018-07-20 08:19:26 -04:00
Lock.php Fixings 2018-07-05 20:57:31 +02:00
NotificationsManager.php [WIP] Rewrite to Proxy class: (#5507) 2018-07-30 22:06:22 -04:00
PConfig.php Continued: (#5508) 2018-07-26 22:27:28 -04:00
Protocol.php Fix wrong SQL query syntax in Core\ACL 2018-03-08 04:42:07 -05:00
Session.php Add support for Memcached/Improve database cache 2018-03-04 23:13:19 -05:00
System.php Rework App modes 2018-07-16 19:38:15 -04:00
Theme.php Replace current_theme() and current_theme_url() calls 2018-04-28 18:37:25 -04:00
UserImport.php Rename dbesc to DBA::escape 2018-07-23 15:30:54 -04:00
Worker.php Issue 5467: Cron jobs hadn't been executed 2018-07-24 06:15:58 +00:00