public function containerItemsProcFunc(array &$params)
    {
        $this->init($params['row']['pid']);
        $possibleContainers = [];
        $this->removeItemsFromListOfSelectableContainers($params, $possibleContainers);

        if (!empty($possibleContainers)) {
            $params['items'] = array_merge($params['items'], $possibleContainers);
        }
        $itemUidList = '';
        if (count($params['items']) > 1) {
            foreach ($params['items'] as $container) {
                if ($container[1] > 0) {
                    $itemUidList .= $itemUidList ? ',' . $container[1] : $container[1];
                }
            }
        }

        if ($itemUidList) {
            $this->deleteDisallowedContainers($params, $itemUidList);
        }
    }
public function containerItemsProcFunc(array &$params)
    {
        $this->init($params['row']['pid']);
        $possibleContainers = [];
        $this->removeItemsFromListOfSelectableContainers($params, $possibleContainers);

        if (!empty($possibleContainers)) {
            $params['items'] = array_merge($params['items'], $possibleContainers);
        }
        $itemUidList = '';
        if (count($params['items']) > 1) {
            foreach ($params['items'] as $container) {
                if ($container[1] > 0) {
                    $itemUidList .= $itemUidList ? ',' . $container[1] : $container[1];
                }
            }
        }

        if ($itemUidList) {
            $this->deleteDisallowedContainers($params, $itemUidList);
        }
    }
public function containerItemsProcFunc ( array & $ params ) { $ this -> init ( $ params [ 'row' ] [ 'pid' ] ) ; $ possibleContainers = [ ] ; $ this -> removeItemsFromListOfSelectableContainers ( $ params , $ possibleContainers ) ; if ( ! empty ( $ possibleContainers ) ) { $ params [ 'items' ] = array_merge ( $ params [ 'items' ] , $ possibleContainers ) ; } $ itemUidList = '' ; if ( count ( $ params [ 'items' ] ) > 1 ) { foreach ( $ params [ 'items' ] as $ container ) { if ( $ container [ 1 ] > 0 ) { $ itemUidList .= $ itemUidList ? ',' . $ container [ 1 ] : $ container [ 1 ] ; } } } if ( $ itemUidList ) { $ this -> deleteDisallowedContainers ( $ params , $ itemUidList ) ; } }
ItemProcFunc for container items
removes items of the children chain from the list of selectable containers
if the element itself already is a container

@param array $params An array containing the items and parameters for the list of items
ItemProcFunc for container items removes items of the children chain from the list of selectable containers if the element itself already is a container