kernel/private/classes/ezcontentobjectstategroup.php
File containing the eZContentObjectStateGroup class.
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Package
- kernel
- Version
- 4.6.0
\eZContentObjectStateGroup
Class respresenting a content object state group
- Parent(s)
- \eZPersistentObject
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- Version
- 4.6.0
Constants
Properties

$PersistentDataDirty= ''
- Type
- n/a
- Inherited_from
- \eZPersistentObject::$$PersistentDataDirty
Methods

attribute(
$attr, $noFunction
=
false
)
:
void| Name | Type | Description |
|---|---|---|
| $attr | ||
| $noFunction |

availableLanguages(
)
:
arrayGet the languages the state group exists in.
| Type | Description |
|---|---|
| array | an array of language code strings. |

count(
$def, $conds
=
null, $field
=
null
)
:
void
| Name | Type | Description |
|---|---|---|
| $def | ||
| $conds | ||
| $field |

currentTranslation(
)
:
\eZContentObjectStateGroupLanguage| Type | Description |
|---|---|
| \eZContentObjectStateGroupLanguage |

eZPersistentObject(
$row
)
:
void| Name | Type | Description |
|---|---|---|
| $row |

fetchByConditions(
array $conditions, integer $limit, integer $offset
)
:
arrayFetches content object state groups by certain conditions
| Name | Type | Description |
|---|---|---|
| $conditions | array | |
| $limit | integer | |
| $offset | integer |
| Type | Description |
|---|---|
| array |

fetchById(
integer $id
)
:
\eZContentObjectStateGroup | booleanFetches a content object state group by its numerical ID
| Name | Type | Description |
|---|---|---|
| $id | integer |
| Type | Description |
|---|---|
| \eZContentObjectStateGroup | boolean |

fetchByIdentifier(
string $identifier
)
:
\eZContentObjectStateGroup | booleanFetches a content object state group by its identifier
| Name | Type | Description |
|---|---|---|
| $identifier | string |
| Type | Description |
|---|---|
| \eZContentObjectStateGroup | boolean |

fetchByOffset(
int $limit, int $offset
)
:
array| Name | Type | Description |
|---|---|---|
| $limit | int | |
| $offset | int |
| Type | Description |
|---|---|
| array |

fetchHTTPPersistentVariables(
)
:
voidFetches the HTTP persistent variables for this content object state group and its localizations.
"ContentObjectStateGroup" is used as base name for the persistent variables.

fetchObject(
$def, $field_filters, $conds, $asObject
=
true, $grouping
=
null, $custom_fields
=
null
)
:
void
| Name | Type | Description |
|---|---|---|
| $def | ||
| $field_filters | ||
| $conds | ||
| $asObject | ||
| $grouping | ||
| $custom_fields |

fetchObjectList(
$def, $field_filters
=
null, $conds
=
null, $sorts
=
null, $limit
=
null, $asObject
=
true, $grouping
=
false, $custom_fields
=
null, $custom_tables
=
null, $custom_conds
=
null
)
:
void
| Name | Type | Description |
|---|---|---|
| $def | ||
| $field_filters | ||
| $conds | ||
| $sorts | ||
| $limit | ||
| $asObject | ||
| $grouping | ||
| $custom_fields | ||
| $custom_tables | ||
| $custom_conds |

fill(
$row
)
:
void| Name | Type | Description |
|---|---|---|
| $row |

getShortAttributeName(
$db, $def, $attrName
)
:
void
| Name | Type | Description |
|---|---|---|
| $db | ||
| $def | ||
| $attrName |

handleRows(
$rows, $class_name, $asObject
)
:
void
| Name | Type | Description |
|---|---|---|
| $rows | ||
| $class_name | ||
| $asObject |

hasAttribute(
$attr
)
:
void| Name | Type | Description |
|---|---|---|
| $attr |

isValid(
array $messages
=
array()
)
:
booleanChecks if all data is valid and can be stored to the database.
| Name | Type | Description |
|---|---|---|
| $messages | array | &$messages |
| Type | Description |
|---|---|
| boolean | true when valid, false when not valid |

languages(
)
:
arrayGet the languages the state group exists in.
| Type | Description |
|---|---|
| array | an array of eZContentLanguage instances |

limitationValues(
integer $groupID
)
:
arrayReturns an array of limitation values useable by the policy system
| Name | Type | Description |
|---|---|---|
| $groupID | integer |
| Type | Description |
|---|---|
| array |

limitations(
)
:
arrayReturns an array of limitations useable by the policy system
| Type | Description |
|---|---|
| array |

newObjectOrder(
$def, $orderField, $conditions
)
:
void
| Name | Type | Description |
|---|---|---|
| $def | ||
| $orderField | ||
| $conditions |

newState(
string $identifier
=
null
)
:
\eZContentObjectStateCreates a new content object state in this content object state group
| Name | Type | Description |
|---|---|---|
| $identifier | string | identifier for the new state group |
| Type | Description |
|---|---|
| \eZContentObjectState | the new content object state |

remove(
$conditions
=
null, $extraConditions
=
null
)
:
void| Name | Type | Description |
|---|---|---|
| $conditions | ||
| $extraConditions |

removeObject(
$def, $conditions
=
null, $extraConditions
=
null
)
:
void
| Name | Type | Description |
|---|---|---|
| $def | ||
| $conditions | ||
| $extraConditions |

reorderObject(
$def, $orderField, $conditions, $down
=
true
)
:
void
| Name | Type | Description |
|---|---|---|
| $def | ||
| $orderField | ||
| $conditions | ||
| $down |

reorderStates(
array $stateIDList
)
:
boolean| Name | Type | Description |
|---|---|---|
| $stateIDList | array |
| Type | Description |
|---|---|
| boolean |

replaceFieldsWithShortNames(
$db, $fieldDefs, $fields
)
:
void
| Name | Type | Description |
|---|---|---|
| $db | ||
| $fieldDefs | ||
| $fields |

setAttribute(
$attr, $val
)
:
void| Name | Type | Description |
|---|---|---|
| $attr | ||
| $val |

setCurrentLanguage(
string $locale
)
:
boolean| Name | Type | Description |
|---|---|---|
| $locale | string |
| Type | Description |
|---|---|
| boolean |

setHasDirtyData(
$hasDirtyData
)
:
void| Name | Type | Description |
|---|---|---|
| $hasDirtyData |

setLanguageObject(
\eZContentObjectStateGroupLanguage $stateGroupLanguage
)
:
void| Name | Type | Description |
|---|---|---|
| $stateGroupLanguage | \eZContentObjectStateGroupLanguage |

states(
boolean $refreshMemberVariable
=
false
)
:
array| Name | Type | Description |
|---|---|---|
| $refreshMemberVariable | boolean |
| Type | Description |
|---|---|
| array |

store(
array $fieldFilters
=
null
)
:
voidStores the content object state group and its translations.
Before storing a content object state group, you should use {@link eZContentObjectStateGroup::isValid()} to check its validness.
| Name | Type | Description |
|---|---|---|
| $fieldFilters | array |

storeObject(
$obj, $fieldFilters
=
null
)
:
void
| Name | Type | Description |
|---|---|---|
| $obj | ||
| $fieldFilters |

swapRow(
$table, $keys, $order_id, $rows, $id1, $id2
)
:
void
| Name | Type | Description |
|---|---|---|
| $table | ||
| $keys | ||
| $order_id | ||
| $rows | ||
| $id1 | ||
| $id2 |

sync(
$fieldFilters
=
null
)
:
void| Name | Type | Description |
|---|---|---|
| $fieldFilters |