コード例 #1
0
ファイル: CompositeBlock.php プロジェクト: Opifer/Cms
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->children = new ArrayCollection();
 }
コード例 #2
0
ファイル: GalleryBlock.php プロジェクト: dzoke/Cms
 public function __construct()
 {
     parent::__construct();
     $this->gallery = new ArrayCollection();
 }
コード例 #3
0
 protected function getMailingLists(Block $block)
 {
     $properties = $block->getProperties();
     if (!isset($properties['mailingLists']) || !count($properties['mailingLists'])) {
         return;
     }
     $mailingLists = $this->em->getRepository('OpiferMailingListBundle:MailingList')->findById($properties['mailingLists']);
     return $mailingLists;
 }