Blesta
  • Package
  • Class
  • Tree
  • Deprecated

Packages

  • blesta
    • app
      • components
        • events
          • default
      • controllers
      • models
    • components
      • auth
      • delivery
        • interfax
        • postal
          • methods
      • download
      • email
      • exchange
        • rates
          • foxrate
          • google
            • finance
          • yahoo
            • finance
      • gateway
        • payments
      • gateways
      • invoice
        • delivery
        • templates
      • json
      • modules
      • net
        • http
        • net
          • amazon
            • s3
          • geo
            • ip
      • plugins
      • recaptcha
      • security
      • session
        • cart
      • settingscollection
      • upgrades
      • upload
      • vcard
    • helpers
      • currency
        • format
      • data
        • structure
          • array
          • string
      • text
        • parser
  • com
    • tecnick
      • tcpdf
        • blesta
          • components
            • invoice
              • templates
                • quickbooks
                  • invoice
                • templates
                  • default
  • Crypt
    • AES
    • DES
    • Hash
    • Random
    • RC4
    • Rijndael
    • RSA
    • TerraDES
  • File
    • ANSI
    • ASN1
    • X509
  • Math
    • BigInteger
  • minPHP
    • components
      • input
      • record
    • helpers
      • color
      • data
        • structure
      • date
      • html
      • xml
    • lib
  • Net
    • SFTP
    • SSH1
    • SSH2
  • None
  • PHP
  • PHPMailer
  • Services
    • JSON
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Transport

Classes

  • Xml

Class Xml

Provides helper methods for creating XML documents from arrays and objects

Package: minPHP\helpers\xml
Located at helpers/xml/xml.php

Methods summary

public string
# xmlEntities( string $str )

Converts special characters with special meaning in XML to their entity equivalent.

Converts special characters with special meaning in XML to their entity equivalent.

Parameters

$str
string
$str The string to convert

Returns

string
The converted string
public string
# makeXml( mixed $vars, string $encoding = "UTF-8" )

Convert the given array into an XML document

Convert the given array into an XML document

Parameters

$vars
mixed
$vars An object, array or string of data to convert into an XML document
$encoding
string
$encoding The characer encoding of this document (must be the same encoding as in $vars)

Returns

string
An XML document
private string
# buildXmlSegment( mixed $value, string $root_node = "result", integer $tab_count = -1 )

Recursively convert the array into an XML structure segment

Recursively convert the array into an XML structure segment

Parameters

$value
mixed
$value An array or string used for the current XML value
$root_node
string
$root_node The root node for this XML segment
$tab_count
integer
$tab_count The number of tabs for this XML segment

Returns

string
The XML segement

Magic methods summary

Properties summary

public string $tab
#

The string to repeat for every tab space

The string to repeat for every tab space

public string $root_node
#

The default node for an element

The default node for an element

Blesta API documentation generated by ApiGen 2.8.0