concrete/src/Csv/Export/AbstractExporter.php
protected function projectObject(ObjectInterface $object)
    {
        foreach ($this->getStaticFieldValues($object) as $value) {
            yield $value;
        }

        foreach ($this->getAttributeKeysAndControllers() as list($attributeKey, $attributeController)) {
            /* @var \Concrete\Core\Attribute\AttributeKeyInterface $attributeKey */
            /* @var \Concrete\Core\Attribute\Controller $attributeController */
            $value = $object->getAttributeValueObject($attributeKey, false);
            $attributeController->setAttributeValue($value);
            if ($attributeController instanceof SimpleTextExportableAttributeInterface) {
                yield $attributeController->getAttributeValueTextRepresentation();
            } elseif ($attributeController instanceof MulticolumnTextExportableAttributeInterface) {
                foreach ($attributeController->getAttributeValueTextRepresentation() as $part) {
                    yield $part;
                }
            }
        }
    }
protected function projectObject(ObjectInterface $object)
    {
        foreach ($this->getStaticFieldValues($object) as $value) {
            yield $value;
        }

        foreach ($this->getAttributeKeysAndControllers() as list($attributeKey, $attributeController)) {
            /* @var \Concrete\Core\Attribute\AttributeKeyInterface $attributeKey */
            /* @var \Concrete\Core\Attribute\Controller $attributeController */
            $value = $object->getAttributeValueObject($attributeKey, false);
            $attributeController->setAttributeValue($value);
            if ($attributeController instanceof SimpleTextExportableAttributeInterface) {
                yield $attributeController->getAttributeValueTextRepresentation();
            } elseif ($attributeController instanceof MulticolumnTextExportableAttributeInterface) {
                foreach ($attributeController->getAttributeValueTextRepresentation() as $part) {
                    yield $part;
                }
            }
        }
    }
protected function projectObject ( ObjectInterface $ object ) { foreach ( $ this -> getStaticFieldValues ( $ object ) as $ value ) { yield $ value ; } foreach ( $ this -> getAttributeKeysAndControllers ( ) as list ( $ attributeKey , $ attributeController ) ) { /* @var \Concrete\Core\Attribute\AttributeKeyInterface $attributeKey */ /* @var \Concrete\Core\Attribute\Controller $attributeController */ $ value = $ object -> getAttributeValueObject ( $ attributeKey , false ) ; $ attributeController -> setAttributeValue ( $ value ) ; if ( $ attributeController instanceof SimpleTextExportableAttributeInterface ) { yield $ attributeController -> getAttributeValueTextRepresentation ( ) ; } elseif ( $ attributeController instanceof MulticolumnTextExportableAttributeInterface ) { foreach ( $ attributeController -> getAttributeValueTextRepresentation ( ) as $ part ) { yield $ part ; } } } }
A generator that returns all fields of an object instance.

@param ObjectInterface $object

@return string[]|\Generator
A generator that returns all fields of an object instance .