public function exportCollection(ObjectCollection $collection, \SimpleXMLElement $element)
 {
     $node = $element->addChild('pagetypecomposercontroltypes');
     foreach ($collection->getItems() as $type) {
         $t = Type::getByID($type->getItemIdentifier());
         if (is_object($t)) {
             $t->export($node);
         }
     }
 }
Exemplo n.º 2
0
 public function exportCollection(ObjectCollection $collection, \SimpleXMLElement $element)
 {
     $node = $element->addChild('pages');
     foreach ($collection->getItems() as $page) {
         $c = \Page::getByID($page->getItemIdentifier());
         if (is_object($c) && !$c->isError()) {
             $c->export($node);
         }
     }
 }
 public function exportCollection(ObjectCollection $collection, \SimpleXMLElement $element)
 {
     $node = $element->addChild('attributekeys');
     foreach ($collection->getItems() as $key) {
         $ak = Key::getInstanceByID($key->getItemIdentifier());
         if (is_object($ak)) {
             $ak->export($node);
         }
     }
 }
Exemplo n.º 4
0
 public function exportCollection(ObjectCollection $collection, \SimpleXMLElement $element)
 {
     $node = $element->addChild('themes');
     foreach ($collection->getItems() as $theme) {
         $t = \Concrete\Core\Page\Theme\Theme::getByID($theme->getItemIdentifier());
         if (is_object($t)) {
             $t->export($node);
         }
     }
 }
 public function exportCollection(ObjectCollection $collection, \SimpleXMLElement $element)
 {
     $node = $element->addChild('conversationeditors');
     foreach ($collection->getItems() as $type) {
         $t = Editor::getByID($type->getItemIdentifier());
         if (is_object($t)) {
             $t->export($node);
         }
     }
 }
Exemplo n.º 6
0
 public function exportCollection(ObjectCollection $collection, \SimpleXMLElement $element)
 {
     $node = $element->addChild('jobs');
     foreach ($collection->getItems() as $type) {
         $j = \Concrete\Core\Job\Job::getByID($type->getItemIdentifier());
         if (is_object($j)) {
             $nodeType = $node->addChild('job');
             $nodeType->addAttribute('handle', $j->getJobHandle());
             $nodeType->addAttribute('package', $j->getPackageHandle());
         }
     }
 }
Exemplo n.º 7
0
 public function exportCollection(ObjectCollection $collection, \SimpleXMLElement $element)
 {
     $node = $element->addChild('blocktypes');
     foreach ($collection->getItems() as $type) {
         $bt = \Concrete\Core\Block\BlockType\BlockType::getByID($type->getItemIdentifier());
         if (is_object($bt)) {
             $nodeType = $node->addChild('blocktype');
             $nodeType->addAttribute('handle', $bt->getBlockTypeHandle());
             $nodeType->addAttribute('package', $bt->getPackageHandle());
         }
     }
 }
 public function exportCollection(ObjectCollection $collection, \SimpleXMLElement $element)
 {
     $node = $element->addChild('attributecategories');
     foreach ($collection->getItems() as $category) {
         $category = Category::getByID($category->getItemIdentifier());
         if (is_object($category)) {
             $cat = $node->addChild('category');
             $cat->addAttribute('handle', $category->getAttributeKeyCategoryHandle());
             $cat->addAttribute('allow-sets', $category->allowAttributeSets());
             $cat->addAttribute('package', $category->getPackageHandle());
         }
     }
 }