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 ECO

Description of ECO: 9.4.1: Tag: ECO

This uses a string of either the form "XDD" or the form "XDD/DD" where the "X" is a letter from "A" to "E" and the "D" positions are digits; this is used for an opening designation from the five volume Encyclopedia of Chess Openings. This tag pair is associated with the use of the EPD opcode "eco" described in a later section of this document.

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

Returns

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

Parameters

$data

Returns

boolean
returns if a data is valid

Assert("*")

=== false

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

=== false

Assert("a")

=== false

Assert("a0")

=== false

Assert("a00")

=== true

Assert("a00/0")

=== false

Assert("a00/00")

=== true

Assert("asdf")

=== false

Assert("c12/34")

=== true

Assert("c21")

=== true

Assert("e99")

=== true

Assert("e99/99")

=== true

Assert(123)

=== false

Assert(null)

=== false

Overrides

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

Get the regex pattern of a valid ECO tag string

Get the regex pattern of a valid ECO tag string

Returns

string
regex pattern of a valid ECO tag string

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