reportController
extends expController
in package
This is the class expController
Tags
Table of Contents
- CUSTOM = 9
- FOREVER = 8
- LAST_MONTH = 3
- LAST_YEAR = 7
- PAST_24_HOURS = 0
- PAST_30_DAYS = 2
- PAST_365_DAYS = 6
- PAST_60_DAYS = 4
- PAST_7_DAYS = 1
- PAST_90_DAYS = 5
- $asset_path : mixed
- $baseclassname : mixed
- $basemodel_name : mixed
- $classinfo : mixed
- $codequality : mixed
- $config : mixed
- $filepath : mixed
- $loc : mixed
- $model_table : mixed
- $params : mixed
- $relative_viewpath : mixed
- $remove_configs : mixed
- $requires_login : mixed
- $rss_is_podcast : mixed
- $useractions : mixed
- $viewpath : mixed
- $add_permissions : mixed
- $classname : mixed
- $m_permissions : mixed
- $manage_permissions : mixed
- $now_ampm : mixed
- $now_date : mixed
- $now_hour : mixed
- $now_min : mixed
- $o : mixed
- $oneday : mixed
- $permissions : mixed
- $prev_ampm : mixed
- $prev_date : mixed
- $prev_hour : mixed
- $prev_min : mixed
- $quickrange : mixed
- $remove_permissions : mixed
- $tend : mixed
- $tstart : mixed
- __construct() : mixed
- __get() : null
- Generic magic method
- __isset() : bool
- Generic magic method
- __set() : mixed
- Generic magic method We MUST create/set non-existing properties for Exponent code to work
- __unset() : mixed
- Generic magic method
- abandoned_carts() : mixed
- Report on abandoned carts
- abandoned_carts_row() : mixed
- Report on abandoned carts in row format
- addContentToSearch() : int
- add module item or all items to search index
- aggregateWhereClause() : string
- The aggregateWhereClause function creates a sql where clause which also includes aggregated module content
- approve() : mixed
- approve module item
- author() : string
- author of module
- batch_export() : mixed
- A Product Report
- canExportData() : bool
- can this module export data?
- canHandleEAAS() : bool
- can this module export EAAS data?
- canImportData() : bool
- can this module import data?
- cart_summary() : mixed
- FIXME Purpose not known/incomplete
- categories() : mixed
- return all categories used by module's items
- checkPermissions() : mixed
- comments() : mixed
- return all comments used by module's items
- configure() : mixed
- Configure the module
- create() : mixed
- create an item in this module
- current_carts() : mixed
- Display report of currently active carts
- dashboard() : mixed
- Current Stats
- delete() : mixed
- delete item in module
- delete_In() : mixed
- delete module and all its items for backwards compat with old modules
- delete_instance() : mixed
- delete module, config, and all its items
- delete_search() : mixed
- remove all module items from search index
- description() : string
- description of module
- displayname() : string
- name of module
- download() : mixed
- Output report data for download
- downloadfile() : mixed
- download a file attached to item
- eaasConfig() : array<string|int, mixed>|bool
- returns info about Config template standard location is a folder named 'eaas' in the module's view folder with a model_name template
- eaasData() : array<string|int, mixed>
- returns module's EAAS data as an array of records
- edit() : mixed
- edit item in module, also used to copy items
- export_inventory() : mixed
- An Order Report
- export_odbc() : mixed
- An Order Report
- export_order_items() : mixed
- An Order Report
- export_status_report() : mixed
- An Order Report
- export_user_input_report() : mixed
- An Order Report
- generateOrderReport() : mixed
- Generate an orders report selection view from parameters
- generateProductReport() : mixed
- Generate an products report selection view from parameters
- getModels() : array<string|int, mixed>
- get the model(s) associated with this module
- getRSSContent() : array<string|int, mixed>
- get the module's items in an rss feed format
- hasContent() : bool
- does module have content (stored items) available?
- hasSources() : bool
- does module have sources available? or does it treat content globally
- hasViews() : bool
- does module have views available?
- isSearchable() : bool
- is module content searchable? should it be added to search index?
- manage() : mixed
- display module management view
- manage_ranks() : mixed
- rerank module items, called from ddrerank
- merge() : mixed
- merge/move aggregated item into this module
- meta_fb() : array<string|int, mixed>
- Returns Facebook og: meta data
- meta_rich() : null
- Returns rich snippet PageMap meta data
- meta_tw() : array<string|int, mixed>
- Returns Twitter twitter: meta data
- metainfo() : array<string|int, mixed>|bool
- get the metainfo for this module
- name() : string
- name of module for backwards compat with old modules
- order_report() : mixed
- Get parameters for an orders report
- payment_report() : mixed
- FIXME Purpose not known/incomplete
- permissions() : array<string|int, mixed>
- permission functions to aggregate a module's visible permissions based on add/remove permissions
- permissions_all() : array<string|int, mixed>
- permission functions to aggregate a module's permissions based on add/remove and manage permissions
- print_orders() : mixed
- An Order Report
- product_report() : mixed
- Get parameters for an products report
- productFeed() : mixed
- FIXME Purpose not known/incomplete
- pruge_abandoned_carts() : mixed
- Remove abandoned carts data
- requiresConfiguration() : bool
- does this module require configuration?
- rerank() : mixed
- rerank items in model
- rss() : mixed
- method to display an rss feed from this module
- saveconfig() : mixed
- save module configuration
- searchCategory() : string
- category of items searched in the module
- searchHit() : bool
- additional check for display of search hit
- searchName() : string
- type of items searched in the module
- show() : mixed
- default view for individual item
- show_payment_summary() : mixed
- An Order Report to show breakdown of taxes and payment types
- showall() : mixed
- default module view method for all items
- showall_by_date_meta() : array<string|int, mixed>
- action specific metainfo
- showall_by_tags() : mixed
- default module view method for all items with a specific tag
- showall_by_tags_meta() : array<string|int, mixed>
- action specific metainfo
- showByTags() : mixed
- view items referenced by tags
- showByTitle() : mixed
- view the item by referring to its title
- showRandom() : mixed
- view a random item
- sortPrintOrders() : mixed
- stats() : mixed
- Stats for selected period
- status_export() : mixed
- A Product Report
- supportsWorkflow() : bool
- does module support workflow?
- tags() : mixed
- return all tags used by module's items
- update() : mixed
- update (save) item in module
- setDateParams() : mixed
- Help parse quick range input
Constants
CUSTOM
public
mixed
CUSTOM
= 9
FOREVER
public
mixed
FOREVER
= 8
LAST_MONTH
public
mixed
LAST_MONTH
= 3
LAST_YEAR
public
mixed
LAST_YEAR
= 7
PAST_24_HOURS
public
mixed
PAST_24_HOURS
= 0
PAST_30_DAYS
public
mixed
PAST_30_DAYS
= 2
PAST_365_DAYS
public
mixed
PAST_365_DAYS
= 6
PAST_60_DAYS
public
mixed
PAST_60_DAYS
= 4
PAST_7_DAYS
public
mixed
PAST_7_DAYS
= 1
PAST_90_DAYS
public
mixed
PAST_90_DAYS
= 5
Properties
$asset_path
public
mixed
$asset_path
= ''
$baseclassname
public
mixed
$baseclassname
= ''
$basemodel_name
public
mixed
$basemodel_name
= ''
$classinfo
public
mixed
$classinfo
= \null
$codequality
public
mixed
$codequality
= 'stable'
$config
public
mixed
$config
= array()
$filepath
public
mixed
$filepath
= ''
$loc
public
mixed
$loc
= \null
$model_table
public
mixed
$model_table
= ''
$params
public
mixed
$params
= array()
$relative_viewpath
public
mixed
$relative_viewpath
= ''
$remove_configs
public
mixed
$remove_configs
= array()
$requires_login
public
mixed
$requires_login
= array()
$rss_is_podcast
public
mixed
$rss_is_podcast
= \false
$useractions
public
mixed
$useractions
= array()
$viewpath
public
mixed
$viewpath
= ''
$add_permissions
protected
mixed
$add_permissions
= array()
$classname
protected
mixed
$classname
= ''
$m_permissions
protected
mixed
$m_permissions
= array(
// standard set of actions requiring manage permission for all modules
'activate' => 'Activate',
'approve' => 'Approve',
'merge' => 'Merge',
'rerank' => 'ReRank',
'import' => 'Import Items',
'export' => 'Export Items',
)
$manage_permissions
protected
mixed
$manage_permissions
= array('abandoned_carts' => 'Abandoned Carts Report', 'batch_export' => 'Export Products', 'cart_summary' => 'View Cart Summary Report', 'current_carts' => 'Current Carts Report', 'dashboard' => 'View the e-Commerce Dashboard', 'download' => 'Download Report', 'generateOrderReport' => 'View Order Report', 'generateProductReport' => 'View Product Report', 'order_report' => 'Generate Order Report', 'payment_report' => 'Generate Payment Report', 'print_orders' => 'Print Orders', 'product_report' => 'Generate Product Report', 'purge_abandoned_carts' => 'Purge Abandoned Carts', 'show_payment_summary' => 'Show Payment Summary', 'status_export' => 'Export Status')
$now_ampm
protected
mixed
$now_ampm
$now_date
protected
mixed
$now_date
$now_hour
protected
mixed
$now_hour
$now_min
protected
mixed
$now_min
$o
protected
mixed
$o
$oneday
protected
mixed
$oneday
= 86400
$permissions
protected
mixed
$permissions
= array(
// standard set of permissions for all modules unless add'ed or remove'd
'manage' => 'Manage',
'configure' => 'Configure',
'create' => 'Create',
'edit' => 'Edit',
'delete' => 'Delete',
)
$prev_ampm
protected
mixed
$prev_ampm
$prev_date
protected
mixed
$prev_date
$prev_hour
protected
mixed
$prev_hour
$prev_min
protected
mixed
$prev_min
$quickrange
protected
mixed
$quickrange
= array()
$remove_permissions
protected
mixed
$remove_permissions
= array()
$tend
protected
mixed
$tend
$tstart
protected
mixed
$tstart
Methods
__construct()
public
__construct([mixed $src = null ][, mixed $params = array() ]) : mixed
Parameters
- $src : mixed = null
- $params : mixed = array()
Return values
mixed —__get()
Generic magic method
public
__get( $property) : null
Parameters
Return values
null —__isset()
Generic magic method
public
__isset( $property) : bool
Parameters
Return values
bool —__set()
Generic magic method We MUST create/set non-existing properties for Exponent code to work
public
__set( $property, $value) : mixed
Parameters
Return values
mixed —__unset()
Generic magic method
public
__unset( $property) : mixed
Parameters
Return values
mixed —abandoned_carts()
Report on abandoned carts
public
abandoned_carts() : mixed
Return values
mixed —abandoned_carts_row()
Report on abandoned carts in row format
public
abandoned_carts_row() : mixed
Return values
mixed —addContentToSearch()
add module item or all items to search index
public
addContentToSearch() : int
Tags
Return values
int —number of items added to search index
aggregateWhereClause()
The aggregateWhereClause function creates a sql where clause which also includes aggregated module content
public
aggregateWhereClause([string $type = '' ]) : string
Parameters
- $type : string = ''
Return values
string —approve()
approve module item
public
approve() : mixed
Return values
mixed —author()
author of module
public
static author() : string
Return values
string —batch_export()
A Product Report
public
batch_export() : mixed
Return values
mixed —canExportData()
can this module export data?
public
static canExportData() : bool
Return values
bool —canHandleEAAS()
can this module export EAAS data?
public
static canHandleEAAS() : bool
Return values
bool —canImportData()
can this module import data?
public
static canImportData() : bool
Return values
bool —cart_summary()
FIXME Purpose not known/incomplete
public
cart_summary() : mixed
Return values
mixed —categories()
return all categories used by module's items
public
categories() : mixed
Return values
mixed —checkPermissions()
public
static checkPermissions(mixed $permission, mixed $location) : mixed
Parameters
- $permission : mixed
- $location : mixed
Return values
mixed —comments()
return all comments used by module's items
public
comments() : mixed
Return values
mixed —configure()
Configure the module
public
configure() : mixed
Return values
mixed —create()
create an item in this module
public
create() : mixed
Tags
Return values
mixed —current_carts()
Display report of currently active carts
public
current_carts() : mixed
Return values
mixed —dashboard()
Current Stats
public
dashboard() : mixed
Return values
mixed —delete()
delete item in module
public
delete() : mixed
Return values
mixed —delete_In()
delete module and all its items for backwards compat with old modules
public
delete_In( $loc) : mixed
Parameters
Return values
mixed —delete_instance()
delete module, config, and all its items
public
delete_instance([bool $loc = false ]) : mixed
Parameters
- $loc : bool = false
Tags
Return values
mixed —delete_search()
remove all module items from search index
public
delete_search() : mixed
Return values
mixed —description()
description of module
public
static description() : string
Return values
string —displayname()
name of module
public
static displayname() : string
Return values
string —download()
Output report data for download
public
static download( $file, $name, $type) : mixed
Parameters
Return values
mixed —downloadfile()
download a file attached to item
public
downloadfile() : mixed
Return values
mixed —eaasConfig()
returns info about Config template standard location is a folder named 'eaas' in the module's view folder with a model_name template
public
eaasConfig() : array<string|int, mixed>|bool
Return values
array<string|int, mixed>|bool —eaasData()
returns module's EAAS data as an array of records
public
eaasData([mixed $params = array() ][, mixed $where = null ]) : array<string|int, mixed>
Parameters
- $params : mixed = array()
- $where : mixed = null
Return values
array<string|int, mixed> —edit()
edit item in module, also used to copy items
public
edit() : mixed
Return values
mixed —export_inventory()
An Order Report
public
export_inventory() : mixed
Return values
mixed —export_odbc()
An Order Report
public
export_odbc() : mixed
Return values
mixed —export_order_items()
An Order Report
public
export_order_items() : mixed
Return values
mixed —export_status_report()
An Order Report
public
export_status_report() : mixed
Return values
mixed —export_user_input_report()
An Order Report
public
export_user_input_report() : mixed
Return values
mixed —generateOrderReport()
Generate an orders report selection view from parameters
public
generateOrderReport() : mixed
Return values
mixed —generateProductReport()
Generate an products report selection view from parameters
public
generateProductReport() : mixed
Return values
mixed —getModels()
get the model(s) associated with this module
public
getModels() : array<string|int, mixed>
Return values
array<string|int, mixed> —getRSSContent()
get the module's items in an rss feed format
public
getRSSContent(int $limit) : array<string|int, mixed>
this function is very general and will most of the time need to be overwritten and customized
Parameters
- $limit : int
Return values
array<string|int, mixed> —hasContent()
does module have content (stored items) available?
public
static hasContent() : bool
Return values
bool —hasSources()
does module have sources available? or does it treat content globally
public
static hasSources() : bool
Return values
bool —hasViews()
does module have views available?
public
static hasViews() : bool
Return values
bool —isSearchable()
is module content searchable? should it be added to search index?
public
static isSearchable() : bool
Return values
bool —manage()
display module management view
public
manage() : mixed
Return values
mixed —manage_ranks()
rerank module items, called from ddrerank
public
manage_ranks() : mixed
Return values
mixed —merge()
merge/move aggregated item into this module
public
merge() : mixed
Return values
mixed —meta_fb()
Returns Facebook og: meta data
public
meta_fb( $request, $object, $canonical) : array<string|int, mixed>
Parameters
Return values
array<string|int, mixed> —meta_rich()
Returns rich snippet PageMap meta data
public
meta_rich( $request, $object) : null
Parameters
Return values
null —meta_tw()
Returns Twitter twitter: meta data
public
meta_tw( $request, $object, $canonical) : array<string|int, mixed>
Parameters
Return values
array<string|int, mixed> —metainfo()
get the metainfo for this module
public
metainfo() : array<string|int, mixed>|bool
Return values
array<string|int, mixed>|bool —name()
name of module for backwards compat with old modules
public
name() : string
Return values
string —order_report()
Get parameters for an orders report
public
order_report() : mixed
Return values
mixed —payment_report()
FIXME Purpose not known/incomplete
public
payment_report() : mixed
Return values
mixed —permissions()
permission functions to aggregate a module's visible permissions based on add/remove permissions
public
permissions() : array<string|int, mixed>
Return values
array<string|int, mixed> —permissions_all()
permission functions to aggregate a module's permissions based on add/remove and manage permissions
public
permissions_all() : array<string|int, mixed>
Return values
array<string|int, mixed> —print_orders()
An Order Report
public
print_orders() : mixed
Return values
mixed —product_report()
Get parameters for an products report
public
product_report() : mixed
Return values
mixed —productFeed()
FIXME Purpose not known/incomplete
public
productFeed() : mixed
Return values
mixed —pruge_abandoned_carts()
Remove abandoned carts data
public
pruge_abandoned_carts() : mixed
Return values
mixed —requiresConfiguration()
does this module require configuration?
public
static requiresConfiguration() : bool
Return values
bool —rerank()
rerank items in model
public
rerank() : mixed
Return values
mixed —rss()
method to display an rss feed from this module
public
rss() : mixed
Return values
mixed —saveconfig()
save module configuration
public
saveconfig() : mixed
Return values
mixed —searchCategory()
category of items searched in the module
public
searchCategory() : string
Return values
string —searchHit()
additional check for display of search hit
public
static searchHit( $record) : bool
Parameters
Return values
bool —searchName()
type of items searched in the module
public
searchName() : string
Return values
string —show()
default view for individual item
public
show() : mixed
Return values
mixed —show_payment_summary()
An Order Report to show breakdown of taxes and payment types
public
show_payment_summary() : mixed
Return values
mixed —showall()
default module view method for all items
public
showall() : mixed
Return values
mixed —showall_by_date_meta()
action specific metainfo
public
showall_by_date_meta( $request) : array<string|int, mixed>
Parameters
Return values
array<string|int, mixed> —showall_by_tags()
default module view method for all items with a specific tag
public
showall_by_tags() : mixed
Return values
mixed —showall_by_tags_meta()
action specific metainfo
public
showall_by_tags_meta( $request) : array<string|int, mixed>
Parameters
Return values
array<string|int, mixed> —showByTags()
view items referenced by tags
public
showByTags() : mixed
Tags
Return values
mixed —showByTitle()
view the item by referring to its title
public
showByTitle() : mixed
Tags
Return values
mixed —showRandom()
view a random item
public
showRandom() : mixed
Return values
mixed —sortPrintOrders()
public
static sortPrintOrders(mixed $a, mixed $b) : mixed
Parameters
- $a : mixed
- $b : mixed
Return values
mixed —stats()
Stats for selected period
public
stats() : mixed
Return values
mixed —status_export()
A Product Report
public
status_export() : mixed
Return values
mixed —supportsWorkflow()
does module support workflow?
public
static supportsWorkflow() : bool
Return values
bool —tags()
return all tags used by module's items
public
tags() : mixed
Return values
mixed —update()
update (save) item in module
public
update() : mixed
Return values
mixed —setDateParams()
Help parse quick range input
private
setDateParams() : mixed