src/POData/Writers/Atom/AtomODataWriter.php
/**
	 * Write the given collection of properties.
	 * (properties of an entity or complex type)
	 *
	 * @param ODataPropertyContent $properties Collection of properties.
	 * @param bool $topLevel indicates if this property content is the top level response to be written
	 * @return AtomODataWriter
	 */
Write the given collection of properties.
(properties of an entity or complex type)

@param ODataPropertyContent $properties Collection of properties.
@param bool $topLevel indicates if this property content is the top level response to be written
@return AtomODataWriter
Write the given collection of properties . ( properties of an entity or complex type ) @param ODataPropertyContent $properties Collection of properties . @param bool $topLevel indicates if this property content is the top level response to be written @return AtomODataWriter
protected function writeProperties(ODataPropertyContent $properties, $topLevel = false)
	{
		foreach ($properties->properties as $property) {
			$this->beginWriteProperty($property, $topLevel);
			if ($property->value == null) {
				$this->writeNullValue($property);
			} elseif ($property->value instanceof ODataPropertyContent) {
				$this->writeProperties($property->value, false);
			} elseif ($property->value instanceof ODataBagContent) {
				$this->writeBagContent($property->value);
			} else {
				$value = $this->beforeWriteValue($property->value, $property->typeName);
				$this->xmlWriter->text($value);
			}
			$this->xmlWriter->endElement();
		}
		return $this;
	}
protected function writeProperties ( ODataPropertyContent $ properties , $ topLevel = false ) { foreach ( $ properties -> properties as $ property ) { $ this -> beginWriteProperty ( $ property , $ topLevel ) ; if ( $ property -> value == null ) { $ this -> writeNullValue ( $ property ) ; } elseif ( $ property -> value instanceof ODataPropertyContent ) { $ this -> writeProperties ( $ property -> value , false ) ; } elseif ( $ property -> value instanceof ODataBagContent ) { $ this -> writeBagContent ( $ property -> value ) ; } else { $ value = $ this -> beforeWriteValue ( $ property -> value , $ property -> typeName ) ; $ this -> xmlWriter -> text ( $ value ) ; } $ this -> xmlWriter -> endElement ( ) ; } return $ this ; }
Write the given collection of properties.
Write the given collection of properties .