Bandwidth PHP SDK
  • Namespace
  • Class

Namespaces

  • Catapult
  • None

Classes

  • Account
  • AnswerCallEvent
  • Application
  • ApplicationCollection
  • AudioMixin
  • BaML
  • BaMLAssert
  • BaMLAttribute
  • BaMLContainer
  • BaMLGather
  • BaMLGeneric
  • BaMLHangup
  • BaMLPlayAudio
  • BaMLRedirect
  • BaMLResource
  • BaMLSendMessage
  • BaMLSpeakSentence
  • BaMLText
  • BaMLTransfer
  • BaMLVerb
  • BaMLVerbGather
  • BaMLVerbHangup
  • BaMLVerbPlayAudio
  • BaMLVerbRecord
  • BaMLVerbRedirect
  • BaMLVerbSendMessage
  • BaMLVerbSpeakSentence
  • BaMLVerbTransfer
  • BaseResource
  • BaseUtilities
  • Bridge
  • BridgeCollection
  • Call
  • Callback
  • CallCollection
  • CallCombo
  • CallEvent
  • CallEvents
  • CallEventsCollection
  • Cleaner
  • Client
  • ClientResource
  • CollectionIterator
  • CollectionObject
  • CollectionSequence
  • Conference
  • ConferenceEventMixin
  • ConferenceMember
  • ConferenceMemberEvent
  • ConferencePlaybackEvent
  • Constructor
  • Converter
  • Credentials
  • CredentialsUser
  • DataPacket
  • DataPacketCollection
  • Date
  • DependsObject
  • DependsResource
  • Domains
  • DomainsCollection
  • DTMF
  • DtmfCallEvent
  • Endpoints
  • EndpointsCollection
  • EndpointsCredentials
  • EndpointsMulti
  • EndpointsToken
  • Ensure
  • EnsureResource
  • ErrorCallEvent
  • Event
  • EventAssert
  • EventCollection
  • EventResource
  • EventType
  • FileHandler
  • Gather
  • GatherCallEvent
  • GatherCollection
  • GenericResource
  • HangupCallEvent
  • Id
  • IncomingCallEvent
  • LoadsResource
  • Locator
  • Log
  • Media
  • MediaCollection
  • MediaURL
  • Message
  • MessageCollection
  • MessageEvent
  • MessageMulti
  • MetaResource
  • Multi
  • NumberInfo
  • Page
  • Parameters
  • PathResource
  • PhoneCombo
  • PhoneNumber
  • PhoneNumbers
  • PhoneNumbersCollection
  • PlaybackCallEvent
  • PrototypeUtility
  • Recording
  • RecordingCallEvent
  • RecordingCollection
  • RejectCallEvent
  • RemoveResource
  • Resolver
  • ResolverResource
  • RESTClient
  • SchemaResource
  • Sentence
  • SIP
  • SIPRealm
  • Size
  • SpeakCallEvent
  • StringifyResource
  • SubfunctionObject
  • SubFunctionResource
  • TextMessage
  • Timeout
  • TimeoutCallEvent
  • TitleUtility
  • Transaction
  • TransactionCollection
  • Transcription
  • TranscriptionCallEvent
  • TranscriptionCollection
  • Types
  • URIResource
  • UserError
  • UserErrorCollection
  • VerifyResource
  • Voice
  • XMLUtility

Interfaces

  • API
  • API_MODE
  • BAML_SETTINGS
  • BAML_VERBS
  • BAML_XML_HANDLERS
  • BAML_XML_METHODS
  • BAML_XML_OPTIONS
  • CALL_ERROR
  • CALL_STATES
  • CONFERENCE_MEMBER_STATES
  • CONFERENCE_SPEAK_STATES
  • CONFERENCE_STATES
  • DEFAULTS
  • EXCEPTIONS
  • GATHER_REASONS
  • GATHER_STATES
  • MESSAGE_DIRECTIONS
  • MESSAGE_STATES
  • NUMBER_STATES
  • PATHS
  • PLAYBACK_STATES
  • RECORDING_STATES
  • RECORDING_STATUSES
  • SPEAK_STATES
  • TRANSCRIPTION_STATES
  • WARNINGS

Class PrototypeUtility

Quick prototypes for RESTClient allow get/create/update/patch to be mocked and dynamically defined

Input should always guarantee atleast two parameters. term and object

Catapult\BaseUtilities
Extended by Catapult\PrototypeUtility
Namespace: Catapult
Located at utils/Prototype.php

Methods summary

public
# get_idx( $args, $idx )
public static
# get_this( args: $args )

Get this from a static context. Will be used for the other methods. last parameter should be the object

Get this from a static context. Will be used for the other methods. last parameter should be the object

Parameters

$args
func_get_args
public
# get_term( args: $args )

get the term associated with this subfunction should be a valid term in Catapult models

get the term associated with this subfunction should be a valid term in Catapult models

Parameters

$args
func_get_args
public
# get_id( args: $args )

IDs for subfunctions can be found in the first parameter

IDs for subfunctions can be found in the first parameter

Parameters

$args
func_get_args
public
# get_is_plural( args: $args )

IDs for subfunctions can be found in the first parameter

IDs for subfunctions can be found in the first parameter

Parameters

$args
func_get_args
public static
# get( )

Mock get functions read whether we need to use an id or not then run accordingly last parameter will always be 'this' object

Mock get functions read whether we need to use an id or not then run accordingly last parameter will always be 'this' object

public static
# add( )

prototypal add. This needs term to be set as a function in its caller it will be used to initialize the resulting object

prototypal add. This needs term to be set as a function in its caller it will be used to initialize the resulting object

Conference->addMember should return ConferenceMember

Params:

mix of function arguments as well as object prototypes, terms
public static
# update( )

Prototypal update. must have sub id to reference allows mocking of functions like:

Prototypal update. must have sub id to reference allows mocking of functions like:

Conference->updateMember(array(memberId=1))

termId should always be term + Id make sure it is singular.

Methods inherited from Catapult\BaseUtilities

assoc(), camelcase(), dateToApi(), datefromApi(), find(), is_multidimensional(), is_ref(), prop_or_arr(), same_type()

Bandwidth PHP SDK API documentation generated by ApiGen