def serialize
      serialized = {}

      # set basic info
      serialized[:id] = id
      serialized[:title] = title
      serialized[:meta_language] = meta_language
      serialized[:meta_permalink] = meta_permalink

      # add category father informations
      serialized[:category_father] = category_father ? category_father.serialize_base : nil

      # add category children informations
      serialized[:category_children] = serialize_category_children

      # add category parent informations
      serialized[:other_informations] = serialize_other_informations

      # return serialized post
      serialized
    end
def serialize
      serialized = {}

      # set basic info
      serialized[:id] = id
      serialized[:title] = title
      serialized[:meta_language] = meta_language
      serialized[:meta_permalink] = meta_permalink

      # add category father informations
      serialized[:category_father] = category_father ? category_father.serialize_base : nil

      # add category children informations
      serialized[:category_children] = serialize_category_children

      # add category parent informations
      serialized[:other_informations] = serialize_other_informations

      # return serialized post
      serialized
    end
This function serializes a complete version of the category.