public function getCodeFields()
    {
        $fieldDef = $this->getTrackEngine()->getFieldsDefinition();
        $codes    = $this->tracker->getAllCodeFields();
        $results  = array_fill_keys($codes, null);

        $this->_ensureFieldData();

        foreach ($this->_fieldData as $id => $value) {
            if (!isset($codes[$id])) {
                continue;
            }

            $fieldCode           = $codes[$id];
            $results[$fieldCode] = $value;
            $field               = $fieldDef->getFieldByCode($fieldCode);
            if (!is_null($field)) {
                $results[$fieldCode] = $field->calculateFieldInfo($value, $this->_fieldData);
            }
        }

        return $results;
    }
public function getCodeFields()
    {
        $fieldDef = $this->getTrackEngine()->getFieldsDefinition();
        $codes    = $this->tracker->getAllCodeFields();
        $results  = array_fill_keys($codes, null);

        $this->_ensureFieldData();

        foreach ($this->_fieldData as $id => $value) {
            if (!isset($codes[$id])) {
                continue;
            }

            $fieldCode           = $codes[$id];
            $results[$fieldCode] = $value;
            $field               = $fieldDef->getFieldByCode($fieldCode);
            if (!is_null($field)) {
                $results[$fieldCode] = $field->calculateFieldInfo($value, $this->_fieldData);
            }
        }

        return $results;
    }
public function getCodeFields ( ) { $ fieldDef = $ this -> getTrackEngine ( ) -> getFieldsDefinition ( ) ; $ codes = $ this -> tracker -> getAllCodeFields ( ) ; $ results = array_fill_keys ( $ codes , null ) ; $ this -> _ensureFieldData ( ) ; foreach ( $ this -> _fieldData as $ id => $ value ) { if ( ! isset ( $ codes [ $ id ] ) ) { continue ; } $ fieldCode = $ codes [ $ id ] ; $ results [ $ fieldCode ] = $ value ; $ field = $ fieldDef -> getFieldByCode ( $ fieldCode ) ; if ( ! is_null ( $ field ) ) { $ results [ $ fieldCode ] = $ field -> calculateFieldInfo ( $ value , $ this -> _fieldData ) ; } } return $ results ; }
Return all possible code fields with the values filled for those that exist for this track,
optionally with a prefix

@return array code => value
Return all possible code fields with the values filled for those that exist for this track optionally with a prefix