Property | Type | Description | |
---|---|---|---|
$source | string | The SQLite datasource, the filename of the database. |
Method | Description | |
---|---|---|
__construct ( $source ) | Constructor. | |
catalogues ( ) : array | Returns a list of catalogue as key and all it variants as value. | |
delete ( $message, $catalogue = 'messages' ) : boolean | Delete a particular message from the specified catalogue. | |
save ( $catalogue = 'messages' ) : boolean | Save the list of untranslated blocks to the translation source. | |
update ( $text, $target, $comments, $catalogue = 'messages' ) : boolean | Update the translation. |
Method | Description | |
---|---|---|
getCatalogueList ( $catalogue ) : array | Get all the variants of a particular catalogue. | |
getLastModified ( $source ) : integer | Get the last modified unix-time for this particular catalogue+variant. | |
isValidSource ( $variant ) : boolean | Check if a particular catalogue+variant exists in the database. | |
loadData ( $variant ) : array | Get an array of messages for a particular catalogue and cultural variant. |
Method | Description | |
---|---|---|
getCatalogueDetails ( $catalogue = 'messages' ) : array | Retrive catalogue details, array($cat_id, $variant, $count). | |
updateCatalogueTime ( $cat_id, $variant, $db ) : boolean | Update the catalogue last modified time. |
public __construct ( $source ) |
public catalogues ( ) : array | ||
return | array | list of catalogues |
protected getCatalogueList ( $catalogue ) : array | ||
return | array | list of all variants for this catalogue. |
protected getLastModified ( $source ) : integer | ||
return | integer | last modified in unix-time format. |
protected isValidSource ( $variant ) : boolean | ||
return | boolean | true if the catalogue+variant is in the database, false otherwise. |
protected string $source | ||
return | string |