Свойство | Тип | Описание | |
---|---|---|---|
$_defaultCulture |
Метод | Описание | |
---|---|---|
__call ( string $method, array $arguments ) : mixed | Provides getter and setter methods. | |
__toString ( ) : string | Returns a string representation of the record. | |
construct ( ) | Initializes internationalization. | |
getDateTimeObject ( string $dateFieldName ) : DateTime | null | Get the Doctrine date value as a PHP DateTime object, null if the value is not set | |
getDefaultCulture ( ) : string | Return the default culture | |
getPrimaryKey ( ) : mixed | Returns the current record's primary key. | |
isNew ( ) : boolean | Function require by symfony >= 1.2 admin generators. | |
listenToChangeCultureEvent ( sfEvent $event ) | Listens to the user.change_culture event. | |
setDateTimeObject ( string $dateFieldName, DateTime $dateTimeObject = null ) : sfDoctrineRecord | Set the Doctrine date value by passing a valid PHP DateTime object instance | |
setDefaultCulture ( string $culture ) | Sets the default culture |
public __toString ( ) : string | ||
Результат | string | A string representation of the record |
public getDateTimeObject ( string $dateFieldName ) : DateTime | null | ||
$dateFieldName | string | The field name to get the DateTime object for |
Результат | DateTime | null | $dateTime The instance of PHPs DateTime |
public static getDefaultCulture ( ) : string | ||
Результат | string | the default culture |
public getPrimaryKey ( ) : mixed | ||
Результат | mixed | The value of the current model's last identifier column |
public static listenToChangeCultureEvent ( sfEvent $event ) | ||
$event | sfEvent |
public setDateTimeObject ( string $dateFieldName, DateTime $dateTimeObject = null ) : sfDoctrineRecord | ||
$dateFieldName | string | The field name to set the date for |
$dateTimeObject | DateTime | The DateTime instance to use to set the value |
Результат | sfDoctrineRecord |
public static setDefaultCulture ( string $culture ) | ||
$culture | string |