/** * Returns an associative array of available attribute types * They keys of the name are the attribute codes * (1-byte int as stored in ca_attribute_values datatype field), * the values are the attribute names */ public static function getAttributeTypes() { if (Attribute::$s_attribute_types) { return Attribute::$s_attribute_types; } $o_config = Configuration::load(); $o_attribute_types = Configuration::load($o_config->get('attribute_type_config')); return Attribute::$s_attribute_types = $o_attribute_types->getList('types'); }