private function _validateIndicator($indicator)
    {
        if ($indicator == null) {
            $indicator = ' ';
        } elseif (strlen($indicator) > 1) {
            $errorMessage = File_MARC_Exception::formatError(File_MARC_Exception::$messages[File_MARC_Exception::ERROR_INVALID_INDICATOR], array("tag" => $this->getTag(), "indicator" => $indicator));
            throw new File_MARC_Exception($errorMessage, File_MARC_Exception::ERROR_INVALID_INDICATOR);
        }
        return $indicator;
    }
private function _validateIndicator($indicator)
    {
        if ($indicator == null) {
            $indicator = ' ';
        } elseif (strlen($indicator) > 1) {
            $errorMessage = File_MARC_Exception::formatError(File_MARC_Exception::$messages[File_MARC_Exception::ERROR_INVALID_INDICATOR], array("tag" => $this->getTag(), "indicator" => $indicator));
            throw new File_MARC_Exception($errorMessage, File_MARC_Exception::ERROR_INVALID_INDICATOR);
        }
        return $indicator;
    }
private function _validateIndicator ( $ indicator ) { if ( $ indicator == null ) { $ indicator = ' ' ; } elseif ( strlen ( $ indicator ) > 1 ) { $ errorMessage = File_MARC_Exception :: formatError ( File_MARC_Exception :: $ messages [ File_MARC_Exception :: ERROR_INVALID_INDICATOR ] , array ( "tag" => $ this -> getTag ( ) , "indicator" => $ indicator ) ) ; throw new File_MARC_Exception ( $ errorMessage , File_MARC_Exception :: ERROR_INVALID_INDICATOR ) ; } return $ indicator ; }
Validates an indicator field

Validates the value passed in for an indicator. This routine ensures
that an indicator is a single character. If the indicator value is null,
then this method returns a single character.

If the indicator value contains more than a single character, this
throws an exception.

@param string $indicator Value of the indicator to be validated

@return string Returns the indicator, or space if the indicator was null
Validates an indicator field