Récupération des données

@return array
768914
public function getDatas()
    {
        if ($this->datas === null) {
            $this->datas = $this->readDatas();
        }
        
        return $this->datas;
    }
837904
public function get_items() {
        if (!isset($this->data[Parser::INDEX_CHILDREN_SPEC])) {
            return array();
        }

        $items = array();
        foreach ($this->data[Parser::INDEX_CHILDREN_SPEC] as $k => $data) {
            $items[] = $this->api->get_item($data['value']);
        }
        
        return $items;
    }
188301
private function getResumen()
    {
        // si hay detalles generar resumen
        $Resumen = [];
        $RangoUtilizados = [];
        //$RangoAnulados = [];
        foreach ($this->detalles as &$d) {
            // si no existe el tipo de documento se utiliza
            if (!isset($Resumen[$d['TpoDoc']])) {
                $key = array_search($d['TpoDoc'], $this->documentos);
                if ($key!==false) {
                    unset($this->documentos[$key]);
                }
                $Resumen[$d['TpoDoc']] = [
                    'TipoDocumento' => $d['TpoDoc'],
                    'MntNeto' => false,
                    'MntIva' => false,
                    'TasaIVA' => $d['TasaImp'] ? $d['TasaImp'] : false,
                    'MntExento' => false,
                    'MntTotal' => 0,
                    'FoliosEmitidos' => 0,
                    'FoliosAnulados' => 0,
                    'FoliosUtilizados' => false,
                    'RangoUtilizados' => false,
                    //'RangoAnulados' => false,
                ];
                $RangoUtilizados[$d['TpoDoc']] = [];
                //$RangoAnulados[$d['TpoDoc']] = [];
            }
            // ir agregando al resumen cada detalle
            if ($d['MntNeto']) {
                $Resumen[$d['TpoDoc']]['MntNeto'] += $d['MntNeto'];
                $Resumen[$d['TpoDoc']]['MntIva'] += $d['MntIVA'];
            }
            if ($d['MntExe']) {
                $Resumen[$d['TpoDoc']]['MntExento'] += $d['MntExe'];
            }
            $Resumen[$d['TpoDoc']]['MntTotal'] += $d['MntTotal'];
            $Resumen[$d['TpoDoc']]['FoliosEmitidos']++;
            // ir guardando folios emitidos para luego crear rangos
            $RangoUtilizados[$d['TpoDoc']][] = $d['NroDoc'];
        }
        // ajustes post agregar detalles
        foreach ($Resumen as &$r) {
            // obtener folios utilizados = emitidos + anulados
            $r['FoliosUtilizados'] = $r['FoliosEmitidos'] + $r['FoliosAnulados'];
            $r['RangoUtilizados'] = $this->getRangos($RangoUtilizados[$r['TipoDocumento']]);
        }
        // completar con los resumenes que no se colocaron
        foreach ($this->documentos as $tipo) {
            $Resumen[$tipo] = [
                'TipoDocumento' => $tipo,
                'MntTotal' => 0,
                'FoliosEmitidos' => 0,
                'FoliosAnulados' => 0,
                'FoliosUtilizados' => 0,
            ];
        }
        // entregar resumen
        return $Resumen;
    }
453901
public function get(): array
    {
        $dataFetcher = new DataFetcher($this->httpClient);

        $this->data = $dataFetcher->get($this->query, $this->pluck);

        return $this->data;
    }
508150
public function all()
    {
        $this->reset();
        $result = [];

        while ($row = $this->get()) {
            $result[] = $row;
        }

        return $result;
    }
1290839
protected function retrieveRoutes()
    {
        $routes = null;

        // 1st of all we'll try to fetch routes from cache if enabled
        if (true === $this->isCacheEnabled()) {

            try {
                $routes = $this->restore($this->getUuid(), $this->getScope());

            } catch (Doozr_Cache_Service_Exception $e) {
                $routes = null;
            }
        }

        // If cache either disabled or routes could not be fetched -> retrieve them right now ...
        if (null === $routes) {
            $routesFromPresenters    = $this->getRoutesFromPresenters();
            $routesFromConfiguration = $this->getRoutesFromConfiguration(
                (array) $this->getRegistry()->getConfiguration()->kernel->transmission->routing->routes
            );

            $routes = array_merge_recursive($routesFromPresenters, $routesFromConfiguration);

            // Cache if enabled ...
            if (true === $this->getCacheEnabled()) {
                $this->store($routes);
            }
        }

        // Return routes either from cache or fresh retrieved ...
        return $routes;
    }
