/**
  * Get all fields of a container
  *
  * @access public
  * @static
  * @param int container obj_id
  * @return array array of ilCourseDefinedFieldDefinitions objects
  */
 public static function _getFields($a_container_id, $a_sort = IL_CDF_SORT_NAME)
 {
     foreach (ilCourseDefinedFieldDefinition::_getFieldIds($a_container_id, $a_sort) as $field_id) {
         $fields[] = new ilCourseDefinedFieldDefinition($a_container_id, $field_id);
     }
     return $fields ? $fields : array();
 }