library vendi-shared-utils
Helper class shared across all Vendi-controlled properties
vendi-advertising/vendi-shared-utils
Helper class shared across all Vendi-controlled properties
- Monday, June 19, 2017
- by cjhaas
- Repository
- 1 Watchers
- 1 Stars
- 271 Installations
- PHP
- 3 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 4 Versions
- 3 % Grown
Utility class generally for HTTP.
, (*1)
NOTE: Do not modify any methods in this class ever. You can add new methods as needed but there is a lot of code the depends on this functioning in a specific fashion and since this is a shared class you are not guarenteed to have this specific class actually loaded., (*2)
To clarify the above, this class is intended to be used by multiple plugins and there is no guarantee of load order. If you add a new method to this class you should grep the server for other installs and add code to those, too, since you don't know if your code will load first., (*3)
Any additional methods to this class MUST work without fail and can have zero dependencies upon other code., (*4)
History:
5.0.4
- Bumped PHP minimum requirement to 7.1 to make PHP Unit happy
- Versions between the 5.0.0 release and this were just me fighting stupid little things.
5.0.0
- Removed
fs_utils
, stay on 4.x if you need this still
4.0.0
- Bumped PHP minimum requirement to 7.0
- Added
fs_utils
:
create_random_temp_dir
combine_paths_with_file
combine_paths
mkdir
3.1.0
- Remove
unparse_url()
which was from a different project.
- Finished documenting everything.
3.0.5
- Added
get_value_multiple_sources()
.
- Fixed documentation errors from copy and pasting.
3.0.4
- Only trim() if the value is a string.
2.1.0
- Allow setting custom POST/GET/COOKIE/SERVER on static fields of class. If set they will be used in place of the global $_ XYZ values. Also added
reset_all_custom_arrays()
to erase these values. These changes should be 100% backwards compatible.
2.0.1
2.0.0
- Rewrite of previous code into this namesapce