protected function serializeArguments(array $args)
    {
        // first we have to sort the args by key to avoid that different orders
        // lead to different cache entries!
        ksort($args);

        $result = '';
        $invalidKeys = array('userid', 'apikey', 'keyid', 'vcode');
        foreach ($args as $key => $value) {
            $key   = trim($key);
            $value = trim($value);
            if (empty($value) || in_array($key, $invalidKeys)) {
                // ignore the invalid keys...
                continue;
            }
            $result .= ';' . $key . '=' . $value;
        }

        return $result;
    }
protected function serializeArguments(array $args)
    {
        // first we have to sort the args by key to avoid that different orders
        // lead to different cache entries!
        ksort($args);

        $result = '';
        $invalidKeys = array('userid', 'apikey', 'keyid', 'vcode');
        foreach ($args as $key => $value) {
            $key   = trim($key);
            $value = trim($value);
            if (empty($value) || in_array($key, $invalidKeys)) {
                // ignore the invalid keys...
                continue;
            }
            $result .= ';' . $key . '=' . $value;
        }

        return $result;
    }
protected function serializeArguments ( array $ args ) { // first we have to sort the args by key to avoid that different orders // lead to different cache entries! ksort ( $ args ) ; $ result = '' ; $ invalidKeys = array ( 'userid' , 'apikey' , 'keyid' , 'vcode' ) ; foreach ( $ args as $ key => $ value ) { $ key = trim ( $ key ) ; $ value = trim ( $ value ) ; if ( empty ( $ value ) || in_array ( $ key , $ invalidKeys ) ) { // ignore the invalid keys... continue ; } $ result .= ';' . $ key . '=' . $ value ; } return $ result ; }
Serializes the arguments into a string

@param array $args
@return string the serialized arguments array, e. g. ;key1=value1;key2=value2
Serializes the arguments into a string