Documentation is available at StyleBlockViolationDetail.inc
- <?php
- ################################################################
- # This file is part of SlidingDoors #
- # Copyright 2001-2003. 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: NumEventBlocksViolationDetail.inc #
- # Author: Eric D. Nielsen #
- # Description: A class that hold data describing when a #
- # user tries to compete in too many levels in a #
- # style #
- # Attributes: details -- textual description of the reason of #
- # a false #
- # Constructor: StyleBlockViolationDetail #
- # Methods: getText #
- # Change Log: 1/07/03 -- created -- edn #
- ################################################################
- class StyleBlockViolationDetail extends ContraCheckDetail
- {
- var $personID;
- var $personName;
- var $styles;
- ############################################################
- # Function: StyleBlockViolationDetail #
- # Arguments: db -- the db to interact with #
- # personID -- the person generating the error #
- # eventName -- the events generating the error #
- # style -- which style caused the error #
- # Returns: nothing #
- # Modifies: this #
- # Requires: nothing #
- ############################################################
- function StyleBlockViolationDetail($db,$personID,
- $style)
- {
- ContraCheckDetail::ContraCheckDetail($db);
- $this->personID = $personID;
- $person = new Person($db);
- $person->setID($personID);
- $person->retrieve();
- $this->personName = $person->getFirstName() . " " .
- $person->getLastName();
- $this->styles=array();
- $this->styles[]=$style;
- }
- ############################################################
- # Function: addViolation #
- # Arguments: style -- an additional style breaking the rule#
- # Returns: nothing #
- # Modifies: this #
- # Requires: nothing #
- ############################################################
- function addViolation($style)
- {
- $this->styles[]=$style;
- }
- ############################################################
- # Function: getText #
- # Arguments: none #
- # Returns: nothing #
- # Modifies: this #
- # Requires: nothing #
- ############################################################
- function getText()
- {
- $returnString = "<br><font color=\"red\">Currently $this->personName is ";
- $returnString .= "attempting to dance too many levels in some styles. Please review your desired registration and the packages both you and your partner have selected.";
- $returnString .= ".</font>";
- return $returnString;
- }
- }
- ?>
Documentation generated on Tue, 25 Apr 2006 13:11:12 -0400 by phpDocumentor 1.3.0RC3