Blesta
  • Package
  • Class
  • Tree
  • Deprecated

Packages

  • blesta
    • app
      • controllers
      • models
    • components
      • areyouahuman
      • auth
        • motp
        • oath
      • delivery
        • interfax
        • postal
          • methods
      • download
      • email
      • events
        • default
      • exchange
        • rates
          • google
            • finance
          • yahoo
            • finance
      • gateway
        • payments
      • gateways
      • invoice
        • delivery
        • templates
          • quickbooks
            • invoice
      • json
      • modules
      • net
        • amazon
          • s3
        • http
        • net
          • geo
            • ip
      • plugins
      • recaptcha
      • reports
        • aging
          • invoices
        • custom
          • report
        • invoice
          • creation
        • tax
          • liability
        • transactions
          • applied
          • received
      • security
      • session
        • cart
      • settingscollection
      • upgrades
        • tasks
      • upload
      • vcard
    • helpers
      • currency
        • format
      • data
        • structure
          • array
          • string
      • text
        • parser
      • widget
        • client
  • minPHP
    • components
      • input
      • record
    • helpers
      • color
      • data
        • structure
      • date
      • form
      • html
      • javascript
      • xml
    • lib
  • None
  • PHP

Classes

  • Json
  • PricingPresenter

Class Json

Wrapper for JSON encode/decode functions. Uses Services_JSON if json functions are not built in to this PHP installation.

Package: blesta\components\json
Copyright: Copyright (c) 2010, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at components/json/json.php

Methods summary

public string
# encode( mixed $val )

Performs JSON encode. Attempts to use built in PHP json_encode if available.

Performs JSON encode. Attempts to use built in PHP json_encode if available.

Parameters

$val
mixed
$val The value to encode

Returns

string
The encoded data, in JSON format
public mixed
# decode( string $val, boolean $assoc = false )

Performs JSON decode. Attempts to use built in PHP json_decode if available.

Performs JSON decode. Attempts to use built in PHP json_decode if available.

Parameters

$val
string
$val The value to decode
$assoc
boolean
$assoc True to return value as an associative array, false otherwise.

Returns

mixed
The decoded value in PHP format.

Magic methods summary

Blesta API documentation generated by ApiGen 2.8.0