Ejemplo n.º 1
0
 /**
  * Updates provided contentset's elements with data.
  *
  * @param  ContentSet $content
  * @param  array      $elementsData
  *
  * @return ClassContentManager
  */
 private function updateContentSetElements(ContentSet $content, array $elementsData)
 {
     $content->clear();
     foreach ($elementsData as $data) {
         if ($data instanceof AbstractClassContent) {
             $content->push($data);
         }
     }
     return $this;
 }
Ejemplo n.º 2
0
 /**
  * Is the ContentSet is linked to his parent.
  *
  * @param  ContentSet           $contentset
  *
  * @return boolean
  */
 public function isLinkedToHisParentBy(ContentSet $contentset = null)
 {
     if (null !== $contentset && true === array_key_exists($contentset->getUid(), $this->getInheritedZones())) {
         return true;
     }
     return false;
 }