$instance
$instance : mixed
Public static variable to hold the single instance of the class.
Class MainWP_Client_Report_Base
MainWP Client Reports extension handler, extened by the MainWP_Client_Report class.
get_stream_others_tokens(array $records, array $other_tokens, array $skip_records) : array
Get the Stream other tokens.
array | $records | An array containg actions records. |
array | $other_tokens | An array containing other tokens. |
array | $skip_records | An array containing skipped records. |
Other tokens data.
get_stream_sections_data(array $records, array $sections, array $skip_records) : array
Get the Stream sections data.
array | $records | An array containg actions records. |
array | $sections | An array containing sections. |
array | $skip_records | An array containing skipped records. |
Sections data.
get_other_tokens_data(array $records, array $tokens, array $skip_records) : array
Get the other tokens data.
array | $records | An array containg actions records. |
array | $tokens | An array containg the tokens list. |
array | $skip_records | An array containg records to skip. |
An array containg the tokens values.
get_section_loop_data(object $records, array $tokens, string $section, array $skip_records = array()) : array
Get the section loop data.
object | $records | Object containng reports records. |
array | $tokens | An array containing report tokens. |
string | $section | Section name. |
array | $skip_records | Records to skip. |
Section loop records.
get_section_loop_records(object $records, array $tokens, string $connector, string $context, string $action, array $skip_records) : array
Get the section loop records.
object | $records | Object containng reports records. |
array | $tokens | An array containing report tokens. |
string | $connector | Record connector. |
string | $context | Record context. |
string | $action | Record action. |
array | $skip_records | Records to skip. |
Loops.
get_section_token_value(object $record, string $data, string $context, string $token) : array
Get the section token value.
object | $record | Object containing the record data. |
string | $data | Data to process. |
string | $context | Record context. |
string | $token | Requested token. |
Token value.
get_other_tokens_count(object $records, string $connector, string $context, string $action, array $skip_records, array $backups_created_time_to_fix) : integer
Get the other tokens count.
object | $records | Object containng reports records. |
string | $connector | Record connector. |
string | $context | Record context. |
string | $action | Record action. |
array | $skip_records | Records to skip. |
array | $backups_created_time_to_fix | Backups created time. |
The count number.
get_section_loop_token_values(object $record, string $context, array $tokens) : array
Get the section loop token values.
object | $record | Object containing the record data. |
string | $context | Record context. |
array | $tokens | An array containg the report tokens. |
Token values.
get_author_data_token_value(object $record, string $connector, string $context, string $data) : string
Get the author data token value.
object | $record | Object containing the record data. |
string | $connector | Record connector. |
string | $context | Record context. |
string | $data | Data to process. |
Author data token value.
get_result_data_token_value(object $record, string $context, string $data) : string
Get the result data token value.
object | $record | Object containing the record data. |
string | $context | Record context. |
string | $data | Data to process. |
Result data token value.