friendica/src/Worker
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
..
CheckVersion.php Ad missing use statements after dbesc conversion 2018-07-23 18:44:05 -04:00
CreateShadowEntry.php Transfer all item shadow functions to the item class 2018-01-16 22:23:19 +00:00
Cron.php Moved CONTACT_* constants to Friendica\Model\Contact class, lesser in global namespace (#5490) 2018-07-24 22:53:46 -04:00
CronJobs.php [WIP] Rewrite to Proxy class: (#5507) 2018-07-30 22:06:22 -04:00
DBClean.php Rename DBA::num_rows to DBA::numRows 2018-07-22 19:27:35 -04:00
DBUpdate.php Replace global $a with BaseObject::getApp() 2018-07-16 19:38:17 -04:00
Delivery.php Moved global PAGE_* to Profile class (#5500) 2018-07-27 19:25:57 -04:00
Directory.php Rename DBA::is_result to DBA::isResult 2018-07-23 11:04:14 -04:00
DiscoverPoCo.php Rename dbesc to DBA::escape 2018-07-23 15:30:54 -04:00
Expire.php Moved expiring of item content 2018-07-29 03:54:34 +00:00
ForkHook.php Replace global $a with BaseObject::getApp() 2018-07-16 19:38:17 -04:00
GProbe.php Rename dbesc to DBA::escape 2018-07-23 15:30:54 -04:00
Notifier.php Moved CONTACT_* constants to Friendica\Model\Contact class, lesser in global namespace (#5490) 2018-07-24 22:53:46 -04:00
OnePoll.php Moved CONTACT_* constants to Friendica\Model\Contact class, lesser in global namespace (#5490) 2018-07-24 22:53:46 -04:00
ProfileUpdate.php src Standards 2017-11-23 14:01:58 -05:00
PubSubPublish.php Rename DBA::is_result to DBA::isResult 2018-07-23 11:04:14 -04:00
Queue.php Moved global PAGE_* to Profile class (#5500) 2018-07-27 19:25:57 -04:00
RemoveContact.php Rename Friendica\Database\dba to Friendica\Database\DBA 2018-07-20 08:19:26 -04:00
SpoolPost.php Most functions now moved from include/items.php 2018-01-28 11:18:08 +00:00
TagUpdate.php Rename DBA::num_rows to DBA::numRows 2018-07-22 19:27:35 -04:00
UpdateGContact.php Rename dbesc to DBA::escape 2018-07-23 15:30:54 -04:00