src/wcmf/lib/presentation/link/InternalLink.php
public static function getAnchorName($link) {
    preg_match_all("/#(.+)$/", $link, $matches);
    if (sizeof($matches) > 0 && sizeof($matches[1]) > 0) {
      $name = $matches[1][0];
      return $name;
    }
    return null;
  }
public static function getAnchorName($link) {
    preg_match_all("/#(.+)$/", $link, $matches);
    if (sizeof($matches) > 0 && sizeof($matches[1]) > 0) {
      $name = $matches[1][0];
      return $name;
    }
    return null;
  }
public static function getAnchorName ( $ link ) { preg_match_all ( "/#(.+)$/" , $ link , $ matches ) ; if ( sizeof ( $ matches ) > 0 && sizeof ( $ matches [ 1 ] ) > 0 ) { $ name = $ matches [ 1 ] [ 0 ] ; return $ name ; } return null ; }
Get the name of the anchor inside the referenced subobject if any
@param $link The link to process
@return The name or null if no anchor name is defined
Get the name of the anchor inside the referenced subobject if any