예제 #1
0
	function bindToDefinedMeaning( $definedMeaningId, $identicalMeaning ) {
		createSynonymOrTranslation( $definedMeaningId, $this->id, $identicalMeaning );
	}
function rollBackSyntrans( $rollBackAction, $syntransId, $definedMeaningId, $expressionId, $identicalMeaning, $operation ) {
	if ( shouldRemove( $rollBackAction, $operation ) ) {
		removeSynonymOrTranslationWithId( $syntransId );
	}
	elseif ( shouldRestore( $rollBackAction, $operation ) ) {
		createSynonymOrTranslation( $definedMeaningId, $expressionId, $identicalMeaning );
	}
}