PHP 클래스 sfDoctrineRecord

저자: Olivier Verdier ([email protected])
상속: extends Doctrine_Record
파일 보기 프로젝트 열기: lexpress/symfony1 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_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

메소드 상세

__call() 공개 메소드

Provides getter and setter methods.
public __call ( string $method, array $arguments ) : mixed
$method string The method name
$arguments array The method arguments
리턴 mixed The returned value of the called method

__toString() 공개 메소드

Returns a string representation of the record.
public __toString ( ) : string
리턴 string A string representation of the record

construct() 공개 메소드

Initializes internationalization.
또한 보기: Doctrine_Record
public construct ( )

getDateTimeObject() 공개 메소드

Get the Doctrine date value as a PHP DateTime object, null if the value is not set
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

getDefaultCulture() 공개 정적인 메소드

Return the default culture
public static getDefaultCulture ( ) : string
리턴 string the default culture

getPrimaryKey() 공개 메소드

This a proxy method to {@link Doctrine_Record::identifier()} for compatibility with a Propel-style API.
public getPrimaryKey ( ) : mixed
리턴 mixed The value of the current model's last identifier column

isNew() 공개 메소드

Function require by symfony >= 1.2 admin generators.
public isNew ( ) : boolean
리턴 boolean

listenToChangeCultureEvent() 공개 정적인 메소드

Listens to the user.change_culture event.
public static listenToChangeCultureEvent ( sfEvent $event )
$event sfEvent

setDateTimeObject() 공개 메소드

Set the Doctrine date value by passing a valid PHP DateTime object instance
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

setDefaultCulture() 공개 정적인 메소드

Sets the default culture
public static setDefaultCulture ( string $culture )
$culture string

프로퍼티 상세

$_defaultCulture 보호되어 있는 정적으로 프로퍼티

protected static $_defaultCulture