Public Member Functions | Public Attributes | Protected Attributes

Event Class Reference

Event content. More...

Inheritance diagram for Event:
BeditaContentModel BEAppObjectModel BEAppModel AppModel

List of all members.

Public Member Functions

 afterSave ()
 apiTransformer (array $options=array())
 Return an array of column types to transform (cast) for generic BEdita object type Used to build consistent REST APIs.

Public Attributes

 $useTable = 'contents'
 $actsAs
 $objectTypesGroups = array('leafs', 'related', 'tree')
 $hasMany

Protected Attributes

 $modelBindings

Detailed Description

Event content.

Associated to items DateItem (event start_date and end_date) and GeoTag (event location)

Definition at line 25 of file event.php.


Member Function Documentation

Event::apiTransformer ( array $  options = array()  ) 

Return an array of column types to transform (cast) for generic BEdita object type Used to build consistent REST APIs.

In general it returns all castable fields from BEAppObjectModel::apiTransformer() and DateItem

Possible options are:

  • 'castable' an array of fields that the REST APIs should cast to
See also:
BEAppObjectModel::apiTransformer()
Parameters:
array $options
Returns:
array

Reimplemented from BEAppObjectModel.

Definition at line 116 of file event.php.


Member Data Documentation

Event::$actsAs
Initial value:
 array(
            'CompactResult'         => array('DateItem'),
            'DeleteObject'          => 'objects',
    )

Reimplemented from BEAppObjectModel.

Definition at line 83 of file event.php.

Event::$hasMany
Initial value:
 array(
            'DateItem' =>
                array(
                    'className'     => 'DateItem',
                    'foreignKey'    => 'object_id',
                    'dependent'     => true
                )
        )

Definition at line 90 of file event.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