Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-header.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-header.php on line 8

ReportRules Class Reference

Inheritance diagram for ReportRules:
ModelToComponentRules AccountAccountAffiliationsReportRules AccountContactAffiliationsReportRules AutorespondersReportRules PermitableReportRules SecuredReportRules UsersReportRules AccountsReportRules ActivitiesReportRules CalendarsReportRules CampaignsReportRules ContactsReportRules EmailMessagesReportRules MarketingListMembersReportRules MarketingListsReportRules OpportunitiesReportRules ProductsReportRules ProductTemplatesReportRules ProjectsReportRules ReportsTest2ReportRules ReportsTestReportRules ZurmoReportRules

Public Member Functions

 relationIsReportedAsAttribute (RedBeanModel $model, $relation)
 attributeIsReportable (RedBeanModel $model, $attribute)
 getFilterValueElementType (RedBeanModel $model, $attribute)
 getSortAttributeForRelationReportedAsAttribute (RedBeanModel $model, $relation)
 getGroupByRelatedAttributeForRelationReportedAsAttribute (RedBeanModel $model, $relation)
 getRawValueRelatedAttributeForRelationReportedAsAttribute (RedBeanModel $model, $relation)
 getDerivedAttributeTypesData (RedBeanModel $model)

Static Public Member Functions

static getRulesName ()

Detailed Description

Base class of report rules that assist with reporting data. Extend this class to make a set of ReportRules that is for a specific module or a combiniation of modules and/or models.

Definition at line 41 of file ReportRules.php.


Member Function Documentation

static getRulesName (  )  [static]

Implement in children classes

Exceptions:
NotImplementedException 

Reimplemented from ModelToComponentRules.

Definition at line 43 of file ReportRules.php.

relationIsReportedAsAttribute ( RedBeanModel model,
relation 
)

Some relations such as a CustomField are shown as non-related nodes in the report wizard. For a custom field this method would return true for example. Whereas account -> opportunities would return false.

Parameters:
RedBeanModel $model
$relation 
Returns:
bool

Definition at line 55 of file ReportRules.php.

attributeIsReportable ( RedBeanModel model,
attribute 
)
Parameters:
RedBeanModel $model
$attribute 
Returns:
bool

Definition at line 83 of file ReportRules.php.

getFilterValueElementType ( RedBeanModel model,
attribute 
)
Parameters:
RedBeanModel $model
string $attribute
Returns:
null | string

Definition at line 101 of file ReportRules.php.

getSortAttributeForRelationReportedAsAttribute ( RedBeanModel model,
relation 
)
Parameters:
RedBeanModel $model
string $relation
Returns:
string
Exceptions:
NotSupportedException if the relation is not really reported as an attribute

Definition at line 127 of file ReportRules.php.

getGroupByRelatedAttributeForRelationReportedAsAttribute ( RedBeanModel model,
relation 
)
Parameters:
RedBeanModel $model
string $relation
Returns:
null|string
Exceptions:
NotSupportedException if the relation is not really reported as an attribute

Definition at line 162 of file ReportRules.php.

getRawValueRelatedAttributeForRelationReportedAsAttribute ( RedBeanModel model,
relation 
)
Parameters:
RedBeanModel $model
$relation 
Returns:
null | string

Definition at line 196 of file ReportRules.php.

getDerivedAttributeTypesData ( RedBeanModel model  ) 

Override to add unique identifier thing.

Parameters:
RedBeanModel $model
Returns:
array

Reimplemented from ModelToComponentRules.

Definition at line 216 of file ReportRules.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Tue Jan 22 07:10:28 2019

Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-footer.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-footer.php on line 8