PHP 클래스 Newscoop\Entity\Repository\LanguageRepository

상속: extends Doctrine\ORM\EntityRepository
파일 보기 프로젝트 열기: sourcefabric/newscoop

공개 메소드들

메소드 설명
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

메소드 상세

delete() 공개 메소드

Delete language
public delete ( integer $id ) : void
$id integer
리턴 void

findByRFC3066bis() 공개 메소드

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
리턴 Newscoop\Entity\Language | null Returns found entity or null

getAllLanguages() 공개 메소드

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

getLanguages() 공개 메소드

Get languages
public getLanguages ( ) : array
리턴 array

isUsed() 공개 메소드

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

save() 공개 메소드

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