static function fetchByObjectId( $contentobjectID, $contentobjectAttributeId = null )
    {
        $cond = array( 'contentobject_id' => $contentobjectID );
        if ( $contentobjectAttributeId !== null )
        {
            $cond['contentobject_attribute_id'] = $contentobjectAttributeId;
        }
        $return = eZPersistentObject::fetchObjectList( self::definition(), null, $cond );
        return $return;
    }
static function fetchByObjectId( $contentobjectID, $contentobjectAttributeId = null )
    {
        $cond = array( 'contentobject_id' => $contentobjectID );
        if ( $contentobjectAttributeId !== null )
        {
            $cond['contentobject_attribute_id'] = $contentobjectAttributeId;
        }
        $return = eZPersistentObject::fetchObjectList( self::definition(), null, $cond );
        return $return;
    }
static function fetchByObjectId ( $ contentobjectID , $ contentobjectAttributeId = null ) { $ cond = array ( 'contentobject_id' => $ contentobjectID ) ; if ( $ contentobjectAttributeId !== null ) { $ cond [ 'contentobject_attribute_id' ] = $ contentobjectAttributeId ; } $ return = eZPersistentObject :: fetchObjectList ( self :: definition ( ) , null , $ cond ) ; return $ return ; }
Fetch rating data by content object id and optionally attribute id!

@param int $contentobjectID
@param int $contentobjectAttributeId
@return null|ezsrRatingDataObject
Fetch rating data by content object id and optionally attribute id!