src/wcmf/lib/presentation/link/InternalLink.php
public static function makeAnchorLink(ObjectId $oid, ObjectId $anchorOID, $anchorName=null) {
    $str = self::makeLink($oid)."/".$anchorOID->__toString();
    if ($anchorName != null) {
      $str .= "#".$anchorName;
    }
    return $str;
  }
public static function makeAnchorLink(ObjectId $oid, ObjectId $anchorOID, $anchorName=null) {
    $str = self::makeLink($oid)."/".$anchorOID->__toString();
    if ($anchorName != null) {
      $str .= "#".$anchorName;
    }
    return $str;
  }
public static function makeAnchorLink ( ObjectId $ oid , ObjectId $ anchorOID , $ anchorName = null ) { $ str = self :: makeLink ( $ oid ) . "/" . $ anchorOID -> __toString ( ) ; if ( $ anchorName != null ) { $ str .= "#" . $ anchorName ; } return $ str ; }
Make an internal link to an object
@param $oid The object id of the object to link to
@param $anchorOID The object id of the subobject to link to
@param $anchorName The name inside the subobject to link to (null, if the object itself should be linked) (default: _null_)
@return The link
Make an internal link to an object