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

  • DataStructureArray

Class DataStructureArray

Array Data Structure helper

Provides utility methods to assist in manipulating arrays.

Package: blesta\helpers\data\structure\array
Copyright: Copyright (c) 2010, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at helpers/data_structure/array/data_structure_array.php

Methods summary

public static array
# numericToKey( array $array, string $key_index = null, string $value_index = null )

Converts a numerically indexed array to a key/value indexed array.

Converts a numerically indexed array to a key/value indexed array.

Parameters

$array
array
$array A numerically indexed array of key/value pairs (array or object)
$key_index
string
$key_index An index to convert from key/value if set, otherwise will invert the array
$value_index
string
$value_index The index from $array to use as the value in the key/value pair. By default will assign everything in $array[$i] to the key.

Returns

array
A key/value paired array
public static
# keyToNumeric( mixed $vars, boolean $match_indexes = true )

Converts a key/value paired array to a numerically indexed array that contains key/value pairs.

Converts a key/value paired array to a numerically indexed array that contains key/value pairs.

Parameters

$vars
mixed
$vars A key/value array or object to convert to a numerically indexed array
$match_indexes
boolean
$match_indexes True will ensure that each key index contains the same number of elements. The default value for each index is null.

Magic methods summary

Blesta API documentation generated by ApiGen 2.8.0