I'd not use anonymous function here. Yii 1.1 works just fine on PHP 5.2 and anonymous function makes the requirement higher.