Método ___get()
metodo auxiliar para ser chamado para dentro de metodo get personalizado
164329
public function ___get($prop) {
        // retorna o valor da propriedade
        if (isset($this->meta[$prop])) {
            $metaData = (isset($this->meta[$prop])) ? $this->meta[$prop] : null;
            $this->data[$prop] = !isset($this->data[$prop]) || $this->data[$prop] == '' ? $metaData['default'] : $this->data[$prop];
            if ($metaData['required'] == true && ($this->data[$prop] == '' || !isset($this->data[$prop]))) {
                throw new Exception('Campo faltante ou com valor nulo:' . $prop . " Boleto Numero:" . $this->data['nosso_numero']);
            }
            switch ($metaData['tipo']) {
                case 'decimal':
                    $retorno = ($this->data[$prop]) ? number_format($this->data[$prop], $metaData['precision'], '', '') : '';
                    return str_pad($retorno, $metaData['tamanho'] + $metaData['precision'], '0', STR_PAD_LEFT);
                case 'int':
                    $retorno = (isset($this->data[$prop])) ? number_format($this->data[$prop], 0, '', '') : '';
                    return str_pad($retorno, $metaData['tamanho'], '0', STR_PAD_LEFT);
                case 'alfa':
                    $retorno = (isset($this->data[$prop])) ? $this->prepareText($this->data[$prop]) : '';
                    return $this->mb_str_pad(mb_substr($retorno, 0, $metaData['tamanho'], "UTF-8"), $metaData['tamanho'], ' ', STR_PAD_RIGHT);
                case 'alfa2':
                    $retorno = (isset($this->data[$prop])) ? $this->data[$prop] : '';
                    return $this->mb_str_pad(mb_substr($retorno, 0, $metaData['tamanho'], "UTF-8"), $metaData['tamanho'], ' ', STR_PAD_RIGHT);
                case $metaData['tipo'] == 'date' && $metaData['tamanho'] == 6:
                    $retorno = ($this->data[$prop]) ? date("dmy", strtotime($this->data[$prop])) : '';
                    return str_pad($retorno, $metaData['tamanho'], '0', STR_PAD_LEFT);
                case $metaData['tipo'] == 'date' && $metaData['tamanho'] == 8:
                    $retorno = ($this->data[$prop]) ? date("dmY", strtotime($this->data[$prop])) : '';
                    return str_pad($retorno, $metaData['tamanho'], '0', STR_PAD_LEFT);
                case $metaData['tipo'] == 'dateReverse':
                    $retorno = ($this->data[$prop]) ? date("Ymd", strtotime($this->data[$prop])) : '';
                    return str_pad($retorno, $metaData['tamanho'], '0', STR_PAD_LEFT);
                default:
                    return null;
            }
        }
    }
1133760
function indexGET() {
    $id = $this->request->param("ID");
    $country = Country::get()->byID($id);
    return ($country) ? $this->sendData($country) : $this->sendNotFound();
  }
1122995
private function functionA() {
		if (!isset($this->{__METHOD__})) {
			$this->{__METHOD__} = df_n_set(
				$this->method() ?: (
					$this->functionName() && !$this->isClosure()
					? new RF($this->functionName())
					: null
				)
			);
		}
		return df_n_get($this->{__METHOD__});
	}
536932
function getList(&$params,$get='data')
	{
		$selectdb = new SelectDB($this->db);
		$selectdb->from($this->table);
		$selectdb->select($this->select);
		$selectdb->limit(isset($params['row']) ? $params['row'] : 10);
		unset($params['row']);
		$selectdb->order(isset($params['order']) ? $params['order'] : $this->primary . ' desc');
		unset($params['order']);

		if (isset($params['typeid']))
		{
			$selectdb->where($this->foreignkey . '=' . $params['typeid']);
			unset($params['typeid']);
		}
		$selectdb->put($params);
		if (array_key_exists('page', $params))
		{
			$selectdb->paging();
			global $php;
			$php->env['page'] = $params['page'];
			$php->env['start'] = 10 * intval($params['page'] / 10);
			if ($selectdb->pages > 10 and $params['page'] < $php->env['start'])
			{
				$php->env['more'] = 1;
			}
			$php->env['end'] = $selectdb->pages - $php->env['start'];
			$php->env['pages'] = $selectdb->pages;
			$php->env['pagesize'] = $selectdb->page_size;
			$php->env['num'] = $selectdb->num;
		}
		if ($get === 'data')
		{
			return $selectdb->getall();
		}
		elseif ($get === 'sql')
		{
			return $selectdb->getsql();
		}
	}
423326
public function setGet(){

		//populate the get array
		$getArray = (isset($_GET)) ? $_GET : array();

		//set the post data array
		$this->getInputData = $getArray;

		//merge this with the InputData array
		$this->inputData = $this->Merge($this->inputData, $this->getInputData);

		//set the getInputDataSet to true
		$this->getInputDataSet = true;

		//return this object instance
		return $this;

	}
