Overview

Namespaces

  • Ctct
    • Auth
    • Components
      • Account
      • Activities
      • Contacts
      • EmailMarketing
      • Tracking
    • Exceptions
    • Services
  • PHP

Classes

  • Component
  • ResultSet
  • Overview
  • Namespace
  • Class
  • Tree
 1: <?php
 2: namespace Ctct\Components;
 3: 
 4: /**
 5:  * Super class for all components
 6:  */
 7: abstract class Component
 8: {
 9: 
10:     /**
11:      * Get the requested value from an array, or return the default
12:      * @param array $array - array to search for the provided array key
13:      * @param string $item - array key to look for
14:      * @param string $default - value to return if the item is not found, default is null
15:      * @return mixed
16:      */
17:     protected static function getValue(array $array, $item, $default = null)
18:     {
19:         return (isset($array[$item])) ? $array[$item] : $default;
20:     }
21: }
22: 
Appconnect PHP SDK API documentation generated by ApiGen 2.8.0