+ /**
+ * Make sure the function synonym cache is up to date
+ */
+ function refreshFunctionCache() {
+ if ( !$this->mFunctionSynonymsValid ) {
+ $this->mFunctionSynonyms = array();
+ foreach( $this->mFunctionHooks as $key => $value ) {
+ if ( is_int( $key ) ) {
+ $mw = MagicWord::get( $key );
+ $synonyms = $mw->getSynonyms();
+ foreach( $synonyms as $synonym ) {
+ $this->mFunctionSynonyms[strtolower($synonym)] = $key;
+ }
+ }
+ }
+ $this->mFunctionSynonymsValid = true;
+ }
+ }
+