PHP Class Newscoop\Subscription\SectionFacade

Datei anzeigen Open project: sourcefabric/newscoop

Protected Properties

Property Type Description
$em Doctrine\ORM\EntityManager
$repository Newscoop\Subscription\SectionRepository

Public Methods

Method 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

Method 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 method

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

delete() public method

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

find() public method

Find section
public find ( integer $id ) : Newscoop\Subscription\Section
$id integer
return Newscoop\Subscription\Section

save() public method

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

Property Details

$em protected_oe property

protected Doctrine\ORM\EntityManager $em
return Doctrine\ORM\EntityManager

$repository protected_oe property

protected Newscoop\Subscription\SectionRepository $repository
return Newscoop\Subscription\SectionRepository