Neos\Flow\Persistence\Generic\Backend\AbstractBackend::collectProperties PHP Метод

collectProperties() защищенный Метод

protected collectProperties ( string $identifier, object $object, array $properties, boolean &$dirty ) : array
$identifier string The object's identifier
$object object The object to work on
$properties array The properties to collect (as per class schema)
$dirty boolean A dirty flag that is passed by reference and set to TRUE if a dirty property was found
Результат array
    protected function collectProperties($identifier, $object, array $properties, &$dirty)
    {
        $propertyData = [];
        foreach ($properties as $propertyName => $propertyMetaData) {
            $propertyValue = $this->checkPropertyValue($object, $propertyName, $propertyMetaData);
            // handle all objects now, because even clean ones need to be traversed
            // as dirty checking is not recursive
            if ($propertyValue instanceof PersistenceMagicInterface) {
                if ($this->persistenceSession->isDirty($object, $propertyName)) {
                    $dirty = true;
                    $this->flattenValue($identifier, $object, $propertyName, $propertyMetaData, $propertyData);
                } else {
                    $this->persistObject($propertyValue, $identifier);
                }
            } elseif ($this->persistenceSession->isDirty($object, $propertyName)) {
                $dirty = true;
                $this->flattenValue($identifier, $object, $propertyName, $propertyMetaData, $propertyData);
            }
        }
        return $propertyData;
    }