public function getInstalledTargetItems(Batch $batch)
 {
     $areas = \Concrete\Core\Area\Area::getHandleList();
     asort($areas);
     $items = array();
     foreach ($areas as $area) {
         $item = new TargetItem($this);
         $item->setItemId($area);
         $item->setItemName($area);
         $items[] = $item;
     }
     return $items;
 }
 public function add()
 {
     $pageTypes = array('' => t('** No Filtering'));
     $types = Type::getList();
     foreach ($types as $type) {
         $pageTypes[$type->getPageTypeID()] = $type->getPageTypeName();
     }
     $this->set('pageTypes', $pageTypes);
     $areas = Area::getHandleList();
     $select = array();
     foreach ($areas as $handle) {
         $select[$handle] = $handle;
     }
     $this->set('areas', $select);
 }
Beispiel #3
-1
 public function add()
 {
     $pageTypes = array('' => t('** No Filtering'));
     $types = Type::getList();
     foreach ($types as $type) {
         $pageTypes[$type->getPageTypeID()] = $type->getPageTypeDisplayName();
     }
     $this->set('pageTypes', $pageTypes);
     $attributeKeys = array();
     $keys = CollectionKey::getList();
     foreach ($keys as $ak) {
         if ($ak->getAttributeTypeHandle() == 'topics') {
             $attributeKeys[] = $ak;
         }
     }
     $this->set('topicAttributes', $attributeKeys);
     $areas = Area::getHandleList();
     $select = array();
     foreach ($areas as $handle) {
         $select[$handle] = $handle;
     }
     $this->set('areas', $select);
     $this->requireAsset('core/topics');
 }