function getMagic( $mw ) {
		$this->doMagicHook();

		if ( isset( $this->mMagicExtensions[$mw->mId] ) ) {
			$rawEntry = $this->mMagicExtensions[$mw->mId];
		} else {
			$magicWords = $this->getMagicWords();
			if ( isset( $magicWords[$mw->mId] ) ) {
				$rawEntry = $magicWords[$mw->mId];
			} else {
				$rawEntry = false;
			}
		}

		if ( !is_array( $rawEntry ) ) {
			error_log( "\"$rawEntry\" is not a valid magic word for \"$mw->mId\"" );
		} else {
			$mw->mCaseSensitive = $rawEntry[0];
			$mw->mSynonyms = array_slice( $rawEntry, 1 );
		}
	}
function getMagic( $mw ) {
		$this->doMagicHook();

		if ( isset( $this->mMagicExtensions[$mw->mId] ) ) {
			$rawEntry = $this->mMagicExtensions[$mw->mId];
		} else {
			$magicWords = $this->getMagicWords();
			if ( isset( $magicWords[$mw->mId] ) ) {
				$rawEntry = $magicWords[$mw->mId];
			} else {
				$rawEntry = false;
			}
		}

		if ( !is_array( $rawEntry ) ) {
			error_log( "\"$rawEntry\" is not a valid magic word for \"$mw->mId\"" );
		} else {
			$mw->mCaseSensitive = $rawEntry[0];
			$mw->mSynonyms = array_slice( $rawEntry, 1 );
		}
	}
function getMagic ( $ mw ) { $ this -> doMagicHook ( ) ; if ( isset ( $ this -> mMagicExtensions [ $ mw -> mId ] ) ) { $ rawEntry = $ this -> mMagicExtensions [ $ mw -> mId ] ; } else { $ magicWords = $ this -> getMagicWords ( ) ; if ( isset ( $ magicWords [ $ mw -> mId ] ) ) { $ rawEntry = $ magicWords [ $ mw -> mId ] ; } else { $ rawEntry = false ; } } if ( ! is_array ( $ rawEntry ) ) { error_log ( "\"$rawEntry\" is not a valid magic word for \"$mw->mId\"" ) ; } else { $ mw -> mCaseSensitive = $ rawEntry [ 0 ] ; $ mw -> mSynonyms = array_slice ( $ rawEntry , 1 ) ; } }
Fill a MagicWord object with data from here

@param $mw
Fill a MagicWord object with data from here