Path

ezpublish / documentation / ez publish / technical manual / 3.6 / reference / objects / ezcontentobjectattribute


Caution: This documentation is for eZ Publish legacy, from version 3.x to 6.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

ezcontentobjectattribute

Summary

Contains information about an attribute of a content object.

Persistent

Yes.

Attributes

Attribute

Type

Description

id

string

The ID number of the attribute.

contentobject_id

string

The ID number of the content object that the attribute belongs to.

version

string

The version number of the content object that the attribute belongs to.

language_code

string

The code of the translation that the attribute belongs to (for example "eng-GB").

contentclassattribute_id

string

The ID number of the attribute.

attribute_original_id

string

The original ID of the attribute.

sort_key_int

string

Integer used for sorting.

sort_key_string

string

Text used for sorting.

data_type_string

string

The identifier string of the datatype (for example "ezstring").

data_text

string

Text stored by the attribute.

data_int

string

Integer stored by the attribute.

data_float

string

Float stored by the attribute.

contentclass_attribute

object

The class attribute (as an ezcontentclassattribute object).

contentclass_attribute_identifier

string

The identifier of the content class attribute (for example "first_name").

contentclass_attribute_name

string

The name of the content class attribute.

can_translate

string

1 if the attribute is translatable, 0 if not.

is_information_collector

string

1 if the attribute is an information collector, 0 if not.

is_required

string

1 if the attribute is required, 0 if not.

content

any

The actual content (what is returned when the ".content" notation is used).

has_http_value

boolean

TRUE if the attribute has an HTTP value, FALSE otherwise.

value

any

The HTTP input from the user (if submitted) or the contents of the object
attribute from the database (same as the "content" attribute).

has_content

boolean

TRUE if there is attribute contains content, FALSE if it is empty.

class_content

any

The content of the class attribute which this object attribute is made from (same as ".contentclass_attribute.content").

object

object

The object that the attribute belongs to (as an ezcontentobject object).

view_template

string

The name of the template that is used to display the view interface for the attribute (for example "ezstring").

edit_template

string

The name of the template that is used to display the edit interface for the attribute (for example "ezstring").

result_template

string

The name of the template that is used to display the information that was collected by the attribute (for example "ezstring").

has_validation_error

boolean

TRUE if a validation error was detected, FALSE if everything is okay.

validation_error

NULL

The validation error(s), NULL if none.

validation_log

NULL

A log of the validation error(s), NULL if none.

language

object

The original translation (as ezcontentobjectattribute object) of this content object
attribute (it may just be the same object).

is_a

string

Returns the identifier of the datatype that is used to represent the attribute (for example "ezstring").

display_info

array

An array containing information about how the attribute should be displayed in different scenarios (for example if the information should be grouped, etc.).

class_display_info

array

An array containing information about how the attribute should be displayed on the class level.

Balazs Halasy (22/02/2005 8:42 am)

Balazs Halasy (01/04/2007 2:13 pm)

Balazs Halasy, Svitlana Shatokhina


Comments

  • Great new documantation

    Thank you ez team for the new documantation
    will examples will be included as well?
  • And how to get selected value of Selection object?

    how to get selected value of Selectio object without using attribute_view_gui ?
    • Re: And how to get selected value of Selection object?

      Try something like this:
      $mynode.data_map.rfcstatus.class_content.options[$mynode.data_map.rfcstatus.value[0]].name
      
  • Type

    Where it reads for the attributes names:
    "contentclass_attribute_identifier"
    and
    "contentclass_attribute_name"

    should just be:
    "identifier"
    and
    "name"