Class RelationStats
Class that provides relation statistics
- Model
- AppModel
- BEAppModel
- RelationStats
Methods summary
public
|
|
public
array
|
|
public
array
|
|
public
|
|
public
string
|
|
public
array
|
#
getObjectRelationsByNameAndObjectTypes( string $relationName, array $leftObjectTypes, array $rightObjectTypes )
Return ObjectRelation records by relation $relationName, for specific objects types: left side of relation object types => $leftObjectTypes right side of relation object types => $rightObjectTypes |
public
array
|
#
getObjectRelationsByName( string $relationName )
Return ObjectRelation records by relation $relationName |
public
integer
|
#
getObjectRelationsCount( string $relationName, $objectTypesFilter = null )
Return ObjectRelation count by $relationName relation. If $objectTypesFilter is specified, return count by object_type_id in $objectTypesFilter. |
public
array
|
#
getObjectRelationsCountGroupByType( string $relationName )
Return ObjectRelation array count by $relationName relation group by object_type_id |
public
array
|
#
objectTypesIdsForObjectNames( array $relationData, string $side = 'left' )
Return object type ids for relation by $side (can be 'left' or 'right') If $side array is empty, return configure objectTypes.related.id array |
private
array
|
#
objectTypesRelatedNames( )
Return ordered object types related names, getting them from config keys objectTypes.related.id |
Methods inherited from BEAppModel
am()
,
buildQueryStatement()
,
checkDate()
,
checkDuration()
,
checkFloat()
,
checkNumber()
,
containLevel()
,
email()
,
fieldsString()
,
findObjects()
,
findObjectsAfterFilter()
,
findObjectsClauses()
,
findObjectsCount()
,
getBindingsLevel()
,
getDefaultDateFormat()
,
getDriver()
,
getEndQuote()
,
getLimitClausole()
,
getStartQuote()
,
setBindingsLevel()
,
setupDbParams()
,
toolbar()
Methods inherited from AppModel
Properties summary
public
boolean
|
$useTable
|
#
false
|
public
array
|
$relations
|
#
array()
|
public
array
|
$relationNames
|
#
array()
|