public function getFieldName($refresh = false)
    {
        if (!$this->fieldName || $refresh) {
            // Prevent double '/'
            $names = array_values(array_filter(explode('/', (string) $this->getName(true)), 'strlen'));

            $control = array_values(array_filter(explode('/', (string) $this->getControl()), 'strlen'));

            $names = array_merge($control, $names);

            $control = array_shift($names);

            $names = array_map(
                function ($value) {
                    return '[' . $value . ']';
                },
                $names
            );

            $this->fieldName = $control . implode('', $names);
        }

        return $this->fieldName;
    }
public function getFieldName($refresh = false)
    {
        if (!$this->fieldName || $refresh) {
            // Prevent double '/'
            $names = array_values(array_filter(explode('/', (string) $this->getName(true)), 'strlen'));

            $control = array_values(array_filter(explode('/', (string) $this->getControl()), 'strlen'));

            $names = array_merge($control, $names);

            $control = array_shift($names);

            $names = array_map(
                function ($value) {
                    return '[' . $value . ']';
                },
                $names
            );

            $this->fieldName = $control . implode('', $names);
        }

        return $this->fieldName;
    }
public function getFieldName ( $ refresh = false ) { if ( ! $ this -> fieldName || $ refresh ) { // Prevent double '/' $ names = array_values ( array_filter ( explode ( '/' , ( string ) $ this -> getName ( true ) ) , 'strlen' ) ) ; $ control = array_values ( array_filter ( explode ( '/' , ( string ) $ this -> getControl ( ) ) , 'strlen' ) ) ; $ names = array_merge ( $ control , $ names ) ; $ control = array_shift ( $ names ) ; $ names = array_map ( function ( $ value ) { return '[' . $ value . ']' ; } , $ names ) ; $ this -> fieldName = $ control . implode ( '' , $ names ) ; } return $ this -> fieldName ; }
Method to get property FieldName

@param bool $refresh

@return  string
Method to get property FieldName