Overview

Packages

  • blesta
    • app
      • controllers
      • models
    • components
      • auth
        • ldap
        • motp
        • oath
      • delivery
        • interfax
        • postal
          • methods
      • download
      • email
      • events
      • exchange
        • rates
          • currency
            • layer
          • fixer
          • open
            • exchange
              • rates
          • x
            • rates
      • gateway
        • payments
      • gateways
      • invoice
        • delivery
        • templates
          • perforated
            • invoice
          • quickbooks
            • invoice
          • templates
            • default
      • modules
      • net
        • amazon
          • s3
        • http
        • net
          • geo
            • ip
      • plugins
      • reports
        • aging
          • invoices
        • client
          • data
            • portability
        • custom
          • report
        • invoice
          • creation
        • package
          • revenue
        • tax
          • liability
        • transactions
          • applied
          • received
      • security
      • session
        • cart
      • settingscollection
      • upgrades
        • tasks
      • upload
      • vcard
    • core
      • Automation
        • Tasks
          • Common
          • Task
        • Type
          • Common
          • Cron
      • Pricing
        • ItemComparator
        • MetaItem
        • Modifier
          • Type
            • Description
              • Type
                • Discount
                • Option
                • Service
                • Tax
            • Discount
            • Price
            • Proration
        • Presenter
          • Build
            • Invoice
            • InvoiceData
            • Options
            • Service
            • ServiceChange
            • ServiceData
          • Collection
          • Format
            • Fields
            • Type
              • Discount
              • Item
              • Option
              • Options
              • Package
              • Pricing
              • Service
              • Tax
          • Items
            • Invoice
            • Service
          • Type
      • ServiceProviders
      • Util
        • Captcha
          • Captchas
          • Common
        • Common
          • Traits
        • Events
          • Common
          • Handlers
          • Observers
        • Filters
          • Common
        • GeoIp
        • Input
          • Fields
            • Common
        • Tax
        • Widgets
    • helpers
      • currency
        • format
      • data
        • structure
          • array
          • string
      • text
        • parser
      • widget
        • client
  • minPHP
    • helpers
      • color
      • data
        • structure
  • None
  • PHP

Classes

  • DataStructureArray
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

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
A numerically indexed array of key/value pairs (array or object)
$key_index
An index to convert from key/value if set, otherwise will invert the array
$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
A key/value array or object to convert to a numerically indexed array
$match_indexes

True will ensure that each key index contains the same number of elements. The default value for each index is null.

Blesta API documentation generated by ApiGen