395060
public function getAttribute($key)
    {
        // Verificar alias para _id
        $key = ($key == 'id') ? '_id' : $key;

        // Verificar se foi implemetado um relacionamento
        $value = $this->getRelationValue($key);
        if (! is_null($value)) {
            return $value;
        }

        // Verificar se o campo existe fisicamente ou foi implementado um mutator
        if (array_key_exists($key, $this->attributes) || $this->hasGetMutator($key)) {
            return $this->getAttributeValue($key);
        }

        return null;
    }
813010
function &get($key) {
		if ($key=='_id')
			return $this->_id;
		elseif (array_key_exists($key,$this->fields))
			return $this->fields[$key]['value'];
		elseif (array_key_exists($key,$this->adhoc))
			return $this->adhoc[$key]['value'];
		elseif (array_key_exists($key,$this->props))
			return $this->props[$key];
		user_error(sprintf(self::E_Field,$key),E_USER_ERROR);
	}
1347604
public function request(){        
        //Cargo el modulo correspondiente en base al tipo de requerimiento
        if(ENOLA_MODE == 'HTTP'){
            //Cargo el modulo Http
            $this->loadHttpModule();
        }else{
            //Cargo el modulo Cron
            $this->loadCronModule();
        }        
        //Luego de la carga de todos los modulos creo una instancia de Support\View
        $this->view= new Support\View();
        //Cargo la configuracion del usuario
        $this->loadUserConfig();
        //Analizo si estoy en modo HTTP o CLI
        if(ENOLA_MODE == 'HTTP'){
            //Ejecuto el controlador correspondiente
            $this->httpCore->executeHttpRequest();
        }else{
            //Ejecuta el cron controller
            $this->cronCore->executeCronController();
        }        
    }
1319926
protected function _get()
    {
        $subject = $this->_subject([
            'success' => true,
            'entity' => $this->_entity($this->_request()->query ?: null, $this->saveOptions())
        ]);

        $this->_trigger('beforeRender', $subject);
    }
11201
function offsetGet($index)
    {
        if (isset($this->{$index})) {
            return $this->{$index};
        } else {
            $records = $this->records();
            if ($index === "results") {
                return $records;
            }
            if ($record =& $records[$index]) {
                return $record;
            }
            foreach ((array)$records as $key => $record) {
                if ($record['id'] === $index) {
                    $record =& $records[$key];
                    return $record;
                }
            }
        }

        return null;
    }
871181
public function get(){
        $res= FALSE;
        try{
            //Armo y preparo la consulta
            $query= $this->prepareSelect($this->select, $this->from, $this->where, $this->group, $this->having, $this->order, $this->limit);
            //Ejecuto la consulta
            $query->execute($this->where_values);
            //Controlo que este todo bien
            if($this->isOk($query)){
                $res= $query;
            }
            //Limpio las variables del AR
            $this->cleanVars();
        } catch (\PDOException $e) {
            $this->cleanVars();
            throw $e;
        }
        return $res;
    }
488882
public function receiveMethod()
    {
        if ($requestMethod = (isset($_SERVER['REQUEST_METHOD'])) ? $_SERVER['REQUEST_METHOD'] : null) {
            $requestMethod = strtoupper($requestMethod);
        }

        return $requestMethod;
    }
626260
def _req(self, method="get", verb=None, headers={}, params={}, data={}):
        
        url = self.BASE_URL.format(verb=verb)
        request_headers = {"content-type": "application/json"}
        request_params = {"api_key": self.API_KEY}
        request_headers.update(headers)
        request_params.update(params)
        return getattr(requests, method)(
            url, params=request_params, headers=request_headers, data=data
        )
582890
public function get()
    {
        $value = str_replace(static::WRAPPER, '', $this->value);

        if (! method_exists($this, $value)) {
            return $this->value;
        }

        return $this->{$value}();
    }
994992
public static function method()
    {
        $partialArgs = func_get_args();
        if (count($partialArgs) < 1) {
            throw new \InvalidArgumentException();
        }
        $name = array_shift($partialArgs);
        return function () use ($name, $partialArgs) {
            $args = func_get_args();
            if (count($args) < 1) {
                throw new \InvalidArgumentException();
            }
            $obj = array_shift($args);
            return call_user_func_array([&$obj, $name], array_merge($partialArgs, $args));
        };
    }
1264359
function get()
    {
        $result = $this->client->get($this->requestDecorator->makeResource(), $this->requestDecorator->makeQuery());
        $this->refresh();
        return $result;
    }
832708
public function input_get($params) {
        $index = isset($params['index']) ? $params['index'] : null;
        $default = isset($params['default']) ? $params['default'] : null;
        return Input::get($index, $default);
    }