Documentation is available at SingleLevelViolationDetail.inc
- <?php
- ################################################################
- # This file is part of SlidingDoors #
- # Copyright 2001-2002. Eric D. Nielsen, All rights reserverd #
- # SlidingDoors is availible for license under the GPL, see #
- # the COPYING file in the root directory of the install for #
- # the full terms of the GPL. #
- # #
- # File: SingleLevelViolationDetail.inc #
- # Author: Eric D. Nielsen #
- # Description: A class that hold data describing when a #
- # user tries to compete in a given event at too #
- # many levels #
- # Attributes: details -- textual description of the reason of #
- # a false #
- # Constructor: ContraCheckDetail #
- # Methods: getText #
- # Change Log: 3/03/02 -- created -- edn #
- ################################################################
- class SingleLevelViolationDetail extends ContraCheckDetail
- {
- var $personID;
- var $personName;
- var $levelAllowed;
- var $levelsEntered;
- ############################################################
- # Function: SingleLevelViolationDetail #
- # Arguments: db -- the db to interact with #
- # personID -- the person generating the error #
- # levelAllowed -- the name of thelevels allowed #
- # at this comp #
- # levelsEntered -- the levels this person #
- # entered #
- # Returns: nothing #
- # Modifies: this #
- # Requires: nothing #
- ############################################################
- function SingleLevelViolationDetail($db,$personID,
- $levelAllowed, $levelsEntered)
- {
- ContraCheckDetail::ContraCheckDetail($db);
- $this->personID = $personID;
- $person = new Person($db);
- $person->setID($personID);
- $person->retrieve();
- $this->personName = $person->getFirstName() . " " .
- $person->getLastName();
- $this->levelAllowed=$levelAllowed;
- $this->levelsEntered=$levelsEntered;
- }
- ############################################################
- # Function: getText #
- # Arguments: none #
- # Returns: nothing #
- # Modifies: this #
- # Requires: nothing #
- ############################################################
- function getText()
- {
- $returnString = "<br><font color=\"red\">The package selected by $this->personName ";
- $returnString .="only includes entries in the $this->levelAllowed ";
- $returnString .= "level. If $this->personName wants to compete in (";
- $returnString .= arrayToCSL(array_keys($this->levelsEntered));
- $returnString .= ") $this->personName will have to select a different package or drop events first.";
- $returnString .= "</font>";
- return $returnString;
- }
- }
- ?>
Documentation generated on Tue, 25 Apr 2006 13:09:52 -0400 by phpDocumentor 1.3.0RC3