public function removeTranslationUnit(tao_helpers_translation_TranslationUnit $translationUnit)
    {
        $tus = $this->getTranslationUnits();
        for ($i = 0; $i < count($tus); $i ++) {
            if ($tus[$i] === $translationUnit) {
                unset($tus[$i]);
                break;
            }
        }
        
        throw new tao_helpers_translation_TranslationException('Cannot remove Translation Unit. Not Found.');
    }
public function removeTranslationUnit(tao_helpers_translation_TranslationUnit $translationUnit)
    {
        $tus = $this->getTranslationUnits();
        for ($i = 0; $i < count($tus); $i ++) {
            if ($tus[$i] === $translationUnit) {
                unset($tus[$i]);
                break;
            }
        }
        
        throw new tao_helpers_translation_TranslationException('Cannot remove Translation Unit. Not Found.');
    }
public function removeTranslationUnit ( tao_helpers_translation_TranslationUnit $ translationUnit ) { $ tus = $ this -> getTranslationUnits ( ) ; for ( $ i = 0 ; $ i < count ( $ tus ) ; $ i ++ ) { if ( $ tus [ $ i ] === $ translationUnit ) { unset ( $ tus [ $ i ] ) ; break ; } } throw new tao_helpers_translation_TranslationException ( 'Cannot remove Translation Unit. Not Found.' ) ; }
Removes a given TranslationUnit from the collection of TranslationUnits
the file.

@access public
@author Jerome Bogaerts, <jerome.bogaerts@tudor.lu>
@param  TranslationUnit translationUnit
@return mixed
Removes a given TranslationUnit from the collection of TranslationUnits the file .