Backend\Modules\Locale\Actions\ExportAnalyse::setItems PHP Method

setItems() private method

Build items array and group all items by application, module, type and name.
private setItems ( )
    private function setItems()
    {
        $this->locale = array();
        // get items
        $frontend = BackendLocaleModel::getNonExistingFrontendLocale($this->filter['language']);
        // group by application, module, type and name
        foreach ($frontend as $item) {
            $item['value'] = null;
            $this->locale[$item['application']][$item['module']][$item['type']][$item['name']][] = $item;
        }
        // no need to keep this around
        unset($frontend);
        // get items
        $backend = BackendLocaleModel::getNonExistingBackendLocale($this->filter['language']);
        // group by application, module, type and name
        foreach ($backend as $item) {
            $item['value'] = null;
            $this->locale[$item['application']][$item['module']][$item['type']][$item['name']][] = $item;
        }
        // no need to keep this around
        unset($backend);
    }