function _createParams( $params=array(), $ctrKeys=array() ) {
    $attrLANG = $attr1 = $attr2 = null;
    $CNattrKey   = ( in_array( 'CN',       $ctrKeys )) ? TRUE : FALSE ;
    $LANGattrKey = ( in_array( 'LANGUAGE', $ctrKeys )) ? TRUE : FALSE ;
    $CNattrExist = $LANGattrExist = FALSE;
    if( is_array( $params )) {
      foreach( $params as $paramKey => $paramValue ) {
        if( is_int( $paramKey ))
          $attr2            .= $this->intAttrDelimiter.$paramValue;
        elseif(( 'LANGUAGE' == $paramKey ) && $LANGattrKey ) {
          $attrLANG         .= $this->intAttrDelimiter."LANGUAGE=$paramValue";
          $LANGattrExist     = TRUE;
        }
        elseif(( 'CN'       == $paramKey ) && $CNattrKey ) {
          $attr1             = $this->intAttrDelimiter.'CN="'.$paramValue.'"';
          $CNattrExist       = TRUE;
        }
        elseif(( 'ALTREP'   == $paramKey ) && in_array( $paramKey, $ctrKeys ))
          $attr2            .= $this->intAttrDelimiter.'ALTREP="'.$paramValue.'"';
        elseif(( 'DIR'      == $paramKey ) && in_array( $paramKey, $ctrKeys ))
          $attr2            .= $this->intAttrDelimiter.'DIR="'.$paramValue.'"';
        elseif(( 'SENT-BY'  == $paramKey ) && in_array( $paramKey, $ctrKeys ))
          $attr2            .= $this->intAttrDelimiter.'SENT-BY="MAILTO:'.$paramValue.'"';
        else
          $attr2            .= $this->intAttrDelimiter."$paramKey=$paramValue";
      }
    }
    if( !$LANGattrExist ) {
      $lang = $this->getConfig( 'language' );
      if(( $CNattrExist || $LANGattrKey ) && $lang )
        $attrLANG .= $this->intAttrDelimiter.'LANGUAGE='.$lang;
    }
    return $attrLANG.$attr1.$attr2;
  }
function _createParams( $params=array(), $ctrKeys=array() ) {
    $attrLANG = $attr1 = $attr2 = null;
    $CNattrKey   = ( in_array( 'CN',       $ctrKeys )) ? TRUE : FALSE ;
    $LANGattrKey = ( in_array( 'LANGUAGE', $ctrKeys )) ? TRUE : FALSE ;
    $CNattrExist = $LANGattrExist = FALSE;
    if( is_array( $params )) {
      foreach( $params as $paramKey => $paramValue ) {
        if( is_int( $paramKey ))
          $attr2            .= $this->intAttrDelimiter.$paramValue;
        elseif(( 'LANGUAGE' == $paramKey ) && $LANGattrKey ) {
          $attrLANG         .= $this->intAttrDelimiter."LANGUAGE=$paramValue";
          $LANGattrExist     = TRUE;
        }
        elseif(( 'CN'       == $paramKey ) && $CNattrKey ) {
          $attr1             = $this->intAttrDelimiter.'CN="'.$paramValue.'"';
          $CNattrExist       = TRUE;
        }
        elseif(( 'ALTREP'   == $paramKey ) && in_array( $paramKey, $ctrKeys ))
          $attr2            .= $this->intAttrDelimiter.'ALTREP="'.$paramValue.'"';
        elseif(( 'DIR'      == $paramKey ) && in_array( $paramKey, $ctrKeys ))
          $attr2            .= $this->intAttrDelimiter.'DIR="'.$paramValue.'"';
        elseif(( 'SENT-BY'  == $paramKey ) && in_array( $paramKey, $ctrKeys ))
          $attr2            .= $this->intAttrDelimiter.'SENT-BY="MAILTO:'.$paramValue.'"';
        else
          $attr2            .= $this->intAttrDelimiter."$paramKey=$paramValue";
      }
    }
    if( !$LANGattrExist ) {
      $lang = $this->getConfig( 'language' );
      if(( $CNattrExist || $LANGattrKey ) && $lang )
        $attrLANG .= $this->intAttrDelimiter.'LANGUAGE='.$lang;
    }
    return $attrLANG.$attr1.$attr2;
  }
function _createParams ( $ params = array ( ) , $ ctrKeys = array ( ) ) { $ attrLANG = $ attr1 = $ attr2 = null ; $ CNattrKey = ( in_array ( 'CN' , $ ctrKeys ) ) ? TRUE : FALSE ; $ LANGattrKey = ( in_array ( 'LANGUAGE' , $ ctrKeys ) ) ? TRUE : FALSE ; $ CNattrExist = $ LANGattrExist = FALSE ; if ( is_array ( $ params ) ) { foreach ( $ params as $ paramKey => $ paramValue ) { if ( is_int ( $ paramKey ) ) $ attr2 .= $ this -> intAttrDelimiter . $ paramValue ; elseif ( ( 'LANGUAGE' == $ paramKey ) && $ LANGattrKey ) { $ attrLANG .= $ this -> intAttrDelimiter . "LANGUAGE=$paramValue" ; $ LANGattrExist = TRUE ; } elseif ( ( 'CN' == $ paramKey ) && $ CNattrKey ) { $ attr1 = $ this -> intAttrDelimiter . 'CN="' . $ paramValue . '"' ; $ CNattrExist = TRUE ; } elseif ( ( 'ALTREP' == $ paramKey ) && in_array ( $ paramKey , $ ctrKeys ) ) $ attr2 .= $ this -> intAttrDelimiter . 'ALTREP="' . $ paramValue . '"' ; elseif ( ( 'DIR' == $ paramKey ) && in_array ( $ paramKey , $ ctrKeys ) ) $ attr2 .= $ this -> intAttrDelimiter . 'DIR="' . $ paramValue . '"' ; elseif ( ( 'SENT-BY' == $ paramKey ) && in_array ( $ paramKey , $ ctrKeys ) ) $ attr2 .= $ this -> intAttrDelimiter . 'SENT-BY="MAILTO:' . $ paramValue . '"' ; else $ attr2 .= $ this -> intAttrDelimiter . "$paramKey=$paramValue" ; } } if ( ! $ LANGattrExist ) { $ lang = $ this -> getConfig ( 'language' ) ; if ( ( $ CNattrExist || $ LANGattrKey ) && $ lang ) $ attrLANG .= $ this -> intAttrDelimiter . 'LANGUAGE=' . $ lang ; } return $ attrLANG . $ attr1 . $ attr2 ; }
creates formatted output for calendar component property parameters

@author Kjell-Inge Gustafsson <ical@kigkonsult.se>
@since 0.9.22 - 2007-04-10
@param array $params  optional
@param array $ctrKeys optional
@return string
creates formatted output for calendar component property parameters