Integrated global functions as suggested by Qiang in http://www.yiiframework.com/wiki/31/use-shortcut-functions-to-reduce-typing/