* @param array $array Array by reference which should be remapped
* @param array $mappingTable Array with remap information, array/$oldKey => $newKey)
*/
- function remapArrayKeys(&$array, $mappingTable) {
+ public static function remapArrayKeys(&$array, $mappingTable) {
if (is_array($mappingTable)) {
foreach ($mappingTable as $old => $new) {
if ($new && isset($array[$old])) {
* @return mixed If the parsing had errors, a string with the error message is returned. Otherwise an array with the content.
* @see array2xml()
*/
- protected function xml2arrayProcess($string, $NSprefix = '', $reportDocTag = FALSE) {
+ protected static function xml2arrayProcess($string, $NSprefix = '', $reportDocTag = FALSE) {
// Create parser:
$parser = xml_parser_create();
$vals = array();
* @param string $className Base class name to evaluate
* @return string Final class name to instantiate with "new [classname]"
*/
- protected function getClassName($className) {
+ protected static function getClassName($className) {
if (class_exists($className)) {
while (class_exists('ux_' . $className, FALSE)) {
$className = 'ux_' . $className;
}
}
-?>
+?>
\ No newline at end of file