Skip to content

Commit

Permalink
Merge pull request #7 from concrete5-community/v9-entities
Browse files Browse the repository at this point in the history
Add support for new v9 stuff
  • Loading branch information
mlocati authored Apr 20, 2020
2 parents 1ed0b6d + e4d4fbb commit 21cd89e
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/Parser/Cif.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@ private static function parseXmlNode(\Gettext\Translations $translations, $filen
case '/concrete5-cif/blocktypes/blocktype':
case '/concrete5-cif/blocktypesets':
case '/concrete5-cif/blocktypesets/blocktypeset/blocktype':
case '/concrete5-cif/boarddatasources':
case '/concrete5-cif/boardslottemplates':
case '/concrete5-cif/boardtemplates':
case '/concrete5-cif/composercontroltypes':
case '/concrete5-cif/containers':
case '/concrete5-cif/conversationeditors':
case '/concrete5-cif/conversationratingtypes':
case '/concrete5-cif/gatheringitemtemplates':
Expand Down Expand Up @@ -184,6 +188,9 @@ private static function parseXmlNode(\Gettext\Translations $translations, $filen
case '/concrete5-cif/singlepages/page/area/blocks':
case '/concrete5-cif/singlepages/page/attributes':
case '/concrete5-cif/singlepages/page/attributes/attributekey':
case '/concrete5-cif/summarycategories':
case '/concrete5-cif/summaryfields':
case '/concrete5-cif/summarytemplates':
case '/concrete5-cif/stacks':
case '/concrete5-cif/stacks/stack/area/block/data':
case '/concrete5-cif/stacks/stack/area/block/link':
Expand Down Expand Up @@ -232,6 +239,8 @@ private static function parseXmlNode(\Gettext\Translations $translations, $filen
case '/concrete5-cif/sociallinks':
case '/concrete5-cif/stacks/stack/area/block/data/record':
case '/concrete5-cif/stacks/stack/area/blocks/block':
case '/concrete5-cif/summarytemplates/template/categories':
case '/concrete5-cif/summarytemplates/template/fields':
// Skip this node and its children
return;
case '/concrete5-cif/pages/page/area/block':
Expand Down Expand Up @@ -388,6 +397,27 @@ private static function parseXmlNode(\Gettext\Translations $translations, $filen
case '/concrete5-cif/ipaccesscontrolcategories/ipaccesscontrolcategory':
static::readXmlNodeAttribute($translations, $filenameRel, $node, 'name', 'IpAccessControlCategory');
break;
case '/concrete5-cif/boarddatasources/datasource':
static::readXmlNodeAttribute($translations, $filenameRel, $node, 'name', 'BoardDataSourceName');
break;
case '/concrete5-cif/boardslottemplates/template':
static::readXmlNodeAttribute($translations, $filenameRel, $node, 'name', 'BoardSlotTemplateName');
break;
case '/concrete5-cif/boardtemplates/template':
static::readXmlNodeAttribute($translations, $filenameRel, $node, 'name', 'BoardTemplateName');
break;
case '/concrete5-cif/containers/container':
static::readXmlNodeAttribute($translations, $filenameRel, $node, 'name', 'PageContainerName');
break;
case '/concrete5-cif/summarycategories/category':
static::readXmlNodeAttribute($translations, $filenameRel, $node, 'name', 'SummaryCategoryName');
break;
case '/concrete5-cif/summaryfields/field':
static::readXmlNodeAttribute($translations, $filenameRel, $node, 'name', 'SummaryFieldName');
break;
case '/concrete5-cif/summarytemplates/template':
static::readXmlNodeAttribute($translations, $filenameRel, $node, 'name', 'SummaryTemplateName');
break;
default:
if (strpos($filenameRel, 'packages/') === 0) {
return;
Expand Down

0 comments on commit 21cd89e

Please sign in to comment.