Constants

GENRE_MAN

GENRE_MAN

GENRE_WOMAN

GENRE_WOMAN

ERROR_OPENING_IS_INSIDE_CLOSING

ERROR_OPENING_IS_INSIDE_CLOSING

ERROR_OPENING_NOT_CLOSED_IS_BEFORE_NEW_LINE

ERROR_OPENING_NOT_CLOSED_IS_BEFORE_NEW_LINE

ERROR_OPENING_NOT_CLOSE_IS_INSIDE_CLOSED_ACCOMPANYING_PERIOD_LINE

ERROR_OPENING_NOT_CLOSE_IS_INSIDE_CLOSED_ACCOMPANYING_PERIOD_LINE

ERROR_OPENING_IS_BEFORE_OTHER_LINE_AND_CLOSED_IS_AFTER_THIS_LINE

ERROR_OPENING_IS_BEFORE_OTHER_LINE_AND_CLOSED_IS_AFTER_THIS_LINE

Properties

$id

$id : integer

Type

integer

$firstName

$firstName : string

Type

string

$lastName

$lastName : string

Type

string

$dateOfBirth

$dateOfBirth : \DateTime

Type

\DateTime

$placeOfBirth

$placeOfBirth : string

Type

string

$genre

$genre : string

Type

string

$memo

$memo : string

Type

string

$email

$email : string

Type

string

$countryOfBirth

$countryOfBirth : \CL\Chill\MainBundle\Entity\Country

Type

\CL\Chill\MainBundle\Entity\Country

$nationality

$nationality : \CL\Chill\MainBundle\Entity\Country

Type

\CL\Chill\MainBundle\Entity\Country

$history

$history : \Doctrine\Common\Collections\ArrayCollection

Type

\Doctrine\Common\Collections\ArrayCollection

$proxyHistoryOpenState

$proxyHistoryOpenState : boolean

Type

boolean

$cFData

$cFData : array

The array where customfields data is stored

Type

array

$phonenumber

$phonenumber : string

Type

string

$spokenLanguages

$spokenLanguages : \Doctrine\Common\Collections\ArrayCollection

The spoken languages (ArrayCollection of Languages)

Type

\Doctrine\Common\Collections\ArrayCollection

Methods

__construct()

__construct(\DateTime  $opening = null) 

Parameters

\DateTime $opening

open()

open(\Chill\PersonBundle\Entity\AccompanyingPeriod  $accompanyingPeriod) 

set the Person file as open at the given date.

For updating a opening's date, you should update AccompanyingPeriod instance directly.

For closing a file, @see this::close

To check if the Person and its accompanying period is consistent, use validation.

Parameters

\Chill\PersonBundle\Entity\AccompanyingPeriod $accompanyingPeriod

close()

close(\Chill\PersonBundle\Entity\AccompanyingPeriod  $accompanyingPeriod) 

Set the Person file as closed at the given date.

For update a closing date, you should update AccompanyingPeriod instance directly.

To check if the Person and its accompanying period are consistent, use validation.

Parameters

\Chill\PersonBundle\Entity\AccompanyingPeriod $accompanyingPeriod

Throws

\Exception

if two lines of the accompanying period are open.

getAccompanyingPeriods()

getAccompanyingPeriods() : \Doctrine\Common\Collections\ArrayCollection

Returns

\Doctrine\Common\Collections\ArrayCollection

isOpen()

isOpen() 

getId()

getId() : integer

Get id

Returns

integer

setFirstName()

setFirstName(string  $firstName) : \Chill\PersonBundle\Entity\Person

Set firstName

Parameters

string $firstName

Returns

\Chill\PersonBundle\Entity\Person

getFirstName()

getFirstName() : string

Get firstName

Returns

string

getLastName()

getLastName() : string

Get lastName

Returns

string

setDateOfBirth()

setDateOfBirth(\DateTime  $dateOfBirth) : \Chill\PersonBundle\Entity\Person

Set dateOfBirth

Parameters

\DateTime $dateOfBirth

Returns

\Chill\PersonBundle\Entity\Person

getDateOfBirth()

getDateOfBirth() : \DateTime

Get dateOfBirth

Returns

\DateTime

setPlaceOfBirth()

setPlaceOfBirth(string  $placeOfBirth) : \Chill\PersonBundle\Entity\Person

Set placeOfBirth

Parameters

string $placeOfBirth

Returns

\Chill\PersonBundle\Entity\Person

getPlaceOfBirth()

getPlaceOfBirth() : string

Get placeOfBirth

Returns

string

getGenre()

getGenre() : string

Get genre

Returns

string

getGenreNumeric()

getGenreNumeric() : integer

return gender as a Numeric form.

This is used for translations

Returns

integer

getMemo()

getMemo() : string

Get memo

Returns

string

getEmail()

getEmail() : string

Get email

Returns

string

setCountryOfBirth()

setCountryOfBirth(\Chill\PersonBundle\Entity\Chill\MainBundle\Entity\Country  $countryOfBirth = null) : \Chill\PersonBundle\Entity\Person

Set countryOfBirth

Parameters

\Chill\PersonBundle\Entity\Chill\MainBundle\Entity\Country $countryOfBirth

Returns

\Chill\PersonBundle\Entity\Person

getCountryOfBirth()

getCountryOfBirth() : \Chill\PersonBundle\Entity\Chill\MainBundle\Entity\Country

Get countryOfBirth

Returns

\Chill\PersonBundle\Entity\Chill\MainBundle\Entity\Country

setNationality()

setNationality(\Chill\PersonBundle\Entity\Chill\MainBundle\Entity\Country  $nationality = null) : \Chill\PersonBundle\Entity\Person

Set nationality

Parameters

\Chill\PersonBundle\Entity\Chill\MainBundle\Entity\Country $nationality

Returns

\Chill\PersonBundle\Entity\Person

getNationality()

getNationality() : \Chill\PersonBundle\Entity\Chill\MainBundle\Entity\Country

Get nationality

Returns

\Chill\PersonBundle\Entity\Chill\MainBundle\Entity\Country

getLabel()

getLabel() 

setCFData()

setCFData(array  $cFData) : \Chill\PersonBundle\Entity\Report

Set cFData

Parameters

array $cFData

Returns

\Chill\PersonBundle\Entity\Report

getCFData()

getCFData() : array

Get cFData

Returns

array

setPhonenumber()

setPhonenumber(string  $phonenumber = '') : \Chill\PersonBundle\Entity\Person

Set phonenumber

Parameters

string $phonenumber

Returns

\Chill\PersonBundle\Entity\Person

getPhonenumber()

getPhonenumber() : string

Get phonenumber

Returns

string

__toString()

__toString() 

setSpokenLanguages()

setSpokenLanguages(\Chill\PersonBundle\Entity\type  $spokenLanguages) : \Chill\PersonBundle\Entity\Person

Set spokenLanguages

Parameters

\Chill\PersonBundle\Entity\type $spokenLanguages

Returns

\Chill\PersonBundle\Entity\Person

getSpokenLanguages()

getSpokenLanguages() : \Doctrine\Common\Collections\ArrayCollection

Get spokenLanguages

Returns

\Doctrine\Common\Collections\ArrayCollection

isAccompanyingPeriodValid()

isAccompanyingPeriodValid(\Symfony\Component\Validator\ExecutionContextInterface  $context) 

Parameters

\Symfony\Component\Validator\ExecutionContextInterface $context

checkAccompanyingPeriodIsNotCovering()

checkAccompanyingPeriodIsNotCovering()