Public Member Functions | Public Attributes | Protected Attributes

Section Class Reference

Section of website/publication. More...

Inheritance diagram for Section:
BeditaCollectionModel BEAppObjectModel BEAppModel AppModel

List of all members.

Public Member Functions

 afterSave ($created)
 feedsAvailable ($areaId)
 promoteToArea ($sectionId)
 Promote a section to publication (area) All section's tree structure is maintained.
 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

 $actsAs = array()
 $searchFields
 $validate
 $objectTypesGroups = array('related')

Protected Attributes

 $modelBindings

Detailed Description

Section of website/publication.

Definition at line 25 of file section.php.


Member Function Documentation

Section::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 add transformer results from Tree

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 197 of file section.php.

Section::promoteToArea ( sectionId  ) 

Promote a section to publication (area) All section's tree structure is maintained.

Parameters:
int $sectionId, the section id to promote

Definition at line 131 of file section.php.


Member Data Documentation

Section::$searchFields
Initial value:
 array(
        "title" => 10,
        "nickname" => 8,
        "description" => 6,
        "note" => 2
    )

Definition at line 29 of file section.php.

Section::$validate
Initial value:
 array(
        'title' => array(
            'rule' => 'notEmpty',
            'required' => true
        ),
        'parent_id' => array(
            'rule' => 'notEmpty'
        )
    )

Definition at line 85 of file section.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