/** * Get default styles * * @param CExClassField|CExClassMessage|CExClassFieldSubgroup $object Object to get the default styles of * * @return array */ static function getDefaultPropertiesFor(CMbObject $object) { static $types; if (empty($types)) { $prop = new self(); $types = $prop->_specs["type"]->_list; } $default = array_fill_keys($types, ""); // Doit etre une chaine vide pour IE $properties = $object->loadRefProperties(); foreach ($properties as $_property) { if ($_property->predicate_id || $_property->value == "") { continue; } $default[$_property->type] = $_property->value; } return $default; }