Monday 22 August 2005 3:24:56 am
Hi, I have the following code :
$dataTypeString = $attribute->attribute('data_type_string');
switch( $dataTypeString )
{
case 'ezinteger' :
$attribute->setAttribute("data_int",intval($data));
break;
case 'ezstring' :
$attribute->setAttribute("data_text",$data);
break;
case 'ezurl' :
$attribute->setAttribute("data_text",$data);
break;
case 'ezxmltext' :
$attribute->setAttribute("data_text",$data);
break;
default :
eZDebug::writeDebug( 'data_type_string: ' . $dataTypeString . ' not supported', 'testmodule' );
}
$attribute->store();
$attribute is an object from the class ezcontentobjectattribute. Everythings works except when the $dataTypeString is 'ezxmltext'. Does someone see what I'm doing wrong ? Thanks a lot! KC
|