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

setItems() private method

Build items array and group all items by application, module, type and name.
private setItems ( )
    private function setItems()
    {
        list($query, $parameters) = $this->buildQuery();
        // get locale from the database
        $items = (array) $this->get('database')->getRecords($query, $parameters);
        // init
        $this->locale = array();
        // group by application, module, type and name
        foreach ($items as $item) {
            $this->locale[$item['application']][$item['module']][$item['type']][$item['name']][] = $item;
        }
        // no need to keep this around
        unset($items);
    }