class I18n

Created by JetBrains PhpStorm.

Date: 8/19/13 Time: 3:24 PM

Helper for translations

Methods

getDateTimeFromForm( Lang $lang, string $date)

Create a \DateTime from a date picker form input The date format is the same as the one from the current User Session Ex : $lang = $session->getLang()

static 
forceI18nRetrieving($askedLocale, $modelName, $id, $needed = array('Title'))

No description

static 
addI18nCondition( ModelCriteria $query, $i18nTableName, $tableIdColumn, $i18nIdColumn, $localeColumn, $locale)

No description

static  string
realEscape($str)

No description

Details

at line 43
DateTime getDateTimeFromForm( Lang $lang, string $date)

Create a \DateTime from a date picker form input The date format is the same as the one from the current User Session Ex : $lang = $session->getLang()

Parameters

Lang $lang Object containing date format
string $date String to convert

Return Value

DateTime

at line 50
static forceI18nRetrieving($askedLocale, $modelName, $id, $needed = array('Title'))

Parameters

$askedLocale
$modelName
$id
$needed

at line 87
static addI18nCondition( ModelCriteria $query, $i18nTableName, $tableIdColumn, $i18nIdColumn, $localeColumn, $locale)

Parameters

ModelCriteria $query
$i18nTableName
$tableIdColumn
$i18nIdColumn
$localeColumn
$locale

at line 122
static string realEscape($str)

Parameters

$str

Return Value

string Really escapes a string for SQL query.