Returns all views connected to a controller.

@param  array $values
@return array An array with the allowed views.
541916
public function getViews(array $values)
    {
        $config = $this->getServiceLocator()->get('Config');
        if (!isset($values['controller'])) {
            throw new Exception('No controller data received.');
        }
        $controller = $values['controller'];
        if (!isset($config['jaztec_admin']['modules']['views'][$controller])) {
            return array();
        }
        $paths  = $config['jaztec_admin']['modules']['views'][$controller]['paths'];

        return $this->getFiles($paths, 'view');
    }
167946
protected function getArrayableItems(array $values)
    {
        $encryptedFields = static::getEncryptedFields();

        if (count($this->getVisible()) > 0) {
            $visibles = $this->getVisible();
            $intValues = array_intersect_key($values, array_flip($visibles));

            foreach ($encryptedFields as $encryptedField) {
                if (in_array($encryptedField, $visibles) && isset($values[$encryptedField])) {
                    $intValues["{$encryptedField}_encrypted"] = $values[$encryptedField];
                }
                if (in_array($encryptedField, $visibles) && isset($values["{$encryptedField}_encrypted"])) {
                    $intValues["{$encryptedField}_encrypted"] = $values["{$encryptedField}_encrypted"];
                }
            }

            $values = $intValues;
        }

        if (count($this->getHidden()) > 0) {
            $hiddenFields = $this->getHidden();
            $values = array_diff_key($values, array_flip($hiddenFields));

            foreach ($encryptedFields as $encryptedField) {
                if (in_array($encryptedField, $hiddenFields)) {
                    unset($values["{$encryptedField}_encrypted"]);
                }
            }
        }

        return $values;
    }
568072
protected function getArray($values)
    {
        $values = explode(',', $values);

        array_walk($values, function (&$value) {
            $value = trim($value);
        });

        return $values;
    }
868649
public function process(array $values)
    {
        $results = [];

        foreach ($values as $value) {
            list($rootPageUid, $mountPoint) = GeneralUtility::trimExplode(',',
                $value, true, 2);
            $results[] = $this->getSolrRootlineForPageId($rootPageUid,
                $mountPoint);
        }

        return $results;
    }
844181
public function loadValues(array $values)
    {
        foreach ($values as $name => $value) {
            $argument = $this->getArgument($name, static::MODE_RETURN_NULL);

            if (null !== $argument) {
                $argument->setValue($value);
            }
        }

        return $this;
    }
1110185
public function process(array $values)
    {
        $results = [];

        foreach ($values as $value) {
            $valueResults = $this->buildSolrHierarchyFromPath($value);
            $results = array_merge($results, $valueResults);
        }

        return array_unique($results);
    }
1324956
protected function renderedListFilterStrategies(array $values)
    {
        if ($this->getModelInformation()->list->disable_filters) {
            return [];
        }

        $views = [];

        foreach ($this->getModelInformation()->list->filters as $key => $data) {

            try {
                $instance = $this->getFilterFactory()->make($data->strategy, $key, $data);

                // @codeCoverageIgnoreStart
            } catch (\Exception $e) {

                $message = "Failed to make list filter strategy for '{$key}': \n{$e->getMessage()}";

                throw new StrategyRenderException($message, $e->getCode(), $e);
                // @codeCoverageIgnoreEnd
            }

            try {
                $views[ $key ] = $instance->render($key, array_get($values, $key));

                // @codeCoverageIgnoreStart
            } catch (\Exception $e) {

                $message = "Failed to render list filter '{$key}' for strategy " . get_class($instance)
                         . ": \n{$e->getMessage()}";

                throw new StrategyRenderException($message, $e->getCode(), $e);
                // @codeCoverageIgnoreEnd
            }
        }

        return $views;
    }
4252
public function groupQueryValues(array $values)
    {
        $joined = Resources::EMPTY_STRING;

        foreach ($values as $value) {
            if (!is_null($value) && !empty($value)) {
                $joined .= $value.Resources::SEPARATOR;
            }
        }

        return trim($joined, Resources::SEPARATOR);
    }
391498
protected function filterNullValues(array $values)
    {
        $result = array_filter(
            $values,
            function($val) {
                return $val || 0 === $val || false === $val;
            }
        );

        return $result;
    }
308147
public function pullAll(array $values)
    {
        $this->requiresCurrentField();
        $this->newObj['$pullAll'][$this->currentField] = $values;
        return $this;
    }
262875
public function autocompleteViewVars()
    {
        if (!$this->parent) {
            return [];
        }

        $parent_controller = new $this->parent_controller;

        return [
            'parent_id' => $this->parent->getKey(),
            'parent_controller' => $this->parent_controller,
            'parent_controller_title' => $parent_controller->title(),
            'parent_controller_description' => $parent_controller->description(),
            'many_to_many' => $this->isChildInManyToMany(),
        ];
    }
1216513
protected function isActiveUrl(array $values)
    {
        // Do we have a custom resolver? If so, use it:
        if($activeUrlResolver = $this->activeUrlResolver) {
            return $activeUrlResolver($values);
        }

        // If the current URL is the base URL or the exact attribute is set to true, then check for the exact URL
        if ($values['exact'] ?? false || $values['url'] == $this->baseUrl) {
            return $this->activeUrl === $values['url'];
        }

        // Otherwise use the default resolver:
        return strpos($this->activeUrl, $values['url']) === 0;
    }
924001
public function filter($values)
    {
        if (is_array($values)) {
            foreach ($values as $key => $value) {
                $values[$key] = $this->filterValue($value);
            }
        }

        return $values;
    }
951191
public static function only(array $values): array
    {
        $items = [];

        foreach ($values as $value) {
            $item = static::get($value);
            $items[$item->value()] = $item;
        }

        return $items;
    }
794427
protected function getRevisionableItems(array $values)
    {
        if (count($this->getRevisionable()) > 0) {
            return array_intersect_key($values, array_flip($this->getRevisionable()));
        }

        return array_diff_key($values, array_flip($this->getNonRevisionable()));
    }
462
public function listViews()
    {
        $database = $this->_conn->getDatabase();
        $sql      = $this->_platform->getListViewsSQL($database);
        $views    = $this->_conn->fetchAll($sql);

        return $this->_getPortableViewsList($views);
    }
1029385
function InListFromValues(array $values)
    {
        if (count($values) == 0)
        {
            return null;
        }
        $list = $this->InList($this->Value($values[0]));
        foreach ($values as $value)
        {
            $list->Add($this->Value($value));
        }
        return $list;
    }