protected function validate_taxonomies($value) {
        $terms = explode(',', $value);

        foreach ($terms as $term) {
            if (!empty($term) && !array_key_exists($term, self::get_taxonomies_list())) {
                return new lang_string('invalidtaxonomy', 'core_competency', $term);
            }
        }

        return true;
    }
protected function validate_taxonomies($value) {
        $terms = explode(',', $value);

        foreach ($terms as $term) {
            if (!empty($term) && !array_key_exists($term, self::get_taxonomies_list())) {
                return new lang_string('invalidtaxonomy', 'core_competency', $term);
            }
        }

        return true;
    }
protected function validate_taxonomies ( $ value ) { $ terms = explode ( ',' , $ value ) ; foreach ( $ terms as $ term ) { if ( ! empty ( $ term ) && ! array_key_exists ( $ term , self :: get_taxonomies_list ( ) ) ) { return new lang_string ( 'invalidtaxonomy' , 'core_competency' , $ term ) ; } } return true ; }
Validate taxonomies.

@param  mixed $value The taxonomies.
@return true|lang_string
Validate taxonomies .