Fix for #7 issue

Make declaration of some methods compatible with Yii.