public function removeDisallowedWizardItems(array $allowed, array $disallowed, array &$wizardItems)
    {
        foreach ($wizardItems as $key => $wizardItem) {
            if (!$wizardItems[$key]['header']) {
                if (
                    (
                        !empty($allowed['CType']) &&
                        !isset($allowed['CType'][$wizardItems[$key]['tt_content_defValues']['CType']]) &&
                        !isset($allowed['CType']['*'])
                    ) ||
                    (
                        !empty($disallowed) && (
                            isset($disallowed['CType'][$wizardItems[$key]['tt_content_defValues']['CType']]) ||
                            isset($disallowed['CType']['*'])
                        )
                    ) ||
                    (
                        isset($wizardItems[$key]['tt_content_defValues']['list_type']) &&
                        !empty($allowed['list_type']) &&
                        !isset($allowed['list_type'][$wizardItems[$key]['tt_content_defValues']['list_type']]) &&
                        !isset($allowed['list_type']['*'])
                    ) ||
                    (
                        isset($wizardItems[$key]['tt_content_defValues']['list_type']) &&
                        !empty($disallowed) && (
                            isset($disallowed['list_type'][$wizardItems[$key]['tt_content_defValues']['list_type']]) ||
                            isset($disallowed['list_type']['*'])
                        )
                    )
                ) {
                    unset($wizardItems[$key]);
                }
            }
        }
    }
public function removeDisallowedWizardItems(array $allowed, array $disallowed, array &$wizardItems)
    {
        foreach ($wizardItems as $key => $wizardItem) {
            if (!$wizardItems[$key]['header']) {
                if (
                    (
                        !empty($allowed['CType']) &&
                        !isset($allowed['CType'][$wizardItems[$key]['tt_content_defValues']['CType']]) &&
                        !isset($allowed['CType']['*'])
                    ) ||
                    (
                        !empty($disallowed) && (
                            isset($disallowed['CType'][$wizardItems[$key]['tt_content_defValues']['CType']]) ||
                            isset($disallowed['CType']['*'])
                        )
                    ) ||
                    (
                        isset($wizardItems[$key]['tt_content_defValues']['list_type']) &&
                        !empty($allowed['list_type']) &&
                        !isset($allowed['list_type'][$wizardItems[$key]['tt_content_defValues']['list_type']]) &&
                        !isset($allowed['list_type']['*'])
                    ) ||
                    (
                        isset($wizardItems[$key]['tt_content_defValues']['list_type']) &&
                        !empty($disallowed) && (
                            isset($disallowed['list_type'][$wizardItems[$key]['tt_content_defValues']['list_type']]) ||
                            isset($disallowed['list_type']['*'])
                        )
                    )
                ) {
                    unset($wizardItems[$key]);
                }
            }
        }
    }
public function removeDisallowedWizardItems ( array $ allowed , array $ disallowed , array & $ wizardItems ) { foreach ( $ wizardItems as $ key => $ wizardItem ) { if ( ! $ wizardItems [ $ key ] [ 'header' ] ) { if ( ( ! empty ( $ allowed [ 'CType' ] ) && ! isset ( $ allowed [ 'CType' ] [ $ wizardItems [ $ key ] [ 'tt_content_defValues' ] [ 'CType' ] ] ) && ! isset ( $ allowed [ 'CType' ] [ '*' ] ) ) || ( ! empty ( $ disallowed ) && ( isset ( $ disallowed [ 'CType' ] [ $ wizardItems [ $ key ] [ 'tt_content_defValues' ] [ 'CType' ] ] ) || isset ( $ disallowed [ 'CType' ] [ '*' ] ) ) ) || ( isset ( $ wizardItems [ $ key ] [ 'tt_content_defValues' ] [ 'list_type' ] ) && ! empty ( $ allowed [ 'list_type' ] ) && ! isset ( $ allowed [ 'list_type' ] [ $ wizardItems [ $ key ] [ 'tt_content_defValues' ] [ 'list_type' ] ] ) && ! isset ( $ allowed [ 'list_type' ] [ '*' ] ) ) || ( isset ( $ wizardItems [ $ key ] [ 'tt_content_defValues' ] [ 'list_type' ] ) && ! empty ( $ disallowed ) && ( isset ( $ disallowed [ 'list_type' ] [ $ wizardItems [ $ key ] [ 'tt_content_defValues' ] [ 'list_type' ] ] ) || isset ( $ disallowed [ 'list_type' ] [ '*' ] ) ) ) ) { unset ( $ wizardItems [ $ key ] ) ; } } } }
remove disallowed content elements from wizard items

@param array $allowed
@param array $disallowed
@param array $wizardItems
remove disallowed content elements from wizard items