public function get_all_object_types_by_site($SITE)
    {
        // Get our valid object types
        $TYPES = $this->object_types();

        // Do not get these objects by site. - They need to be requested directly.
        $DISCARD_TYPES = [
                    'Phone',
                    'Line',
                    //'CtiRoutePoint',
                    ];

        $RETURN = [];
        foreach ($TYPES as $TYPE) {
            if (in_array($TYPE, $DISCARD_TYPES)) {
                continue;
            }
            if (php_sapi_name() === 'cli') {
                //print "Getting {$SITE}s {$TYPE}...".PHP_EOL;
            }
            /*
            if ($TYPE == 'Line') {
                continue;
            }*/
            try {
                $RETURN[$TYPE] = $this->get_object_type_by_site($SITE, $TYPE);
            } catch (\Exception $E) {
                $RETURN[$TYPE] = [];
            }
        }

        return $RETURN;
    }
public function get_all_object_types_by_site($SITE)
    {
        // Get our valid object types
        $TYPES = $this->object_types();

        // Do not get these objects by site. - They need to be requested directly.
        $DISCARD_TYPES = [
                    'Phone',
                    'Line',
                    //'CtiRoutePoint',
                    ];

        $RETURN = [];
        foreach ($TYPES as $TYPE) {
            if (in_array($TYPE, $DISCARD_TYPES)) {
                continue;
            }
            if (php_sapi_name() === 'cli') {
                //print "Getting {$SITE}s {$TYPE}...".PHP_EOL;
            }
            /*
            if ($TYPE == 'Line') {
                continue;
            }*/
            try {
                $RETURN[$TYPE] = $this->get_object_type_by_site($SITE, $TYPE);
            } catch (\Exception $E) {
                $RETURN[$TYPE] = [];
            }
        }

        return $RETURN;
    }
public function get_all_object_types_by_site ( $ SITE ) { // Get our valid object types $ TYPES = $ this -> object_types ( ) ; // Do not get these objects by site. - They need to be requested directly. $ DISCARD_TYPES = [ 'Phone' , 'Line' , //'CtiRoutePoint', ] ; $ RETURN = [ ] ; foreach ( $ TYPES as $ TYPE ) { if ( in_array ( $ TYPE , $ DISCARD_TYPES ) ) { continue ; } if ( php_sapi_name ( ) === 'cli' ) { //print "Getting {$SITE}s {$TYPE}...".PHP_EOL; } /*
            if ($TYPE == 'Line') {
                continue;
            }*/ try { $ RETURN [ $ TYPE ] = $ this -> get_object_type_by_site ( $ SITE , $ TYPE ) ; } catch ( \ Exception $ E ) { $ RETURN [ $ TYPE ] = [ ] ; } } return $ RETURN ; }
This returns an associative array for each of the above types
This returns an associative array for each of the above types