Configuration Update: Difference between revisions
Jump to navigation
Jump to search
m (Aaron moved page Redbook-Load to Configuration Update without leaving a redirect) |
(No difference)
|
Revision as of 15:31, 9 May 2019
Intro
Want to document what to change and where for updating redbook info.
This document could potentially be used just for documenting where various items are updated. ie: net heights, etc
Net Heights
Updated in inc/netHeightManagementClass.php
Standard practice heights are documented in one location:
////////////////////////////////////////////////////////////////////////////
// This is where one would add/update support for divisions
////////////////////////////////////////////////////////////////////////////
function defaults(){
$this->divisionsLists = array(
'REGULAR' => array('7-8','9-10','11-12','13-15'),
'ADV_JUN' => array('14 under','16 under'),
);
// standard youth divisions
//$stdYouthDivisions = array('7-8','9-10','11-12','13-15');
$this->addISdaySpan(1, 2,$this->divisionsLists['REGULAR'],array('1A','1B','2A','2B'));
$this->addISdaySpan(3, 4,$this->divisionsLists['REGULAR'],array('1B','1C','2B','2C'));
$this->addISdaySpan(5,24,$this->divisionsLists['REGULAR'],array('1C','2A','2C','3A'));
// advanced juniors
//$advJuniorDivisions = array('14 under','16 under');
$this->addISdaySpan(1,24,$this->divisionsLists['ADV_JUN'],array('WH','WH'));
}
And tournament heights are in another:
////////////////////////////////////////////////////////////////////////////
// this needs to be updated, it's horribly outdated at this point.
// this function is currently exactly the same as it was under usyvl.php
// All tournaments are supposed to happen after week two, so these should
// correspond to the settings used after week two :-)
// Actually, if we have the evisday, we should be able to use that and the division
// to get the exact net height.
////////////////////////////////////////////////////////////////////////////
function getTournamentNetHeights($tournnum, $division = ""){
// if tournnum < lowest index, use the set from the lowest index
// if tournnum > highest index, use the set from the highest index
// netheights arrays (nh) should correspond to divisionlist global above (same number of entries)
// alternatively, we could also pass division information in here and return the single value
// for that division
$nh[1] = array("1C","2A","2C","3A","2B");
$nh[2] = array("1C","2A","2C","3A","2B");
if( isset($nh[$tournnum]) && is_array($nh[$tournnum])) $retnh = $nh[$tournnum];
if( $tournnum < 1 ) $retnh = $nh[1];
if( $tournnum > 2 ) $retnh = $nh[2];
// net height array should now be established
dprint(__FUNCTION__,0,36,"tournnum: $tournnum");
dprint(__FUNCTION__,0,36,$retnh);
if($division != "" ){
$divisions = $GLOBALS['divisionlist'];
foreach($divisions as $k => $d){
if( $division == $d ){
return $retnh[$k];
}
}
return "NA";
}
else {
return $retnh;
}
}
Red Book
Updated in