Fixes #7 - makes declaration of some methods compatible with Yii.