Parser: End Tag Handler
/**
* Processes XML end tags.
*
* <p>Determines what to do when we reach the end of each XML element. The
* XML parser automatically calls this function. Don't call this manually.</p>
*
* @param mixed $Parser variable to contain the current parser's reference id
* @param mixed $Elem variable to contain the current element's name
*/
function saxEndHandler(&$Parser, &$Elem) {
if ($this->IgnoreTheRest == 'Y') {
return;
}
$this->Data[$Elem] = trim( implode('', $this->CData) );
switch ($Elem) {
case 'PRECORD':
if ( !$this->validateDataFields($Elem) ) {
break;
}
$this->runQuery( $this->qsStatNflGamePlayerD(
$this->Data['P_CODE'],
$this->Data['P_PUNTYDS'] ) );
$this->unsetFields($Elem);
break;
case 'LINESCORE':
if ( !$this->validateDataFields($Elem) ) {
break;
}
$this->runQuery( $this->qsStatNflLinescore(
$this->Data['LINESCORE:TEAMCODE'],
$this->Data['LINESCORE:QTR4'] ) );
$this->unsetFields($Elem);
}
array_pop($this->ParentElements);
}