public function getData()
    {
        $properties = $this->formProperties;

        foreach ($properties as $index => $property) {
            if ($this->doesExist() && $property['uri'] == 'http://www.tao.lu/Ontologies/generis.rdf#login') {
                $properties[$index]['widget'] = 'http://www.tao.lu/datatypes/WidgetDefinitions.rdf#Readonly';
                break;
            }
        }

        if ($this->doesExist()) {
            foreach ($properties as $key => $property) {
                if ($property['uri'] == GenerisRdf::PROPERTY_USER_PASSWORD && isset($property['value'])) {
                    $properties[$key]['value'] = '';
                    break;
                }
            }
        }

        return [
            self::PROPERTIES => $properties,
            self::RANGES => $this->ranges,
        ];
    }
public function getData()
    {
        $properties = $this->formProperties;

        foreach ($properties as $index => $property) {
            if ($this->doesExist() && $property['uri'] == 'http://www.tao.lu/Ontologies/generis.rdf#login') {
                $properties[$index]['widget'] = 'http://www.tao.lu/datatypes/WidgetDefinitions.rdf#Readonly';
                break;
            }
        }

        if ($this->doesExist()) {
            foreach ($properties as $key => $property) {
                if ($property['uri'] == GenerisRdf::PROPERTY_USER_PASSWORD && isset($property['value'])) {
                    $properties[$key]['value'] = '';
                    break;
                }
            }
        }

        return [
            self::PROPERTIES => $properties,
            self::RANGES => $this->ranges,
        ];
    }
public function getData ( ) { $ properties = $ this -> formProperties ; foreach ( $ properties as $ index => $ property ) { if ( $ this -> doesExist ( ) && $ property [ 'uri' ] == 'http://www.tao.lu/Ontologies/generis.rdf#login' ) { $ properties [ $ index ] [ 'widget' ] = 'http://www.tao.lu/datatypes/WidgetDefinitions.rdf#Readonly' ; break ; } } if ( $ this -> doesExist ( ) ) { foreach ( $ properties as $ key => $ property ) { if ( $ property [ 'uri' ] == GenerisRdf :: PROPERTY_USER_PASSWORD && isset ( $ property [ 'value' ] ) ) { $ properties [ $ key ] [ 'value' ] = '' ; break ; } } } return [ self :: PROPERTIES => $ properties , self :: RANGES => $ this -> ranges , ] ; }
Get the form data.
Set readOnly to login in case of edition.
Add password and password confirmation with different label depending creation or edition

@return array
Get the form data . Set readOnly to login in case of edition . Add password and password confirmation with different label depending creation or edition