public function &toArray()
    {
        if (!isset($this->__propertyToData[Schema::DEFAULT_MAPPING])) {
            return $this->__arrayOfData;
        }
        if (null === $this->__mappedProperties) {
            $properties = array();
            foreach ($this->__arrayOfData as $propertyName => $property) {
                if (isset($this->__propertyToData[Schema::DEFAULT_MAPPING][$propertyName])) {
                    $propertyName = $this->__propertyToData[Schema::DEFAULT_MAPPING][$propertyName];
                }
                $properties[$propertyName] = $property;
            }
            $this->__mappedProperties = $properties;
        }
        return $this->__mappedProperties;
    }
public function &toArray()
    {
        if (!isset($this->__propertyToData[Schema::DEFAULT_MAPPING])) {
            return $this->__arrayOfData;
        }
        if (null === $this->__mappedProperties) {
            $properties = array();
            foreach ($this->__arrayOfData as $propertyName => $property) {
                if (isset($this->__propertyToData[Schema::DEFAULT_MAPPING][$propertyName])) {
                    $propertyName = $this->__propertyToData[Schema::DEFAULT_MAPPING][$propertyName];
                }
                $properties[$propertyName] = $property;
            }
            $this->__mappedProperties = $properties;
        }
        return $this->__mappedProperties;
    }
public function & toArray ( ) { if ( ! isset ( $ this -> __propertyToData [ Schema :: DEFAULT_MAPPING ] ) ) { return $ this -> __arrayOfData ; } if ( null === $ this -> __mappedProperties ) { $ properties = array ( ) ; foreach ( $ this -> __arrayOfData as $ propertyName => $ property ) { if ( isset ( $ this -> __propertyToData [ Schema :: DEFAULT_MAPPING ] [ $ propertyName ] ) ) { $ propertyName = $ this -> __propertyToData [ Schema :: DEFAULT_MAPPING ] [ $ propertyName ] ; } $ properties [ $ propertyName ] = $ property ; } $ this -> __mappedProperties = $ properties ; } return $ this -> __mappedProperties ; }
Returns a map of properties by default data name
@return Schema[]
Returns a map of properties by default data name