\tmhUtilities
tmhUtilities
Helpful utility and Twitter formatting functions
- Author: themattharris
Synopsis
class tmhUtilities
{
- // constants
- const VERSION = '0.5.0';
- // methods
- public static the entify()
- public static the entify_with_options()
- public static string php_self()
- public static void is_cli()
- public static void pr()
- public static void auto_fix_time_request()
- public static the read_input()
- public static string read_password()
- public static true endswith()
Tasks
Line | Task |
---|---|
200 | this check is horrid but helps avoid requesting twice when the username and password are wrong |
Constants
Name | Value |
---|---|
VERSION | '0.5.0' |
Methods
public
- auto_fix_time_request() — Make an HTTP request using this library. This method is different to 'request' because on a 401 error it will retry the request.
- endswith() — Check if one string ends with another
- entify() — Entifies the tweet using the given entities element.
- entify_with_options() — Entifies the tweet using the given entities element, using the provided options.
- is_cli()
- php_self() — Returns the current URL. This is instead of PHP_SELF which is unsafe
- pr() — Debug function for printing the content of an object
- read_input() — Asks the user for input and returns the line they enter
- read_password() — Get a password from the shell.