version 4.13.0
This commit is contained in:
21
includes/builder/module/field/attribute/composite/Parser.php
Normal file
21
includes/builder/module/field/attribute/composite/Parser.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Parser of additional composite type attributes
|
||||
*/
|
||||
class ET_Builder_Module_Field_Attribute_Composite_Parser {
|
||||
/**
|
||||
* @param string $type type of composite attribute
|
||||
* @param array $structure attribute structure, depends on type
|
||||
*
|
||||
* @return array Additional attributes for merging with rest of module attributes
|
||||
*/
|
||||
public static function parse( $type, $structure ) {
|
||||
switch ( $type ) {
|
||||
case 'tabbed':
|
||||
default:
|
||||
require_once ET_BUILDER_DIR . 'module/field/attribute/composite/type/Tabbed.php';
|
||||
return ET_Builder_Module_Field_Attribute_Composite_Type_Tabbed::parse( $structure );
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user