/** * Validates a segment. * The segment scheme is checked for constraints and boolean false is returned * if the segment is not valid. * * Child classes can extend this if they use other validation methods. * * @throws vB_Exception_Router * * @param string $name - The key name of the segment * @param mixed $value - The value to validate * @return bool - Success */ protected function validateSegment($name, $value) { if (!parent::validateSegment($name, $value)) { return false; } if ('node' != $name) { return true; } return (bool)intval($value); }