$enabled_pagespeed
$enabled_pagespeed :
Class MainWP_Live_Reports()
Private static variable to hold the buffer.
managesite_backup(array $website, array $args, array $information) : mixed
Manage child site backup.
array | $website | Child site array. |
array | $args | Backup arguments array. |
array | $information | Backup status information array. |
The filtered value after all hooked functions are applied to it.
managesite_schedule_backup(array $website, array $args, string $backupResult) : boolean
Manage child site schedualed backups.
array | $website | Child site. |
array | $args | Backup type. full|db. |
string | $backupResult | Backup results. error|success. |
true|false Stores in class variables.
cal_schedule_nextsend(mixed $schedule, mixed $start_recurring_date, integer|string $scheduleLastSend) : string
Schedule when to send the next report.
mixed | $schedule | Schedule type. Options are: daily, weekly, biweekly, monthly, quarterly, twice_a_year. |
mixed | $start_recurring_date | Recuring report start date. |
integer|string | $scheduleLastSend | 0|start_recurring_date. |
$next_report_date_to Date to send next report.
calc_next_schedule_send_date(mixed $recurring_date, mixed $lastSend, integer $monthSteps) : string
Calculate next schedualed send date.
mixed | $recurring_date | Schedualed recurring start date & time. |
mixed | $lastSend | Date & time of last sent report. |
integer | $monthSteps | Number of months to use in calculation. Options: 3|6|12. |
When to send next report. Returns a timestamp on success. FALSE on failure 2020-month-day 23:59:59 ( Y-m-d 23:59:59 ).
delete_attach_files(array $files, mixed $dir) : boolean
Delete attatched files.
array | $files | Array of files to delete. |
mixed | $dir | Directory files are located. |
Returns TRUE on success or FALSE on failure.
None found |
handle_upload_files(mixed $file_input, mixed $dest_dir) : array
Upload files handler.
mixed | $file_input | File to upload. |
mixed | $dest_dir | Destination directory. |
$output Array of results.
None found |
gen_report_content(array $reports, boolean $combine_report = false) : string
Generate report content.
array | $reports | Reports data. |
boolean | $combine_report | Whether or not to combine the reports. Default: false. |
Report content HTML.
None found |
do_filter_content(mixed $content) : mixed
Filter content.
mixed | $content | Content to filter. |
$content Return the same content.
None found |
filter_report(array $report, array $allowed_tokens) : array
Filter report.
array | $report | Report data. |
array | $allowed_tokens | Allowed report tokens. |
$filtered_reports Array of filtered reports.
None found |
filter_report_website(array $report, object $website, array $allowed_tokens = array()) : array
Filter child site report.
array | $report | Report data. |
object | $website | Child site data. |
array | $allowed_tokens | Allowed report tokens. |
$output Filtered child site report.
None found |
section_mark_header(array $matches) : string
Header section.
array | $matches | Matches. |
Report Header html.
None found |
section_mark_body(array $matches) : string
Report body section.
array | $matches | Matches. |
Report Body html.
None found |
section_mark_footer(array $matches) : string
Report footer section.
array | $matches | Matches. |
Report footer html.
None found |
sucuri_scan_done(integer $website_id, mixed $scan_status, array $data) : mixed
Sucuri scan content.
integer | $website_id | Child site ID. |
mixed | $scan_status | Sucuri scan status. |
array | $data | Scan data. |
The filtered value after all hooked functions are applied to it.
None found |
replace_content(mixed $content, mixed $tokens, mixed $replace_tokens) : string
Replace report content.
mixed | $content | Content to replace. |
mixed | $tokens | Tokens to replace. |
mixed | $replace_tokens | Token replacing with. |
$content This function returns a string or an array with the replaced values.
None found |
replace_section_content(mixed $content, mixed $tokens, mixed $replace_tokens) : string
Replace section content.
mixed | $content | Content to replace. |
mixed | $tokens | Tokens to replace. |
mixed | $replace_tokens | Token replacing with. |
This function returns a string with the replaced values.
None found |
parse_report_content(array $content, array $replaceTokensValues, array $allowed_tokens) : array
Parse report content.
array | $content | Report content to parse. |
array | $replaceTokensValues | Tokens to replace. |
array | $allowed_tokens | Allowed tokens. |
This function returns an array with the replaced values.
None found |
remove_section_tokens(array $content) : array
Remove section tokens.
array | $content | Report content. |
This function returns an array with the removed values.
None found |
ga_data(integer $site_id, mixed $start_date, mixed $end_date, boolean $chart = false) : array
Method ga_data()
Google Analytics data.
integer | $site_id | Child site ID. |
mixed | $start_date | Report shorraytart date. |
mixed | $end_date | Report end date. |
boolean | $chart | Whether or not to show the data chart. Default: false. |
$output This function returns an array with the google analytics data.
None found |
piwik_data(integer $site_id, mixed $start_date, mixed $end_date) : array|boolean
Piwiki report data.
integer | $site_id | Child site ID. |
mixed | $start_date | Report Start date. |
mixed | $end_date | Report End date. |
$output This function returns an array of data or FALSE on failer.
None found |
aum_data(integer $site_id, mixed $start_date, mixed $end_date) : array|boolean
Advanced Uptime Monitor report data.
integer | $site_id | Child site ID. |
mixed | $start_date | Report start date. |
mixed | $end_date | Report end date. |
$output This function returns an array of data or FALSE on failer.
None found |
woocomstatus_data(integer $site_id, mixed $start_date, mixed $end_date) : array|boolean
Woocomerce status report data.
integer | $site_id | Child site ID. |
mixed | $start_date | Report start date. |
mixed | $end_date | Report end date. |
$output This function returns an array of data or FALSE on failer.
None found |
pagespeed_tokens(integer $site_id, mixed $start_date, mixed $end_date) : array|boolean
Method pagespeed_tokens()
Google pagespeed tokens report data.
integer | $site_id | Child site ID. |
mixed | $start_date | Report Start date. |
mixed | $end_date | Report End date. |
$data This function returns an array of data or FALSE on failer.
None found |
brokenlinks_tokens(integer $site_id, mixed $start_date, mixed $end_date) : array|boolean
Broken links report data.
integer | $site_id | Child site ID. |
mixed | $start_date | Report Start date. |
mixed | $end_date | Report End date. |
$data This function returns an array of data or FALSE on failer.
None found |
sec2hms(integer $sec, boolean $padHours = false) : string
Convert seconds to Hours:Minutes.
integer | $sec | Time in seconds. |
boolean | $padHours | Hpurs to pad. |
$hms Time in Hours:Minutes.
None found |
fetch_stream_data(object $website, array $report, array $sections, array $tokens) : array
Method fetch_stream_data()
object | $website | Child Site data. |
array | $report | Report data. |
array | $sections | Sections to show. |
array | $tokens | Tokens to show. |
$information or error.
None found |
manage_site_token(object $site)
Manage child site report data.
object | $site | Object containing the website information. |
None found |
update_site_update_tokens(integer $websiteId)
Update child site report update data.
integer | $websiteId | Child site ID. |
None found |
delete_site_delete_tokens(object $website)
Delete child site delete tokens.
object | $website | Object containing the website information. |
None found |
format_stats_values(string $value, boolean $round = false, boolean $perc = false, boolean $showAsTime = false) : string
Format stats values.
string | $value | Value to format. |
boolean | $round | Whether to round. Default: false. |
boolean | $perc | Whether to conver to percentage. Default: false. |
boolean | $showAsTime | Whether to convert to time. Default: false. |
$value Converted value.
None found |