PHP Class Newscoop\Entity\Repository\LanguageRepository

Inheritance: extends Doctrine\ORM\EntityRepository
显示文件 Open project: sourcefabric/newscoop

Public Methods

Method Description
delete ( integer $id ) : void Delete language
findByRFC3066bis ( string $languageString, string $firstResultOnly = true ) : Language | null Tries to find Language entity by string. String should be in correct RFC3066bis standard.
getAllLanguages ( $order = 'asc' ) : array Get languages query
getLanguages ( ) : array Get languages
isUsed ( Language $language ) : boolean Check if in use
save ( Language $language, array $values ) : void Save language

Method Details

delete() public method

Delete language
public delete ( integer $id ) : void
$id integer
return void

findByRFC3066bis() public method

Tries to find Language entity by string. String should be in correct RFC3066bis standard.
public findByRFC3066bis ( string $languageString, string $firstResultOnly = true ) : Language | null
$languageString string Language string
$firstResultOnly string Return first result
return Newscoop\Entity\Language | null Returns found entity or null

getAllLanguages() public method

Get languages query
public getAllLanguages ( $order = 'asc' ) : array
return array

getLanguages() public method

Get languages
public getLanguages ( ) : array
return array

isUsed() public method

Check if in use
public isUsed ( Language $language ) : boolean
$language Newscoop\Entity\Language
return boolean

save() public method

Save language
public save ( Language $language, array $values ) : void
$language Newscoop\Entity\Language
$values array
return void