itamart / moodle-block_mhaairs

0 stars 5 forks source link

Replace the util mh_ functions with MHUtil class. #2

Closed itamart closed 8 years ago

itamart commented 9 years ago

The util api in block_mhaairsutil.php currently consists of 2 classs, MHUserInfo and MHAuthenticationResult and a set of functions. All the "free" functions can be wrapped with an MHUtil class to normalize the util API. All the mh functions will be defined as public static. Usage will change from

mh_some_function()

to

MHUtil::some_function()

The actual behavior remains the same.

Plugin calls to these util functions should be adjusted accordingly. This touches: