public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/classes/export.php
/**
		 * Export any data that contains text/HTML, doing it safely to escape characters.
		 *
		 * @param String $parentNode The name of the XML node to create for this data.
		 * @param String $value The actual data to save.
		 * @param String $path The path of this text data.
		 * @param Array $attributes The list of attributes to add to the field.
		 */
Export any data that contains text/HTML, doing it safely to escape characters.
@param String $parentNode The name of the XML node to create for this data.
@param String $value The actual data to save.
@param String $path The path of this text data.
@param Array $attributes The list of attributes to add to the field.
Export any data that contains text / HTML doing it safely to escape characters . @param String $parentNode The name of the XML node to create for this data . @param String $value The actual data to save . @param String $path The path of this text data . @param Array $attributes The list of attributes to add to the field .
private function export_textDataWithAttributes( $parentNode, $value, $path, $attributes ) {
			$xml     = "";
			$padding = $this->export_indent( $path );
			$attributeCode = false;
			if ( ! empty( $attributes ) ) {
				foreach ( $attributes as $attribkey => $attribvalue ) {
					$attributeCode .= $attribkey . '="' . $attribvalue . '" ';
				}
			}
			$attributeCode = trim( $attributeCode );
			$xml .= "$padding<$parentNode $attributeCode>" . $this->export_cdata( $value ) . "</$parentNode>";
			return $xml;
		}
private function export_textDataWithAttributes ( $ parentNode , $ value , $ path , $ attributes ) { $ xml = " " ; $ padding = $ this -> export_indent ( $ path ) ; $ attributeCode = false ; if ( ! empty ( $ attributes ) ) { foreach ( $ attributes as $ attribkey => $ attribvalue ) { $ attributeCode .= $ attribkey . '="' . $ attribvalue . '" ' ; } } $ attributeCode = trim ( $ attributeCode ) ; $ xml .= " $ padding < $ parentNode $ attributeCode > " . $ this -> export_cdata ( $ value ) . " </ $ parentNode > " ; return $ xml ; }
Export any data that contains text/HTML, doing it safely to escape characters.
Export any data that contains text / HTML doing it safely to escape characters .
// Remove any final spacing