Skip to the content
Documentation

ezcontentclassattribute

No ratings yet
Summary

Contains information about an attribute of a content class.

Persistent

Yes.

Attributes
Attribute Type Static* Description
id string Yes. The ID number of the class attribute.
name string Yes. The name of the class attribute.
version string Yes. The version number of the version that the attribute belongs to.
contentclass_id string Yes. The ID number of the class that the attribute belongs to.
identifier string Yes. The identifier of the class attribute (for example "first_name").
placement string Yes. The location of the class attribute within the list of attributes.
is_searchable string Yes. Either 1 or 0. 1 means that the content stored using this attribute will be indexed by the search engine, 0 means that the content will not be indexed.
is_required string Yes. Either 1 or 0. 1 means that input is required, 0 means that empty inputs are allowed.
can_translate string Yes. Either 1 or 0. 1 means that instances of the attribute can be translated to different languages. 0 means that no translations (except for the default translation) can be made.
is_information_collector string Yes. Either 1 or 0. 1 means that the attribute functions as an information collector. 0 means that the attribute is just a normal attribute and thus stores data in the default/normal way.
data_type_string string Yes. The identifier string of the datatype that is used to represent the class attribute (for example "ezstring").
data_int1 string Yes. Integer 1.
data_int2 string Yes. Integer 2.
data_int3 string Yes. Integer 3.
data_int4 string Yes. Integer 4.
data_float1 string Yes. Float 1.
data_float2 string Yes. Float 2.
data_float3 string Yes. Float 3.
data_float4 string Yes. Float 4.
data_text1 string Yes. Text 1.
data_text2 string Yes. Text 2.
data_text3 string Yes. Text 3.
data_text4 string Yes. Text 4.
content mixed No. Data for the datatype which this class attribute is made of, the actual data
depends on the datatype.
temporary_object_attribute object No. A temporary content object attribute (as ezcontentobjectattribute object) which does not exist in the database.
data_type object No. The datatype that is used to represent the class attribute.
display_info array No. Array of miscellaneous display parameters used by the system (for example whether the components of the edit interface should be grouped or not).

* Indicates whether the attribute provides a pre-fetched value or if it needs to be computed upon request.

Changed in Exponential 6.0.15

The attributes of ezcontentclassattribute as eZContentClassAttribute::definition() of Exponential 6.0.15 gives them (kernel/classes/ezcontentclassattribute.php):

Attribute Change
serialized_name_list An attribute in 6.0.15 (field ezcontentclass_attribute, string); this page did not list it.
serialized_description_list An attribute in 6.0.15 (field ezcontentclass_attribute, string); this page did not list it.
data_text5 An attribute in 6.0.15 (field ezcontentclass_attribute, text); this page did not list it.
serialized_data_text An attribute in 6.0.15 (field ezcontentclass_attribute, string); this page did not list it.
category An attribute in 6.0.15 (field ezcontentclass_attribute, text); this page did not list it.
nameList An attribute in 6.0.15 (function attribute); this page did not list it.
description An attribute in 6.0.15 (function attribute); this page did not list it.
descriptionList An attribute in 6.0.15 (function attribute); this page did not list it.
data_text_i18n An attribute in 6.0.15 (function attribute); this page did not list it.
data_text_i18n_list An attribute in 6.0.15 (function attribute); this page did not list it.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.