prefer protected over private declarations

This makes it easier for other plugins to overwrite certain
functionality if needed.

See also https://www.dokuwiki.org/devel:coding_style?&#visibility