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 Termination

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

Returns

string

Assert()

=== 'Termination'
public boolean
# validate( string $data )

Parameters

$data

Returns

boolean

Assert("*")

=== false

Assert("-")

=== false

Assert("4.1.2")

=== false

Assert("a")

=== false

Assert("abandoned")

=== true

Assert("adjudication")

=== true

Assert("asdf")

=== false

Assert("death")

=== true

Assert("emergency")

=== true

Assert("human")

=== false

Assert("normal")

=== true

Assert("person")

=== false

Assert("program")

=== false

Assert("rules

infraction") === true

Assert("software")

=== false

Assert("time

forfeit") === true

Assert("unterminated")

=== true

Assert(3.1)

=== false

Assert(null)

=== false

Overrides

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

Returns

string
Valid Regular Expression

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