PHP Class Newscoop\Subscription\SectionFacade

Afficher le fichier Open project: sourcefabric/newscoop

Protected Properties

Свойство Type Description
$em Doctrine\ORM\EntityManager
$repository Newscoop\Subscription\SectionRepository

Méthodes publiques

Méthode Description
__construct ( EntityManager $em )
delete ( integer $id ) : void Delete section
find ( integer $id ) : Newscoop\Subscription\Section Find section
save ( array $values, Section $section = null ) : Newscoop\Subscription\Section Save section

Private Methods

Méthode Description
getLanguage ( array $values ) : Newscoop\Entity\Language Get language
getSectionNumber ( array $values ) : integer Get section number
getSubscription ( array $values ) : Newscoop\Subscription\Subscription Get subscription

Method Details

__construct() public méthode

public __construct ( EntityManager $em )
$em Doctrine\ORM\EntityManager

delete() public méthode

Delete section
public delete ( integer $id ) : void
$id integer
Résultat void

find() public méthode

Find section
public find ( integer $id ) : Newscoop\Subscription\Section
$id integer
Résultat Newscoop\Subscription\Section

save() public méthode

Save section
public save ( array $values, Section $section = null ) : Newscoop\Subscription\Section
$values array
$section Section
Résultat Newscoop\Subscription\Section

Property Details

$em protected_oe property

protected Doctrine\ORM\EntityManager $em
Résultat Doctrine\ORM\EntityManager

$repository protected_oe property

protected Newscoop\Subscription\SectionRepository $repository
Résultat Newscoop\Subscription\SectionRepository