function createAttendee() {
    $cnt = count( $this->attendee );
    if( 0 >= $cnt )
      return;
    $attendees = null;
    foreach( $this->attendee as $attendeePart ) {                      // start foreach 1
      $attendee1 = $attendee2 = $attendeeLANG = $attendeeCN = null;
      foreach( $attendeePart as $paramlabel => $paramvalue ) {         // start foreach 2
        if( 'value' == $paramlabel ) {
          $attendee2  .= 'MAILTO:'.$paramvalue;
        }
        elseif(( 'params' == $paramlabel ) && ( is_array( $paramvalue ))) { // start elseif
          foreach( $paramvalue as $optparamlabel => $optparamvalue ) { // start foreach 3
            $attendee11 = $attendee12 = null;
            if( is_int( $optparamlabel )) {
              $attendee1 .= $this->intAttrDelimiter.$optparamvalue;
              continue;
            }
            switch( $optparamlabel ) {                                 // start switch
              case 'CUTYPE':
              case 'PARTSTAT':
              case 'ROLE':
              case 'RSVP':
                $attendee1 .= $this->intAttrDelimiter.$optparamlabel.'="'.$optparamvalue.'"';
                break;
              case 'SENT-BY':
                $attendee1 .= $this->intAttrDelimiter.'SENT-BY="MAILTO:'.$optparamvalue.'"';
                break;
              case 'MEMBER':
                $attendee11 = $this->intAttrDelimiter.'MEMBER=';
              case 'DELEGATED-TO':
                $attendee11 = ( !$attendee11 ) ? $this->intAttrDelimiter.'DELEGATED-TO='   : $attendee11;
              case 'DELEGATED-FROM':
                $attendee11 = ( !$attendee11 ) ? $this->intAttrDelimiter.'DELEGATED-FROM=' : $attendee11;
                foreach( $optparamvalue  as $cix => $calUserAddress ) {
                  $attendee12 .= ( $cix ) ? ',' : null;
                  $attendee12 .= '"MAILTO:'.$calUserAddress.'"';
                }
                $attendee1  .= $attendee11.$attendee12;
                break;
              case 'CN':
                $attendeeCN .= $this->intAttrDelimiter.'CN="'.$optparamvalue.'"';
                break;
              case 'DIR':
                $attendee1 .= $this->intAttrDelimiter.'DIR="'.$optparamvalue.'"';
                break;
              case 'LANGUAGE':
                $attendeeLANG .= $this->intAttrDelimiter.'LANGUAGE='.$optparamvalue;
                break;
              default:
                $attendee1 .= $this->intAttrDelimiter."$optparamlabel=$optparamvalue";
                break;
            }    // end switch
          }      // end foreach 3
        }        // end elseif
      }          // end foreach 2
      $attendees .= $this->_createElement( 'ATTENDEE', $attendee1.$attendeeLANG.$attendeeCN, $attendee2 );
    }              // end foreach 1
    return $attendees;
  }
function createAttendee() {
    $cnt = count( $this->attendee );
    if( 0 >= $cnt )
      return;
    $attendees = null;
    foreach( $this->attendee as $attendeePart ) {                      // start foreach 1
      $attendee1 = $attendee2 = $attendeeLANG = $attendeeCN = null;
      foreach( $attendeePart as $paramlabel => $paramvalue ) {         // start foreach 2
        if( 'value' == $paramlabel ) {
          $attendee2  .= 'MAILTO:'.$paramvalue;
        }
        elseif(( 'params' == $paramlabel ) && ( is_array( $paramvalue ))) { // start elseif
          foreach( $paramvalue as $optparamlabel => $optparamvalue ) { // start foreach 3
            $attendee11 = $attendee12 = null;
            if( is_int( $optparamlabel )) {
              $attendee1 .= $this->intAttrDelimiter.$optparamvalue;
              continue;
            }
            switch( $optparamlabel ) {                                 // start switch
              case 'CUTYPE':
              case 'PARTSTAT':
              case 'ROLE':
              case 'RSVP':
                $attendee1 .= $this->intAttrDelimiter.$optparamlabel.'="'.$optparamvalue.'"';
                break;
              case 'SENT-BY':
                $attendee1 .= $this->intAttrDelimiter.'SENT-BY="MAILTO:'.$optparamvalue.'"';
                break;
              case 'MEMBER':
                $attendee11 = $this->intAttrDelimiter.'MEMBER=';
              case 'DELEGATED-TO':
                $attendee11 = ( !$attendee11 ) ? $this->intAttrDelimiter.'DELEGATED-TO='   : $attendee11;
              case 'DELEGATED-FROM':
                $attendee11 = ( !$attendee11 ) ? $this->intAttrDelimiter.'DELEGATED-FROM=' : $attendee11;
                foreach( $optparamvalue  as $cix => $calUserAddress ) {
                  $attendee12 .= ( $cix ) ? ',' : null;
                  $attendee12 .= '"MAILTO:'.$calUserAddress.'"';
                }
                $attendee1  .= $attendee11.$attendee12;
                break;
              case 'CN':
                $attendeeCN .= $this->intAttrDelimiter.'CN="'.$optparamvalue.'"';
                break;
              case 'DIR':
                $attendee1 .= $this->intAttrDelimiter.'DIR="'.$optparamvalue.'"';
                break;
              case 'LANGUAGE':
                $attendeeLANG .= $this->intAttrDelimiter.'LANGUAGE='.$optparamvalue;
                break;
              default:
                $attendee1 .= $this->intAttrDelimiter."$optparamlabel=$optparamvalue";
                break;
            }    // end switch
          }      // end foreach 3
        }        // end elseif
      }          // end foreach 2
      $attendees .= $this->_createElement( 'ATTENDEE', $attendee1.$attendeeLANG.$attendeeCN, $attendee2 );
    }              // end foreach 1
    return $attendees;
  }
