public function optionLabelFilter($value, $objectName, $fieldName)
    {
        $fieldConfiguration = $this->flexModel->getField($objectName, $fieldName);

        $label = "";
        if (is_array($fieldConfiguration)) {
            if (isset($fieldConfiguration['options'])) {
                if (is_array($value)) {
                    foreach ($value as $i => $valueItem) {
                        $value[$i] = $this->getLabelForValue($fieldConfiguration, $valueItem);
                    }
                    $label = implode(', ', $value);
                } else {
                    $label = $this->getLabelForValue($fieldConfiguration, $value);
                }
            } else {
                $label = $value;
            }
        }

        return $label;
    }
public function optionLabelFilter($value, $objectName, $fieldName)
    {
        $fieldConfiguration = $this->flexModel->getField($objectName, $fieldName);

        $label = "";
        if (is_array($fieldConfiguration)) {
            if (isset($fieldConfiguration['options'])) {
                if (is_array($value)) {
                    foreach ($value as $i => $valueItem) {
                        $value[$i] = $this->getLabelForValue($fieldConfiguration, $valueItem);
                    }
                    $label = implode(', ', $value);
                } else {
                    $label = $this->getLabelForValue($fieldConfiguration, $value);
                }
            } else {
                $label = $value;
            }
        }

        return $label;
    }
public function optionLabelFilter ( $ value , $ objectName , $ fieldName ) { $ fieldConfiguration = $ this -> flexModel -> getField ( $ objectName , $ fieldName ) ; $ label = "" ; if ( is_array ( $ fieldConfiguration ) ) { if ( isset ( $ fieldConfiguration [ 'options' ] ) ) { if ( is_array ( $ value ) ) { foreach ( $ value as $ i => $ valueItem ) { $ value [ $ i ] = $ this -> getLabelForValue ( $ fieldConfiguration , $ valueItem ) ; } $ label = implode ( ', ' , $ value ) ; } else { $ label = $ this -> getLabelForValue ( $ fieldConfiguration , $ value ) ; } } else { $ label = $ value ; } } return $ label ; }
Gets the option label based on the object and field name.

@param string $value
@param string $objectName
@param string $fieldName

@return string $label
Gets the option label based on the object and field name .