added yiiclassref function.