191080
public function recover()
    {
        return array_map(function ($value) {
            return $value instanceof Serialization ? $value->recover() : $value;
        }, $this->values);
    }
522714
protected function get_regraded_questions() {
        global $DB;

        $qubaids = $this->get_qubaids_condition();
        $regradedqs = $DB->get_records_select('quiz_overview_regrades',
                'questionusageid ' . $qubaids->usage_id_in(), $qubaids->usage_id_in_params());
        return quiz_report_index_by_keys($regradedqs, array('questionusageid', 'slot'));
    }
880264
public function getTrackRestoreCodes()
    {
        $select = $this->_getRestoreSelect();
        $select->where('(grc_for_tracks = 1 OR grc_for_surveys = ?)', self::APPLY_STOP);

        return $this->_translateAndSort($this->db->fetchPairs($select));
    }
99265
public function apiRestore()
    {
        $toRestore = request()->input('list');

        if (sizeOf($toRestore) <= 0)
            return HCLog::info('CORE-0006', trans('HCTranslations::core.nothing_to_restore'));

        $response = $this->__apiRestore($toRestore);

        if (isset($response))
            return $response;

        return ['success' => true, 'list' => $toRestore];
    }
717765
public function getRetrieveMethodName()
    {
        if ($this->getTable()->isAlias()) {
            $retrieveMethod = "retrieve" . $this->getTable()->getPhpName() . "ByPK";
        } else {
            $retrieveMethod = "retrieveByPK";
        }

        return $retrieveMethod;
    }
877542
public function getResultados()
    {
        if (!$this->esResultadoDTE())
            return false;
        // si no hay respustas se deben crear
        if (!$this->respuesta_documentos) {
            // si no está creado el arrelgo con los datos error
            if (!$this->arreglo) {
                return false;
            }
            // crear repuestas a partir del arreglo
            $Resultados = $this->arreglo['RespuestaDTE']['Resultado']['ResultadoDTE'];
            if (!isset($Resultados[0]))
                $Resultados = [$Resultados];
            foreach ($Resultados as $Resultado) {
                $this->respuesta_documentos[] = $Resultado;
            }
        }
        // entregar recibos
        return $this->respuesta_documentos;
    }
950650
public function getOriginalData()
    {
        $data = $this->data;
        $originals = array();
        foreach ($this->getOriginalFields() as $field) {
            $key = 'original_' . $field;
            if (array_key_exists($key, $data)) {
                $originals[$field] = $data[$key];
            }
        }
        return $originals;
    }
1189707
public function getAll()
    {
        $fields = $this->fields;
        $cacheControlHeader = $this->getCacheControlHeader();
        $fields['Cache-Control'] = [$cacheControlHeader];
        if (empty($cacheControlHeader)) {
            unset($fields['Cache-Control']);
        }
        return $fields;
    }
1198100
public function recover()
    {
        $validator = ValidatorFacade::make([], []);

        foreach ($this->messages as $key => $value) {
            foreach (Arr::wrap($value) as $message) {
                $validator->errors()->add($key, $message);
            }
        }

        return $validator;
    }
514696
public function getList()
    {
        $response = $this->getResponse();
        $response->getHeaders()->addHeaderLine('Content-Type', 'application/json');
        $type = $this->params()->fromRoute("type", null);
        $anneeScolaire = $this->params()->fromRoute("annee_scolaire", null);
        if (! is_null($type)) {
            $formatter = $this->getServiceLocator()->get($type . AbstractFormatterFactory::$termination);
            $columns = $this->params()->fromQuery("columns", null);
            $start = $this->params()->fromQuery("start", null);
            $length = $this->params()->fromQuery("length", null);
            $order = $this->params()->fromQuery("order", null);
            $search = $this->params()->fromQuery("search", null);
            $data = $formatter->getData($columns, $start, $length, $order, $search, $anneeScolaire);
            $response->setContent(\Zend\Json\Json::encode($data));
        }
        
        return $response;
    }
302695
public static function getRestartSettings()
    {
        $envArgs = explode('|', (string) getenv(self::RESTART_SETTINGS));

        if (count($envArgs) !== 6
            || (!self::$inRestart && php_ini_loaded_file() !== $envArgs[0])) {
            return;
        }

        return array(
            'tmpIni' => $envArgs[0],
            'scannedInis' => (bool) $envArgs[1],
            'scanDir' => '*' === $envArgs[2] ? false : $envArgs[2],
            'phprc' => '*' === $envArgs[3] ? false : $envArgs[3],
            'inis' => explode(PATH_SEPARATOR, $envArgs[4]),
            'skipped' => $envArgs[5],
        );
    }