Overview

Namespaces

  • pgn
    • exceptions
    • tags
  • utils

Classes

  • Annotator
  • Black
  • BlackElo
  • BlackNA
  • BlackTitle
  • BlackType
  • BlackUSCF
  • Board
  • Date
  • ECO
  • Event
  • EventCountry
  • EventDate
  • EventRounds
  • EventSponsor
  • EventType
  • FEN
  • Mode
  • NIC
  • Opening
  • PlyCount
  • Result
  • Round
  • Section
  • SetUp
  • Site
  • Source
  • SourceDate
  • Stage
  • SubVariation
  • Tag
  • Termination
  • Time
  • TimeControl
  • UknownTag
  • UTCDate
  • UTCTime
  • Variation
  • White
  • WhiteElo
  • WhiteNA
  • WhiteTitle
  • WhiteType
  • WhiteUSCF
  • Overview
  • Namespace
  • Class

Class Round

Description of Round: The Round tag value gives the playing round for the game. In a match competition, this value is the number of the game played. If the use of a round number is inappropriate, then the field should be a single hyphen character. If the round is unknown, a single question mark should appear as the tag value.

Some organizers employ unusual round designations and have multipart playing rounds and sometimes even have conditional rounds. In these cases, a multipart round identifier can be made from a sequence of integer round numbers separated by periods. The leftmost integer represents the most significant round and succeeding integers represent round numbers in descending hierarchical order.

Examples:

[Round "1"]

[Round "3.1"]

[Round "4.1.2"]

pgn\tags\Tag
Extended by pgn\tags\Round
Namespace: pgn\tags
Author: Geraldo
See: pgn_standard.txt
Located at pgn/tags/Round.php
Methods summary
public the
# getName( )

Returns

the
name of the tag
public boolean
# validate( string $data )

Parameters

$data

Returns

boolean

Assert("*")

=== false

Assert("-")

=== true

Assert("1")

=== true

Assert("3.1")

=== true

Assert("4.1.2")

=== true

Assert("?")

=== true

Assert("????.??.??")

=== false

Assert("a")

=== false

Assert("asdf")

=== false

Assert(1)

=== true

Assert(3.1)

=== true

Assert(null)

=== false

Overrides

pgn\tags\Tag::validate()
public static string
# validPattern( )

Returns

string
Valid Regular Expression Pattern for PGN Rounds

Overrides

pgn\tags\Tag::validPattern()
Methods inherited from pgn\tags\Tag
__toString(), createTag(), formatted(), get(), getDefaultValue(), parse(), parseTagName(), parseTagValue(), set()
Properties inherited from pgn\tags\Tag
$data, $errorMsg
API documentation generated by ApiGen