This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
footnotes/class
Rumperuu 1284544556 refactor: remove Hungarian notation and MCI prefixes
I had to use some RegEx-fu for this. Specifically:

```bash
find ./{footnotes.php,includes.php,class/} -type f -name "*.php" -exec sed -i 's/\(p\|l\|a\)_\(str\|bool\|int\|obj\|flo\|arr\)_//g' {} \;
find ./{footnotes.php,includes.php,class/} -type f -name "*.php" -exec sed -i 's/MCI_Footnotes/Footnotes/g' {} \;
find ./{footnotes.php,includes.php,class/} -type f -name "*.php" -exec sed -i 's/C_\(INT\|STR\|FLO\)_//g' {} \;
```

This should have covered all the bases.

In my testing I encountered one error caused by these changes.
In the `add_select_box` function in `/class/dashboard/layout.php`,
there was a function parameter called `$p_arr_options` and a variable
called `$l_str_options`. Removing the Hungarian notation caused an
error as these two variables were both now called `$options`.

This has been fixed, and I like to think that that will have been
the only naming conflict, but I think it is more likely that there
maybe others. Further testing is required before I am happy calling
this release-ready.

Close #34, progress #36
2021-04-16 23:55:05 +01:00
..
dashboard refactor: remove Hungarian notation and MCI prefixes 2021-04-16 23:55:05 +01:00
widgets refactor: remove Hungarian notation and MCI prefixes 2021-04-16 23:55:05 +01:00
config.php refactor: remove Hungarian notation and MCI prefixes 2021-04-16 23:55:05 +01:00
convert.php refactor: remove Hungarian notation and MCI prefixes 2021-04-16 23:55:05 +01:00
hooks.php refactor: rename Hooks, update docblocks 2021-04-16 23:17:07 +01:00
init.php refactor: remove Hungarian notation and MCI prefixes 2021-04-16 23:55:05 +01:00
language.php refactor: remove Hungarian notation and MCI prefixes 2021-04-16 23:55:05 +01:00
settings.php refactor: remove Hungarian notation and MCI prefixes 2021-04-16 23:55:05 +01:00
task.php refactor: remove Hungarian notation and MCI prefixes 2021-04-16 23:55:05 +01:00
template.php refactor: remove Hungarian notation and MCI prefixes 2021-04-16 23:55:05 +01:00
wysiwyg.php refactor: remove Hungarian notation and MCI prefixes 2021-04-16 23:55:05 +01:00