WARNING
WARNING = 1
Class MainWP_Child_Server_Information
MainWP Child server information handler.
curlssl_compare(string $version, string $operator) : boolean|integer
Compare current cURL & SSL versions to required values.
string | $version | Required values to compare to. |
string | $operator | Comparison operator. |
When using the optional operator argument, the function will return TRUE if the relationship is the one specified by the operator, FALSE otherwise. Returns -1 if the first version is lower than the second, 0 if they are equal, and 1 if the second is lower.
check_mainwp_directory(string $message = '', string $path = '') : boolean
Check if MainWP Directory is writeable.
string | $message | Return message - Directory not found, Directory not writable, writeable. |
string | $path | MainWP directory path. |
TRUE if exists & writeable, FALSE if not.
check(string $pCompare, string $pVersion, string $pGetter, string $pExtraCompare = null, string $pExtraVersion = null, boolean $sizeCompare = false) : boolean|integer
Check Child Site system variables for any issues.
string | $pCompare | Comparison operator. |
string | $pVersion | Version to compare to. |
string | $pGetter | The method to grab the data with. |
string | $pExtraCompare | Extra comparison operator. |
string | $pExtraVersion | Extra version to compare to. |
boolean | $sizeCompare | Size to compare to. |
When using the optional operator argument, the function will return TRUE if the relationship is the one specified by the operator, FALSE otherwise. Returns -1 if the first version is lower than the second, 0 if they are equal, and 1 if the second is lower.
filesize_compare(string $value1, string $value2, string $operator = null) : boolean|integer
Compare filesizes.
string | $value1 | First value to compare. |
string | $value2 | Second value to compare. |
string | $operator | Comparison operator. |
When using the optional operator argument, the function will return TRUE if the relationship is the one specified by the operator, FALSE otherwise. Returns -1 if the first version is lower than the second, 0 if they are equal, and 1 if the second is lower.
render_directory_row(string $name, string $directory, string $check, string $result, string $passed)
Render the directroy check row.
string | $name | Check name. |
string | $directory | Directory to check. |
string | $check | Check condition. |
string | $result | Check result. |
string | $passed | Show correct label depending on passed status. |
render_row(string $config, string $compare, string $version, string $getter, string $extra_text = '', string $extra_compare = null, string $extra_version = null, boolean $size_compare = false)
Render the server information check row.
string | $config | Check name. |
string | $compare | Comparison operator. |
string | $version | Version for comparison. |
string | $getter | Function to call to handle comparison. |
string | $extra_text | Extra text to display in the row. |
string | $extra_compare | Additional comparison operator. |
string | $extra_version | Additional version to compare. |
boolean | $size_compare | Determies if size should be compared. |
render_row_sec(string $config, string $compare, string $version, string $getter, string $extra_text = '', string $extra_compare = null, string $extra_version = null, string $toolTip = null, string $whatType = null, string $errorType = self::WARNING)
Render the server information check secondary row.
string | $config | Check name. |
string | $compare | Comparison operator. |
string | $version | Version for comparison. |
string | $getter | Function to call to handle comparison. |
string | $extra_text | Extra text to display in the row. |
string | $extra_compare | Additional comparison operator. |
string | $extra_version | Additional version to compare. |
string | $toolTip | Tooltip to show. |
string | $whatType | What type. |
string | $errorType | Error type. |
render_last_lines(string $path, integer $line_count, integer $block_size = 512) : array
Render the error log last lines.
string | $path | Error log path. |
integer | $line_count | Line count. |
integer | $block_size | Block size. |
Selected number of error log records to show.