Public Member Functions | Public Attributes

ObjectProperty Class Reference

Property object. More...

Inheritance diagram for ObjectProperty:
BEAppModel AppModel

List of all members.

Public Member Functions

 getObjectCustomProperties ($objectId, $compact=false)
 return smart readable array of object properties The array keys are the property names
 objectsCustomProperties (array $objects, array $options)
 passed an array of BEdita objects add 'customProperties' key with array of custom properties

Public Attributes

 $belongsTo

Detailed Description

Property object.

Version:
$Revision$ $LastChangedBy$ $LastChangedDate$

$Id$

Definition at line 31 of file object_property.php.


Member Function Documentation

ObjectProperty::getObjectCustomProperties ( objectId,
compact = false 
)

return smart readable array of object properties The array keys are the property names

Parameters:
int $objectId
boolean $compact true to compact results as array( 'propertyName' => 'propertyValue', // if property with single choice 'propertyName2' => array( // if property with multiple choice 'propertyValue1', 'propertyValue2' ), )
Returns:
array

Definition at line 55 of file object_property.php.

Referenced by objectsCustomProperties().

ObjectProperty::objectsCustomProperties ( array $  objects,
array $  options 
)

passed an array of BEdita objects add 'customProperties' key with array of custom properties

Parameters:
array $objects
array $options accept 'compact' (default true) to compact or not custom prop array
Returns:
array $objects with added 'customProperties' key

Definition at line 80 of file object_property.php.

References getObjectCustomProperties().


Member Data Documentation

ObjectProperty::$belongsTo
Initial value:
 array(
        "Property", 
        "BEObject" => array(
            "foreignKey" => "object_id"
        )
    )

Definition at line 33 of file object_property.php.


The documentation for this class was generated from the following file:
Generated on Fri Dec 11 2015 15:29:47 by Doxygen 1.7.1  BEditaBEdita 3.7 Corylus