function createAttendee ( ) { $ cnt = count ( $ this -> attendee ) ; if ( 0 >= $ cnt ) return ; $ attendees = null ; foreach ( $ this -> attendee as $ attendeePart ) { // start foreach 1 $ attendee1 = $ attendee2 = $ attendeeLANG = $ attendeeCN = null ; foreach ( $ attendeePart as $ paramlabel => $ paramvalue ) { // start foreach 2 if ( 'value' == $ paramlabel ) { $ attendee2 .= 'MAILTO:' . $ paramvalue ; } elseif ( ( 'params' == $ paramlabel ) && ( is_array ( $ paramvalue ) ) ) { // start elseif foreach ( $ paramvalue as $ optparamlabel => $ optparamvalue ) { // start foreach 3 $ attendee11 = $ attendee12 = null ; if ( is_int ( $ optparamlabel ) ) { $ attendee1 .= $ this -> intAttrDelimiter . $ optparamvalue ; continue ; } switch ( $ optparamlabel ) { // start switch case 'CUTYPE' : case 'PARTSTAT' : case 'ROLE' : case 'RSVP' : $ attendee1 .= $ this -> intAttrDelimiter . $ optparamlabel . '="' . $ optparamvalue . '"' ; break ; case 'SENT-BY' : $ attendee1 .= $ this -> intAttrDelimiter . 'SENT-BY="MAILTO:' . $ optparamvalue . '"' ; break ; case 'MEMBER' : $ attendee11 = $ this -> intAttrDelimiter . 'MEMBER=' ; case 'DELEGATED-TO' : $ attendee11 = ( ! $ attendee11 ) ? $ this -> intAttrDelimiter . 'DELEGATED-TO=' : $ attendee11 ; case 'DELEGATED-FROM' : $ attendee11 = ( ! $ attendee11 ) ? $ this -> intAttrDelimiter . 'DELEGATED-FROM=' : $ attendee11 ; foreach ( $ optparamvalue as $ cix => $ calUserAddress ) { $ attendee12 .= ( $ cix ) ? ',' : null ; $ attendee12 .= '"MAILTO:' . $ calUserAddress . '"' ; } $ attendee1 .= $ attendee11 . $ attendee12 ; break ; case 'CN' : $ attendeeCN .= $ this -> intAttrDelimiter . 'CN="' . $ optparamvalue . '"' ; break ; case 'DIR' : $ attendee1 .= $ this -> intAttrDelimiter . 'DIR="' . $ optparamvalue . '"' ; break ; case 'LANGUAGE' : $ attendeeLANG .= $ this -> intAttrDelimiter . 'LANGUAGE=' . $ optparamvalue ; break ; default : $ attendee1 .= $ this -> intAttrDelimiter . "$optparamlabel=$optparamvalue" ; break ; } // end switch } // end foreach 3 } // end elseif } // end foreach 2 $ attendees .= $ this -> _createElement ( 'ATTENDEE' , $ attendee1 . $ attendeeLANG . $ attendeeCN , $ attendee2 ) ; } // end foreach 1 return $ attendees ; }
creates formatted output for calendar component property attendee

@author Kjell-Inge Gustafsson <ical@kigkonsult.se>
@since 1.x.x - 2007-05-20
@return string
creates formatted output for calendar component property attendee