eZ Publish  [4.2]
eZContentClassClassGroup Class Reference

! eZKernel The class eZContentClassClassGroup More...

+ Inheritance diagram for eZContentClassClassGroup:
+ Collaboration diagram for eZContentClassClassGroup:

List of all members.

Public Member Functions

 eZContentClassClassGroup ($row)

Static Public Member Functions

static classInGroup ($contentclassID, $contentclassVersion, $groupID)
static create ($contentclass_id, $contentclass_version, $group_id, $group_name)
static definition ()
static fetch ($contentclass_id, $contentclass_version, $group_id, $asObject=true)
static fetchClassList ($contentclass_version, $group_id, $asObject=true, $orderByArray=array( 'name'))
static fetchClassListByGroups ($contentclassVersion, $groupIDList, $asObject=true)
static fetchGroupList ($contentclass_id, $contentclass_version, $asObject=true)
static removeClassMembers ($contentclass_id, $contentclass_version)
static removeGroup ($contentclass_id, $contentclass_version, $group_id)
static removeGroupMembers ($group_id)
static update ($contentclass_version, $group_id, $group_name)

Public Attributes

 $ContentClassID
 $ContentClassVersion
 $GroupID
 $GroupName

Detailed Description

! eZKernel The class eZContentClassClassGroup

Definition at line 36 of file ezcontentclassclassgroup.php.


Member Function Documentation

static eZContentClassClassGroup::classInGroup ( contentclassID,
contentclassVersion,
groupID 
) [static]

Definition at line 236 of file ezcontentclassclassgroup.php.

Referenced by eZContentClass\inGroup().

static eZContentClassClassGroup::create ( contentclass_id,
contentclass_version,
group_id,
group_name 
) [static]

Definition at line 71 of file ezcontentclassclassgroup.php.

static eZContentClassClassGroup::definition ( ) [static]
Returns:
the definition for the object, the default implementation is to return an empty array. It's upto each inheriting class to return a proper definition array.

The definition array is an associative array consists of these keys:

  • fields - an associative array of fields which defines which database field (the key) is to fetched and how they map to object member variables (the value).
  • keys - an array of fields which is used for uniquely identifying the object in the table.
  • function_attributes - an associative array of attributes which maps to member functions, used for fetching data with functions.
  • set_functions - an associative array of attributes which maps to member functions, used for setting data with functions.
  • increment_key - the field which is incremented on table inserts.
  • class_name - the classname which is used for instantiating new objecs when fetching from the database.
  • sort - an associative array which defines the default sorting of lists, the key is the table field while the value is the sorting method which is either asc or desc.
  • name - the name of the database table

Example:

static function definition()
{
    return array( "fields" => array( "id" => "ID",
                                     "version" => "Version",
                                     "name" => "Name" ),
                  "keys" => array( "id", "version" ),
                  "function_attributes" => array( "current" => "currentVersion",
                                                  "class_name" => "className" ),
                  "increment_key" => "id",
                  "class_name" => "eZContentClass",
                  "sort" => array( "id" => "asc" ),
                  "name" => "ezcontentclass" );
}

Reimplemented from eZPersistentObject.

Definition at line 43 of file ezcontentclassclassgroup.php.

Referenced by classInGroup(), fetch(), fetchClassListByGroups(), fetchGroupList(), removeClassMembers(), removeGroup(), removeGroupMembers(), and update().

eZContentClassClassGroup::eZContentClassClassGroup ( row)

Definition at line 38 of file ezcontentclassclassgroup.php.

Referenced by create().

static eZContentClassClassGroup::fetch ( contentclass_id,
contentclass_version,
group_id,
asObject = true 
) [static]

Definition at line 143 of file ezcontentclassclassgroup.php.

Referenced by fetchClassListByGroups().

static eZContentClassClassGroup::fetchClassList ( contentclass_version,
group_id,
asObject = true,
orderByArray = array( 'name' ) 
) [static]

Definition at line 153 of file ezcontentclassclassgroup.php.

Referenced by eZUser\fetchUserGroupClassNames().

static eZContentClassClassGroup::fetchClassListByGroups ( contentclassVersion,
groupIDList,
asObject = true 
) [static]

Definition at line 192 of file ezcontentclassclassgroup.php.

static eZContentClassClassGroup::fetchGroupList ( contentclass_id,
contentclass_version,
asObject = true 
) [static]
static eZContentClassClassGroup::removeClassMembers ( contentclass_id,
contentclass_version 
) [static]
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.

Definition at line 136 of file ezcontentclassclassgroup.php.

Referenced by eZContentClassOperations\remove(), and eZContentClass\storeDefined().

static eZContentClassClassGroup::removeGroup ( contentclass_id,
contentclass_version,
group_id 
) [static]
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.

Definition at line 105 of file ezcontentclassclassgroup.php.

static eZContentClassClassGroup::removeGroupMembers ( group_id) [static]
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.

Definition at line 126 of file ezcontentclassclassgroup.php.

static eZContentClassClassGroup::update ( contentclass_version,
group_id,
group_name 
) [static]

Definition at line 84 of file ezcontentclassclassgroup.php.


Member Data Documentation

eZContentClassClassGroup::$ContentClassID

Definition at line 250 of file ezcontentclassclassgroup.php.

eZContentClassClassGroup::$ContentClassVersion

Definition at line 251 of file ezcontentclassclassgroup.php.

eZContentClassClassGroup::$GroupID

Definition at line 252 of file ezcontentclassclassgroup.php.

eZContentClassClassGroup::$GroupName

Definition at line 253 of file ezcontentclassclassgroup.php.


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