eZPublish  4.5
eZSection Class Reference

eZSection handles grouping of content in eZ Publish More...

+ Inheritance diagram for eZSection:
+ Collaboration diagram for eZSection:

Public Member Functions

 canBeRemoved ($sectionID=false)
 
 eZSection ($row)
 
 removeThis ($conditions=null, $extraConditions=null)
 
- Public Member Functions inherited from eZPersistentObject
 attribute ($attr, $noFunction=false)
 
 attributes ()
 
 eZPersistentObject ($row)
 
 fill ($row)
 
 hasAttribute ($attr)
 
 hasDirtyData ()
 
 remove ($conditions=null, $extraConditions=null)
 
 setAttribute ($attr, $val)
 
 setHasDirtyData ($hasDirtyData)
 
 store ($fieldFilters=null)
 
 sync ($fieldFilters=null)
 

Static Public Member Functions

static definition ()
 
static fetch ($sectionID, $asObject=true)
 
static fetchByIdentifier ($sectionIdentifier, $asObject=true)
 fetch object by section identifier More...
 
static fetchByOffset ($offset, $limit, $asObject=true)
 
static fetchFilteredList ($conditions=null, $offset=false, $limit=false, $asObject=true)
 
static fetchList ($asObject=true)
 
static globalID ()
 Return the global section ID or null if it is not set yet. More...
 
static initGlobalID ()
 Makes sure the global section ID is propagated to the template override key. More...
 
static sectionCount ()
 
static setGlobalID ($sectionID)
 Sets the current global section ID to $sectionID in the session and the template override key. More...
 
- Static Public Member Functions inherited from eZPersistentObject
static conditionText ($conditions)
 
static conditionTextByRow ($conditions, $row)
 
static count ($def, $conds=null, $field=null)
 
static definition ()
 
static escapeArray ($array)
 
static fetchObject ($def, $field_filters, $conds, $asObject=true, $grouping=null, $custom_fields=null)
 
static fetchObjectList ($def, $field_filters=null, $conds=null, $sorts=null, $limit=null, $asObject=true, $grouping=false, $custom_fields=null, $custom_tables=null, $custom_conds=null)
 
static getShortAttributeName ($db, $def, $attrName)
 
static handleRows ($rows, $class_name, $asObject)
 
static newObjectOrder ($def, $orderField, $conditions)
 
static removeObject ($def, $conditions=null, $extraConditions=null)
 
static reorderObject ($def, $orderField, $conditions, $down=true)
 
static swapRow ($table, $keys, $order_id, $rows, $id1, $id2)
 
static updateObjectList ($parameters)
 

Additional Inherited Members

- Public Attributes inherited from eZPersistentObject
 $PersistentDataDirty
 Whether the data is dirty, ie needs to be stored, or not. More...
 

Detailed Description

eZSection handles grouping of content in eZ Publish

Member Function Documentation

eZSection::canBeRemoved (   $sectionID = false)
static eZSection::definition ( )
static
Returns
the persistent object definition for the eZSection class.

Referenced by fetch(), fetchByIdentifier(), fetchByOffset(), fetchFilteredList(), and fetchList().

eZSection::eZSection (   $row)
static eZSection::fetch (   $sectionID,
  $asObject = true 
)
static
static eZSection::fetchByIdentifier (   $sectionIdentifier,
  $asObject = true 
)
static

fetch object by section identifier

Parameters
string$sectionIdentifier
boolean$asObject
Returns
object|null

Referenced by eZSectionFunctionCollection\fetchSectionObject().

static eZSection::fetchByOffset (   $offset,
  $limit,
  $asObject = true 
)
static
static eZSection::fetchFilteredList (   $conditions = null,
  $offset = false,
  $limit = false,
  $asObject = true 
)
static
static eZSection::globalID ( )
static

Return the global section ID or null if it is not set yet.

Deprecated:
since 4.4, global section support has been removed and null is always returned.
Returns
null
static eZSection::initGlobalID ( )
static

Makes sure the global section ID is propagated to the template override key.

Deprecated:
since 4.4, global section support has been removed
Returns
false
eZSection::removeThis (   $conditions = null,
  $extraConditions = null 
)

Will remove the current section from the database.

Note
Transaction unsafe. If you call several transaction unsafe methods you must enclose the calls within a db transaction; thus within db->begin and db->commit.
static eZSection::sectionCount ( )
static
Returns
the number of active orders
static eZSection::setGlobalID (   $sectionID)
static

Sets the current global section ID to $sectionID in the session and the template override key.

Deprecated:
since 4.4, global section support has been removed this function only sets value to override values for bc.
Parameters
int$sectionID

The documentation for this class was generated from the following file: