added support for php namespaces, static methods and yii widgets