98 $aElements = explode(
"_", $anyClassname);
100 $sTempName = array_shift($aElements);
102 $aReturnValue = [$sTempName];
104 foreach ($aElements as $term)
106 $sTempName .=
"_" . $term;
107 $aReturnValue[] = $sTempName;
110 if (count($aReturnValue) > 1)
112 $aReturnValue = array_reverse($aReturnValue);
115 return $aReturnValue;
124 if(defined(
"LEPTON_PATH"))
126 $aLookUpFilenames = [
128 LANGUAGE.
"_custom.php",
134 foreach( static::$instance->parents as $sClassNameTop)
137 $aTemp = explode(
"\\", $sClassNameTop);
138 $bExitGraceful =
false;
139 foreach( $aTemp as $sClassName )
143 foreach($aMainClassNames as $sTempModuleDirectory)
145 $lookUpPath = LEPTON_PATH.
"/modules/".$sTempModuleDirectory.
"/languages/";
149 foreach($aLookUpFilenames as $sTempFilename)
151 if(
true === file_exists( $lookUpPath.$sTempFilename ) )
153 require $lookUpPath.$sTempFilename;
159 if(
false === $bFoundFile)
164 $tempName =
"MOD_".strtoupper($sTempModuleDirectory);
165 if(isset(${$tempName}))
167 static::$instance->language = ${$tempName};
168 $bExitGraceful =
true;
173 if(
true === $bExitGraceful)