src/ngrest/render/RenderCrud.php
public function getFields($type)
    {
        if (!array_key_exists($type, $this->_fields)) {
            $fields = [];
            if ($this->config->hasPointer($type)) {
                foreach ($this->config->getPointer($type) as $item) {
                    $fields[] = $item['name'];
                }
            }
            $this->_fields[$type] = $fields;
        }

        return $this->_fields[$type];
    }
public function getFields($type)
    {
        if (!array_key_exists($type, $this->_fields)) {
            $fields = [];
            if ($this->config->hasPointer($type)) {
                foreach ($this->config->getPointer($type) as $item) {
                    $fields[] = $item['name'];
                }
            }
            $this->_fields[$type] = $fields;
        }

        return $this->_fields[$type];
    }
public function getFields ( $ type ) { if ( ! array_key_exists ( $ type , $ this -> _fields ) ) { $ fields = [ ] ; if ( $ this -> config -> hasPointer ( $ type ) ) { foreach ( $ this -> config -> getPointer ( $ type ) as $ item ) { $ fields [ ] = $ item [ 'name' ] ; } } $ this -> _fields [ $ type ] = $ fields ; } return $ this -> _fields [ $ type ] ; }
Short hand method to get all fields for a certain type context

@param string $type
@return array
Short hand method to get all fields for a certain type context