Thursday 18 August 2011 7:24:55 am
Hi Mark, Yes, I have put the right attribute identifier in $attributeList. Other attribute(label) stored successfully. following methods are there in custom datatype
function fetchObjectAttributeHTTPInput( $http, $base, $contentObjectAttribute )
{
if ( $http->hasPostVariable( $base . "_data_oscar_identifier_" . $contentObjectAttribute->attribute( "id" ) ) )
{
$data = $http->postVariable( $base . "_data_oscar_identifier_" . $contentObjectAttribute->attribute( "id" ) );
$contentObjectAttribute->setAttribute( "data_int", $data );
$contentClassAttribute = eZContentClassAttribute::fetch( $contentObjectAttribute->attribute( 'contentclassattribute_id' ));
$contentObjectAttribute->setAttribute( "data_text", $contentClassAttribute->attribute('data_text1').$data );
return true;
}
return false;
}
/*! Store the content. Since the content has been stored in function fetchObjectAttributeHTTPInput(),
this function is with empty code. */
function storeObjectAttribute( $contentObjectattribute )
{
}
|