CWIS Developer Documentation
Public Member Functions | List of all members
VocabularyFactory Class Reference

Factory for manipulating Vocabulary objects. More...

Public Member Functions

 __construct ($Path)
 object constructor More...
 GetVocabularies ()
 load vocabulary objects from files More...
 GetVocabularyByHash ($Hash)
 retrieve vocabulary object based on hash string More...

Detailed Description

Factory for manipulating Vocabulary objects.

Definition at line 13 of file VocabularyFactory.php.

Constructor & Destructor Documentation

VocabularyFactory::__construct (   $Path)

object constructor

string$PathPath to directory containing .voc controlled vocabulary files.

Definition at line 22 of file VocabularyFactory.php.

Member Function Documentation

VocabularyFactory::GetVocabularies ( )

load vocabulary objects from files

Array of Vocabulary objects.
Vocabularies are returned sorted by name.

Definition at line 32 of file VocabularyFactory.php.

VocabularyFactory::GetVocabularyByHash (   $Hash)

retrieve vocabulary object based on hash string

string$HashHash for Vocabulary (returned by Hash() method).
Vocabulary object corresponding to hash, or NULL if no matching vocabulary found.

Definition at line 60 of file VocabularyFactory.php.

References Vocabulary\HashForFile().

The documentation for this class was generated from the following file: