function setIndicator($ind, $value)
    {
        switch ($ind) {

        case 1:
            $this->ind1 = $this->_validateIndicator($value);
            break;

        case 2:
            $this->ind2 = $this->_validateIndicator($value);
            break;

        default:
            $errorMessage = File_MARC_Exception::formatError(File_MARC_Exception::$messages[File_MARC_Exception::ERROR_INVALID_INDICATOR_REQUEST], array("indicator" => $ind));
            throw new File_MARC_Exception($errorMessage, File_MARC_Exception::ERROR_INVALID_INDICATOR_REQUEST);
            return false;
        }

        return $this->getIndicator($ind);
    }
function setIndicator($ind, $value)
    {
        switch ($ind) {

        case 1:
            $this->ind1 = $this->_validateIndicator($value);
            break;

        case 2:
            $this->ind2 = $this->_validateIndicator($value);
            break;

        default:
            $errorMessage = File_MARC_Exception::formatError(File_MARC_Exception::$messages[File_MARC_Exception::ERROR_INVALID_INDICATOR_REQUEST], array("indicator" => $ind));
            throw new File_MARC_Exception($errorMessage, File_MARC_Exception::ERROR_INVALID_INDICATOR_REQUEST);
            return false;
        }

        return $this->getIndicator($ind);
    }
function setIndicator ( $ ind , $ value ) { switch ( $ ind ) { case 1 : $ this -> ind1 = $ this -> _validateIndicator ( $ value ) ; break ; case 2 : $ this -> ind2 = $ this -> _validateIndicator ( $ value ) ; break ; default : $ errorMessage = File_MARC_Exception :: formatError ( File_MARC_Exception :: $ messages [ File_MARC_Exception :: ERROR_INVALID_INDICATOR_REQUEST ] , array ( "indicator" => $ ind ) ) ; throw new File_MARC_Exception ( $ errorMessage , File_MARC_Exception :: ERROR_INVALID_INDICATOR_REQUEST ) ; return false ; } return $ this -> getIndicator ( $ ind ) ; }
Set the value of an indicator

@param int    $ind   number of the indicator (1 or 2)
@param string $value value of the indicator

@return string       returns indicator value if it exists, otherwise false
Set the value of an indicator