[ Index ] |
|
Code source de PRADO 3.0.6 |
[Code source] [Imprimer] [Statistiques]
MessageSource_SQLite class file. This program is free software; you can redistribute it and/or modify it under the terms of the BSD License.
Author: | Wei Zhuo |
Version: | $Revision: 1.4 $ $Date: 2005/02/25 09:59:40 $ |
Poids: | 354 lignes (9 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
MessageSource_SQLite:: (11 méthodes):
__construct()
loadData()
getLastModified()
isValidSource()
getCatalogueList()
getCatalogueDetails()
updateCatalogueTime()
save()
update()
delete()
catalogues()
Classe: MessageSource_SQLite - X-Ref
MessageSource_SQLite class.__construct($source) X-Ref |
Constructor. Create a new message source using SQLite. param: string SQLite datasource, in PEAR's DB DSN format. |
loadData($variant) X-Ref |
Get an array of messages for a particular catalogue and cultural variant. param: string the catalogue name + variant return: array translation messages. |
getLastModified($source) X-Ref |
Get the last modified unix-time for this particular catalogue+variant. We need to query the database to get the date_modified. param: string catalogue+variant return: int last modified in unix-time format. |
isValidSource($variant) X-Ref |
Check if a particular catalogue+variant exists in the database. param: string catalogue+variant return: boolean true if the catalogue+variant is in the database, |
getCatalogueList($catalogue) X-Ref |
Get all the variants of a particular catalogue. param: string catalogue name return: array list of all variants for this catalogue. |
getCatalogueDetails($catalogue='messages') X-Ref |
Retrive catalogue details, array($cat_id, $variant, $count). param: string catalogue return: array catalogue details, array($cat_id, $variant, $count). |
updateCatalogueTime($cat_id, $variant, $db) X-Ref |
Update the catalogue last modified time. return: boolean true if updated, false otherwise. |
save($catalogue='messages') X-Ref |
Save the list of untranslated blocks to the translation source. If the translation was not found, you should add those strings to the translation source via the <b>append()</b> method. param: string the catalogue to add to return: boolean true if saved successfuly, false otherwise. |
update($text, $target, $comments, $catalogue='messages') X-Ref |
Update the translation. param: string the source string. param: string the new translation string. param: string comments param: string the catalogue of the translation. return: boolean true if translation was updated, false otherwise. |
delete($message, $catalogue='messages') X-Ref |
Delete a particular message from the specified catalogue. param: string the source message to delete. param: string the catalogue to delete from. return: boolean true if deleted, false otherwise. |
catalogues() X-Ref |
Returns a list of catalogue as key and all it variants as value. return: array list of catalogues |
Généré le : Sun Feb 25 21:07:04 2007 | par Balluche grâce à PHPXref 0.7 |