Method | Description | |
---|---|---|
addDocument ( string $category, string $document ) | Adds a document by category to the data | |
getCategories ( ) : array | Returns the categories of the data | |
getData ( ) : array | Get the data | |
hasCategory ( string $category ) : boolean | Returnnes whether or not the data has a category | |
setData ( array $data ) : null | Set data to the data source | |
write ( ) : null | Write the data source if possible |
public addDocument ( string $category, string $document ) | ||
$category | string | The category of the document |
$document | string | The document |
public getCategories ( ) : array | ||
return | array | The categories |
public hasCategory ( string $category ) : boolean | ||
$category | string | The category to check |
return | boolean | [description] |