change model function declaration di every models

This update change model function declaration to be more conformant to model function in CActiveRecord