symfony API

sfMessageSource_SQLite Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

Packages

You are currently browsing the symfony API for the 1.0 version. Switch to:
This version of symfony is not maintained anymore.
If some of your projects still use this version, consider upgrading as soon as possible.

sfMessageSource_SQLite class.

Inheritence

sfMessageSource_SQLite  <  sfMessageSource

Method Summary

  • array &()
    Gets an array of messages for a particular catalogue and cultural variant.
  • array catalogues()
    Returns a list of catalogue as key and all it variants as value.
  • boolean delete(, )
    Deletes a particular message from the specified catalogue.
  • array getCatalogueDetails()
    Retrieves catalogue details, array($cat_id, $variant, $count).
  • array getCatalogueList()
    Gets all the variants of a particular catalogue.
  • int getLastModified()
    Gets the last modified unix-time for this particular catalogue+variant.
  • boolean isValidSource()
    Checks if a particular catalogue+variant exists in the database.
  • boolean save()
    Saves the list of untranslated blocks to the translation source.
  • boolean update(, , , )
    Updates the translation.
  • boolean updateCatalogueTime()
    Updates the catalogue last modified time.
  • __construct()
    Constructor.

Methods inherited from sfMessageSource

& , append , factory , getCache , getCatalogueList , getCulture , getLastModified , getSource , isValidSource , load , read , setCache , setCulture , __construct

Method Details

  • (array) & ()

    Gets an array of messages for a particular catalogue and cultural variant.

    returns translation messages.

  • (array) catalogues ()

    Returns a list of catalogue as key and all it variants as value.

    returns list of catalogues

  • (boolean) delete (, )

    Deletes a particular message from the specified catalogue.

    returns true if deleted, false otherwise.

  • (array) getCatalogueDetails ()

    Retrieves catalogue details, array($cat_id, $variant, $count).

    returns catalogue details, array($cat_id, $variant, $count).

  • (array) getCatalogueList ()

    Gets all the variants of a particular catalogue.

    returns list of all variants for this catalogue.

  • (int) getLastModified ()

    Gets the last modified unix-time for this particular catalogue+variant.

    We need to query the database to get the date_modified.

    returns last modified in unix-time format.

  • (boolean) isValidSource ()

    Checks if a particular catalogue+variant exists in the database.

    returns true if the catalogue+variant is in the database, false otherwise.

  • (boolean) save ()

    Saves 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 append() method.

    returns true if saved successfuly, false otherwise.

  • (boolean) update (, , , )

    Updates the translation.

    returns true if translation was updated, false otherwise.

  • (boolean) updateCatalogueTime ()

    Updates the catalogue last modified time.

    returns true if updated, false otherwise.

  • __construct ()

    Constructor.

    Creates a new message source using SQLite.