Forums / Developer / help needed on debugging my first basic datatype / Comment54644
Bruce Morrison
Tuesday 13 October 2009 6:24:12 pm
Hi Stephane
You may have already worked it out but the contentObjectAttribute var in mlcnRatingType::objectAttributeContent & mlcnRatingType::metaData is missing a leading '$' and should read
/*! Returns the content. */ function objectAttributeContent( $contentObjectAttribute ) { return $contentObjectAttribute->attribute( "data_int" ); } /*! Returns the meta data used for storing search indeces. */ function metaData( $contentObjectAttribute ) { return $contentObjectAttribute->attribute( "data_int" ); }
Just like the mlcnRatingType::title method.
CheersBruce
My Blog: http://www.stuffandcontent.com/ Follow me on twitter: http://twitter.com/brucemorrison Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish