Class Category
Category model
- Model
- AppModel
- BEAppModel
- Category
Methods summary
public
|
|
public
integer
|
#
paginateCount( array $conditions = null, integer $recursive = 0, array $extra = array() )
Custom pagination count. |
public
|
|
public
|
|
public
|
|
public
|
|
public
array(
"area"
|
#
getCategoriesByArea( integer $objectType )
Get all categories of some object type and order them by area |
public
array
|
|
private
|
|
public
array
|
|
public
array
|
|
public
|
|
public
mixed,
|
#
checkMediaType( integer $object_type_id, $mediatype )
USED for multimedia objects check if exists $mediatype in categories for an object type. If not, create the category |
private static
integer
|
#
reorderTag( array $e1, array $e2 )
compare two array elements defined by $orderTag var and return -1,0,1 $dirTag is used for define order of comparison |
public
array
|
#
findCreateCategories( array & $names, integer $objTypeId )
Search for category names, create if not already present, and return array of corresponding id |
public
true
|
#
addObjectCategory( $categoryId, $objectId )
Add category to object usgin both category and object id |
public
|
|
public
proerty
|
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
Constants summary
string |
COUNT_DENY_OPTIONS
Special key used in pagination count to remove unwanted options during the count |
#
'_countDenyOptions'
|
Properties summary
public
array
|
$actsAs
|
#
array(
'CompactResult' => array()
)
|
public
array
|
$validate
|
#
array(
'label' => array(
'rule' => 'notEmpty'
),
'status' => array(
'rule' => 'notEmpty'
),
'name' => array(
'rule' => 'notEmpty'
)
)
|
public static
|
$dirTag
|
|
public static
|
$orderTag
|