protected function convertParameters30(Property $newProperty, array $parameters)
    {
        // Adding all parameters.
        foreach ($parameters as $param) {
            // vCard 2.1 allowed parameters with no name
            if ($param->noName) {
                $param->noName = false;
            }

            switch ($param->name) {
                case 'ENCODING':
                    // This value only existed in vCard 2.1, and should be
                    // removed for anything else.
                    if ('QUOTED-PRINTABLE' !== strtoupper($param->getValue())) {
                        $newProperty->add($param->name, $param->getParts());
                    }
                    break;

                /*
                 * Converting PREF=1 to TYPE=PREF.
                 *
                 * Any other PREF numbers we'll drop.
                 */
                case 'PREF':
                    if ('1' == $param->getValue()) {
                        $newProperty->add('TYPE', 'PREF');
                    }
                    break;

                default:
                    $newProperty->add($param->name, $param->getParts());
                    break;
            }
        }
    }
protected function convertParameters30(Property $newProperty, array $parameters)
    {
        // Adding all parameters.
        foreach ($parameters as $param) {
            // vCard 2.1 allowed parameters with no name
            if ($param->noName) {
                $param->noName = false;
            }

            switch ($param->name) {
                case 'ENCODING':
                    // This value only existed in vCard 2.1, and should be
                    // removed for anything else.
                    if ('QUOTED-PRINTABLE' !== strtoupper($param->getValue())) {
                        $newProperty->add($param->name, $param->getParts());
                    }
                    break;

                /*
                 * Converting PREF=1 to TYPE=PREF.
                 *
                 * Any other PREF numbers we'll drop.
                 */
                case 'PREF':
                    if ('1' == $param->getValue()) {
                        $newProperty->add('TYPE', 'PREF');
                    }
                    break;

                default:
                    $newProperty->add($param->name, $param->getParts());
                    break;
            }
        }
    }
protected function convertParameters30 ( Property $ newProperty , array $ parameters ) { // Adding all parameters. foreach ( $ parameters as $ param ) { // vCard 2.1 allowed parameters with no name if ( $ param -> noName ) { $ param -> noName = false ; } switch ( $ param -> name ) { case 'ENCODING' : // This value only existed in vCard 2.1, and should be // removed for anything else. if ( 'QUOTED-PRINTABLE' !== strtoupper ( $ param -> getValue ( ) ) ) { $ newProperty -> add ( $ param -> name , $ param -> getParts ( ) ) ; } break ; /*
                 * Converting PREF=1 to TYPE=PREF.
                 *
                 * Any other PREF numbers we'll drop.
                 */ case 'PREF' : if ( '1' == $ param -> getValue ( ) ) { $ newProperty -> add ( 'TYPE' , 'PREF' ) ; } break ; default : $ newProperty -> add ( $ param -> name , $ param -> getParts ( ) ) ; break ; } } }
Adds parameters to a new property for vCard 3.0.

@param Property $newProperty
@param array    $parameters
Adds parameters to a new property for vCard 3 . 0 .