public function getFieldValue($fieldName, $locale = 'en')
    {
        $strValue = '';
        $entity = $this->entities[$locale];
        $values = $entity->values();
        if (count($values)) {
            $keys = array_keys($values);
            if (in_array($fieldName, $keys)) {
                $strValue = $values[$fieldName];
            }
        }

        return $strValue;
    }
public function getFieldValue($fieldName, $locale = 'en')
    {
        $strValue = '';
        $entity = $this->entities[$locale];
        $values = $entity->values();
        if (count($values)) {
            $keys = array_keys($values);
            if (in_array($fieldName, $keys)) {
                $strValue = $values[$fieldName];
            }
        }

        return $strValue;
    }
public function getFieldValue ( $ fieldName , $ locale = 'en' ) { $ strValue = '' ; $ entity = $ this -> entities [ $ locale ] ; $ values = $ entity -> values ( ) ; if ( count ( $ values ) ) { $ keys = array_keys ( $ values ) ; if ( in_array ( $ fieldName , $ keys ) ) { $ strValue = $ values [ $ fieldName ] ; } } return $ strValue ; }
Get field data.

@param $fieldName
@param string $locale

@return string
Get field data .