function pDraw::isValidLabel
Search API
5.x pDraw.class.php | pDraw::isValidLabel($Value, $LastValue, $LabelingMethod, $ID, $LabelSkip) |
1 call to pDraw::isValidLabel()
- pDraw::drawScale in inc/
pchart/ pchart/ class/ pDraw.class.php
File
- inc/
pchart/ pchart/ class/ pDraw.class.php, line 2487
Class
Code
function isValidLabel($Value, $LastValue, $LabelingMethod, $ID, $LabelSkip)
{
if ($LabelingMethod == LABELING_DIFFERENT && $Value != $LastValue) {
return (TRUE);
}
if ($LabelingMethod == LABELING_DIFFERENT && $Value == $LastValue) {
return (FALSE);
}
if ($LabelingMethod == LABELING_ALL && $LabelSkip == 0) {
return (TRUE);
}
if ($LabelingMethod == LABELING_ALL && ($ID + $LabelSkip) % ($LabelSkip + 1) != 1) {
return (FALSE);
}
return (TRUE);
}