示例#1
0
 /**
  * Add blocs
  *
  * @param PageBlockInterface $blocs
  */
 public function addBlocks(PageBlockInterface $blocs)
 {
     $blocs->setPage($this);
     $this->blocks[] = $blocs;
 }
示例#2
0
 /**
  * Add block
  *
  * @param \Symbio\OrangeGate\PageBundle\Entity\Block $block
  * @return Page
  */
 public function addBlock(PageBlockInterface $block)
 {
     $block->setPage($this);
     $this->blocks[] = $block;
     return $this;
 }