public function getIniPrefix($accountId = null)
    {
        if ($accountId == null) {
            $arr = array();
            foreach ($this->configs as $key => $value) {
                $pos = strpos($key, '.');
                if (strstr($key, "acct")) {
                    $arr[] = substr($key, 0, $pos);
                }
            }
            return array_unique($arr);
        } else {
            $iniPrefix = array_search($accountId, $this->configs);
            $pos = strpos($iniPrefix, '.');
            $acct = substr($iniPrefix, 0, $pos);

            return $acct;
        }
    }
public function getIniPrefix($accountId = null)
    {
        if ($accountId == null) {
            $arr = array();
            foreach ($this->configs as $key => $value) {
                $pos = strpos($key, '.');
                if (strstr($key, "acct")) {
                    $arr[] = substr($key, 0, $pos);
                }
            }
            return array_unique($arr);
        } else {
            $iniPrefix = array_search($accountId, $this->configs);
            $pos = strpos($iniPrefix, '.');
            $acct = substr($iniPrefix, 0, $pos);

            return $acct;
        }
    }
public function getIniPrefix ( $ accountId = null ) { if ( $ accountId == null ) { $ arr = array ( ) ; foreach ( $ this -> configs as $ key => $ value ) { $ pos = strpos ( $ key , '.' ) ; if ( strstr ( $ key , "acct" ) ) { $ arr [ ] = substr ( $ key , 0 , $ pos ) ; } } return array_unique ( $ arr ) ; } else { $ iniPrefix = array_search ( $ accountId , $ this -> configs ) ; $ pos = strpos ( $ iniPrefix , '.' ) ; $ acct = substr ( $ iniPrefix , 0 , $ pos ) ; return $ acct ; } }
Utility method for handling account configuration
return config key corresponding to the API accountId passed in

If $accountId is null, returns config keys corresponding to
all configured accounts

@param string|null $accountId
@return array|string
Utility method for handling account configuration return config key corresponding to the API accountId passed in