kernel/classes/ezcontentclassattribute.php
function storeVersioned( $version )
    {
        $dataType = $this->dataType();
        if ( !$dataType )
        {
            return false;
        }

        self::expireCache( $this->ID, $this->attribute( 'contentclass_id' ) );

        $db = eZDB::instance();
        $db->begin();
        $dataType->preStoreVersionedClassAttribute( $this, $version );

        $this->setAttribute( 'serialized_name_list', $this->NameList->serializeNames() );
        $this->setAttribute( 'serialized_description_list', $this->DescriptionList->serializeNames() );
        $this->setAttribute( 'serialized_data_text', $this->DataTextI18nList->serializeNames() );

        parent::store();

        // store the content data for this attribute
        $dataType->storeVersionedClassAttribute( $this, $version );
        $db->commit();
    }
function storeVersioned( $version )
    {
        $dataType = $this->dataType();
        if ( !$dataType )
        {
            return false;
        }

        self::expireCache( $this->ID, $this->attribute( 'contentclass_id' ) );

        $db = eZDB::instance();
        $db->begin();
        $dataType->preStoreVersionedClassAttribute( $this, $version );

        $this->setAttribute( 'serialized_name_list', $this->NameList->serializeNames() );
        $this->setAttribute( 'serialized_description_list', $this->DescriptionList->serializeNames() );
        $this->setAttribute( 'serialized_data_text', $this->DataTextI18nList->serializeNames() );

        parent::store();

        // store the content data for this attribute
        $dataType->storeVersionedClassAttribute( $this, $version );
        $db->commit();
    }
function storeVersioned ( $ version ) { $ dataType = $ this -> dataType ( ) ; if ( ! $ dataType ) { return false ; } self :: expireCache ( $ this -> ID , $ this -> attribute ( 'contentclass_id' ) ) ; $ db = eZDB :: instance ( ) ; $ db -> begin ( ) ; $ dataType -> preStoreVersionedClassAttribute ( $ this , $ version ) ; $ this -> setAttribute ( 'serialized_name_list' , $ this -> NameList -> serializeNames ( ) ) ; $ this -> setAttribute ( 'serialized_description_list' , $ this -> DescriptionList -> serializeNames ( ) ) ; $ this -> setAttribute ( 'serialized_data_text' , $ this -> DataTextI18nList -> serializeNames ( ) ) ; parent :: store ( ) ; // store the content data for this attribute $ dataType -> storeVersionedClassAttribute ( $ this , $ version ) ; $ db -> commit ( ) ; }
Store the content class in the specified version status.

@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.

@param int $version version status
@since Version 4.3
@return null|false false if the operation failed
Store the content class in the specified version status .