usefull class for my working with yii