function setRelatedTo( $relid, $params=FALSE ) {
    $relation           = array();
    if(( '<' == substr( $relid, 0, 1 )) &&
       ( '>' == substr( $relid, -1 )))
                 $relid = substr( $relid, 1, ( strlen( $relid ) - 2 ));
    $relation['value']  = $relid;
    $relation['params'] = $this->_setParams( $params );
            // remove default
    if( isset( $relation['params']['RELTYPE'] ) &&
       ( strtoupper( $relation['params']['RELTYPE'] ) == 'PARENT' ))
      unset( $relation['params']['RELTYPE'] );
    $this->relatedto[]  = $relation;
  }
function setRelatedTo( $relid, $params=FALSE ) {
    $relation           = array();
    if(( '<' == substr( $relid, 0, 1 )) &&
       ( '>' == substr( $relid, -1 )))
                 $relid = substr( $relid, 1, ( strlen( $relid ) - 2 ));
    $relation['value']  = $relid;
    $relation['params'] = $this->_setParams( $params );
            // remove default
    if( isset( $relation['params']['RELTYPE'] ) &&
       ( strtoupper( $relation['params']['RELTYPE'] ) == 'PARENT' ))
      unset( $relation['params']['RELTYPE'] );
    $this->relatedto[]  = $relation;
  }
function setRelatedTo ( $ relid , $ params = FALSE ) { $ relation = array ( ) ; if ( ( '<' == substr ( $ relid , 0 , 1 ) ) && ( '>' == substr ( $ relid , - 1 ) ) ) $ relid = substr ( $ relid , 1 , ( strlen ( $ relid ) - 2 ) ) ; $ relation [ 'value' ] = $ relid ; $ relation [ 'params' ] = $ this -> _setParams ( $ params ) ; // remove default if ( isset ( $ relation [ 'params' ] [ 'RELTYPE' ] ) && ( strtoupper ( $ relation [ 'params' ] [ 'RELTYPE' ] ) == 'PARENT' ) ) unset ( $ relation [ 'params' ] [ 'RELTYPE' ] ) ; $ this -> relatedto [ ] = $ relation ; }
set calendar component property related-to

@author Kjell-Inge Gustafsson <ical@kigkonsult.se>
@since 1.x.x - 2007-05-24
@param float $relid
@param array $params optional
@return void
set calendar component property related - to