public function getDataFullRead(string $column = null)
    {
        if (!empty($column))
            return (is_int($column) && isset($this->dicionario[$column]) ? $this->dicionario[$column]->getValue() : (!empty($value = $this->dicionario[$this->searchValue($column)]) ? $value->getValue() : null));

        $data = null;
        foreach ($this->dicionario as $meta) {
            if ($meta->getFormat() === "source" && preg_match('/"type": "image\//i', $meta->getValue())) {
                $data[$meta->getColumn()] = Helper::convertImageJson($meta->getValue());
            } elseif ($meta->getFormat() === "source") {
                $data[$meta->getColumn()] = json_decode($meta->getValue(), true)[0];
            } elseif (in_array($meta->getKey(), ["list", "selecao", "extend", "extend_add", "checkbox_rel"])) {
                $data[$meta->getColumn()] = Entity::read($meta->getRelation(), $meta->getValue());
            } elseif (in_array($meta->getFormat(), ["list_mult", "selecao_mult", "extend_mult", "checkbox_mult"])) {
                if (!empty($meta->getValue())) {
                    $lista = [];
                    foreach (json_decode($meta->getValue(), true) as $id) {
                        $lista[] = Entity::read($meta->getRelation(), $id);
                    }
                    $data[$meta->getColumn()] = $lista;
                }
            } elseif ($meta->getType() === "json") {
                $data[$meta->getColumn()] = json_decode($meta->getValue(), true);
            } else {
                $data[$meta->getColumn()] = $meta->getValue();
            }
        }

        return $data;
    }
public function getDataFullRead(string $column = null)
    {
        if (!empty($column))
            return (is_int($column) && isset($this->dicionario[$column]) ? $this->dicionario[$column]->getValue() : (!empty($value = $this->dicionario[$this->searchValue($column)]) ? $value->getValue() : null));

        $data = null;
        foreach ($this->dicionario as $meta) {
            if ($meta->getFormat() === "source" && preg_match('/"type": "image\//i', $meta->getValue())) {
                $data[$meta->getColumn()] = Helper::convertImageJson($meta->getValue());
            } elseif ($meta->getFormat() === "source") {
                $data[$meta->getColumn()] = json_decode($meta->getValue(), true)[0];
            } elseif (in_array($meta->getKey(), ["list", "selecao", "extend", "extend_add", "checkbox_rel"])) {
                $data[$meta->getColumn()] = Entity::read($meta->getRelation(), $meta->getValue());
            } elseif (in_array($meta->getFormat(), ["list_mult", "selecao_mult", "extend_mult", "checkbox_mult"])) {
                if (!empty($meta->getValue())) {
                    $lista = [];
                    foreach (json_decode($meta->getValue(), true) as $id) {
                        $lista[] = Entity::read($meta->getRelation(), $id);
                    }
                    $data[$meta->getColumn()] = $lista;
                }
            } elseif ($meta->getType() === "json") {
                $data[$meta->getColumn()] = json_decode($meta->getValue(), true);
            } else {
                $data[$meta->getColumn()] = $meta->getValue();
            }
        }

        return $data;
    }
public function getDataFullRead ( string $ column = null ) { if ( ! empty ( $ column ) ) return ( is_int ( $ column ) && isset ( $ this -> dicionario [ $ column ] ) ? $ this -> dicionario [ $ column ] -> getValue ( ) : ( ! empty ( $ value = $ this -> dicionario [ $ this -> searchValue ( $ column ) ] ) ? $ value -> getValue ( ) : null ) ) ; $ data = null ; foreach ( $ this -> dicionario as $ meta ) { if ( $ meta -> getFormat ( ) === "source" && preg_match ( '/"type": "image\//i' , $ meta -> getValue ( ) ) ) { $ data [ $ meta -> getColumn ( ) ] = Helper :: convertImageJson ( $ meta -> getValue ( ) ) ; } elseif ( $ meta -> getFormat ( ) === "source" ) { $ data [ $ meta -> getColumn ( ) ] = json_decode ( $ meta -> getValue ( ) , true ) [ 0 ] ; } elseif ( in_array ( $ meta -> getKey ( ) , [ "list" , "selecao" , "extend" , "extend_add" , "checkbox_rel" ] ) ) { $ data [ $ meta -> getColumn ( ) ] = Entity :: read ( $ meta -> getRelation ( ) , $ meta -> getValue ( ) ) ; } elseif ( in_array ( $ meta -> getFormat ( ) , [ "list_mult" , "selecao_mult" , "extend_mult" , "checkbox_mult" ] ) ) { if ( ! empty ( $ meta -> getValue ( ) ) ) { $ lista = [ ] ; foreach ( json_decode ( $ meta -> getValue ( ) , true ) as $ id ) { $ lista [ ] = Entity :: read ( $ meta -> getRelation ( ) , $ id ) ; } $ data [ $ meta -> getColumn ( ) ] = $ lista ; } } elseif ( $ meta -> getType ( ) === "json" ) { $ data [ $ meta -> getColumn ( ) ] = json_decode ( $ meta -> getValue ( ) , true ) ; } else { $ data [ $ meta -> getColumn ( ) ] = $ meta -> getValue ( ) ; } } return $ data ; }
Retorna o valor de uma meta de uma entidade

@param string $column
@return mixed
Retorna o valor de uma meta de uma entidade