public static function get_property_choices($property) {

        self::fill_properties_cache();

        if (!array_key_exists($property, self::$propertiescache) && !array_key_exists('choices',
                self::$propertiescache[$property])) {

            throw new coding_exception('Invalid property requested, or the property does not has a list of choices.');
        }

        return self::$propertiescache[$property]['choices'];
    }
public static function get_property_choices($property) {

        self::fill_properties_cache();

        if (!array_key_exists($property, self::$propertiescache) && !array_key_exists('choices',
                self::$propertiescache[$property])) {

            throw new coding_exception('Invalid property requested, or the property does not has a list of choices.');
        }

        return self::$propertiescache[$property]['choices'];
    }
public static function get_property_choices ( $ property ) { self :: fill_properties_cache ( ) ; if ( ! array_key_exists ( $ property , self :: $ propertiescache ) && ! array_key_exists ( 'choices' , self :: $ propertiescache [ $ property ] ) ) { throw new coding_exception ( 'Invalid property requested, or the property does not has a list of choices.' ) ; } return self :: $ propertiescache [ $ property ] [ 'choices' ] ; }
Get the choices of the property.

This is a helper method to validate a value against a list of acceptable choices.
For instance: country, language, themes and etc.

@param string $property property name to be retrieved.
@throws coding_exception if the requested property name is invalid or if it does not has a list of choices.
@return array the property parameter type.
Get the choices of the property .