For new functions "get_level_for_item" you should use the camelCase see 

https://support.chamilo.org/projects/chamilo-18/wiki/Coding_conventions