Philipp Holzer
082634adbc
Moving from DBA to Database
2 years ago
Hypolite Petovan
070aa016e0
Update more PHPDoc, including in include/
2 years ago
Michael Vogel
dc3d2d5988
"dba" is now "DBA". This hadn't been respected at some places ( #5655 )
* "dba" is now "DBA". This hadn't been respected at some places
* Cleaning up unneeded stuff
3 years ago
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.
3 years ago
Hypolite Petovan
6141023640
Remove dbesc() and dba_timer() function declarations
3 years ago
Hypolite Petovan
4db98eb43d
Rename DBA::inArray to DBA::toArray
3 years ago
Hypolite Petovan
abbaaf5aa5
Rename DBA::clean_query to DBA::cleanQuery
3 years ago
Hypolite Petovan
910e832dc2
Rename DBA::any_value_fallback to DBA::anyValueFallback
3 years ago
Hypolite Petovan
af6dbc654f
Rename Friendica\Database\dba to Friendica\Database\DBA
3 years ago
Hypolite Petovan
72f32f90d1
Remove class \dba from include/dba
3 years ago
Michael Vogel
ece4d3f4fb
Issue 5407: Workers didn't start anymore ( #5409 )
3 years ago
Hypolite Petovan
c207f6d597
Remove remaining references to Config::get in include/dba
3 years ago
Hypolite Petovan
9396b05659
Revert using Config class in dba
3 years ago
Hypolite Petovan
9be9741562
Fix uses in include/dba
3 years ago
Hypolite Petovan
762a786611
Replace direct accesses to App->config by Config::get/set calls
3 years ago
Hypolite Petovan
7d8c45dde8
Remove dependency to App in dba::connect
- Remove timing (can be done centrally)
- Add charset parameter to dba::connect and dba::reconnect
3 years ago
Michael
69db696ab1
Improve test behaviour
3 years ago
Philipp Holzer
1ffe0cfd81
Added Lock Unittests & Bugfixings
Added Redis Lock Unittests
Added Memcached Lock Unittests
Fixed a bug in dba
Fixed a bug in RedisLock
3 years ago
Hypolite Petovan
0ee153e1bd
Fix Array to String conversion message for IN conditions
3 years ago
Michael
6e64091fc7
We now are using the native pdo mode
3 years ago
miqrogroove
c37a8cc661
Update dba.php
3 years ago
miqrogroove
150989ba99
Ensure IN() Conditions Never Mix Data Types
3 years ago
Michael
e1e28ba7c3
Better float detection
3 years ago
miqrogroove
c600ccad5c
Correct dba::close() To Match dba::p()
3 years ago
Michael
1b85b75563
Currently removed, needs more testing
3 years ago
Michael
261d7435c0
Check for floats and enable native prepares
3 years ago
Michael
5656c0564a
We don't need to look $is_int there
3 years ago
Michael
c1059875bc
This fixes the problem with mixed variables in queries
3 years ago
miqrogroove
759dfe6bb1
Allow for Integer Literals in PDO Database Driver
This should fix things like "LIMIT ?"
3 years ago
Michael
738644a006
Quit if database connection was lost during "e"
3 years ago
Michael
8584e09e12
Store the database credentials for reconnect
3 years ago
Michael
aa3f8ec09d
Force a database reconnection in the daemon to prevent lost connections
3 years ago
Michael
4874e589f1
New class function to fetch items
3 years ago
Michael
28f8beebfc
Workers can now be started exclusively from the daemon and other workers
3 years ago
Michael
de609e49f0
Improved logging
3 years ago
Michael
f8230badba
Avoid problems with better variable naming
3 years ago
Michael
1bce39120d
Reconnect after the connection had been lost.
3 years ago
Hypolite Petovan
b0155fe37b
Remove obsolete DNS test from include/dba
3 years ago
Michael
87b5e26063
Do a hard exit when the SQL connection went down
3 years ago
Pierre Rudloff
3195d6e125
Add API tests
3 years ago
Philipp Holzer
a97ad9dc42
Add Install Mode (Part 2)
- Added constants to class `App`
- Added global App-Mode to `dba:connect()` instead parameter `$install`
3 years ago
Philipp Holzer
d5b68cd146
Add a App-Mode with defined constants
- Normal Mode = 0
- Install Mode = 1
- Maintenance Mode = 2
Moved Install-Mode check to class `App`
Replaced all maintenance and install checks with $a->mode checks
3 years ago
Hypolite Petovan
a84477ed2d
Fix count() warning in include/dba.php
3 years ago
Hypolite Petovan
273dde508b
Add default value doc for options.cascade in dba::delete
3 years ago
Hypolite Petovan
0a026515bd
Add documentation for $options parameter in dba::delete
3 years ago
Hypolite Petovan
ba3f721524
Prevent side effect with cascade => false in dba::delete
3 years ago
Hypolite Petovan
18078ce7a4
Prevent infinite loop when a dbstructure_definition hook is orphan
- Add cascade option to dba::delete
- use cascade = false for orphan hook deletion
3 years ago
Tobias Diekershoff
f63be91bd5
Revert "Moved .htconfig.php file & extracted Install business logic"
3 years ago
Philipp Holzer
346697d771
Moved .htconfig file
Extracted install business functions to new Class `Install.php`
3 years ago
Marcus Müller
89ba3b78ff
[BUGFIX] DB: Remove host DNS_PTR check
DNS_PTR checks fail on some domains and result in the return value `false`, even if the domain is valid and reachable.
3 years ago