Where does $params array come from?

Hi all,

I’m working through chapter 8 and I have a question about this line:


$bizRule='return isset($params["project"]) && $params["project"]->isUserInRole("member");';

Where does the $params array actually come from here?

CAuthManager::executeBizRule()

Second parameter is $params array. Business rule will be evaluated under the scope of this method so it has access to $params. You won’t call directly this method, it will be called by CAuthManager::checkAccess() (which will be called by Yii::app()->user->checkAccess(‘operationName’, $params) ) when needed.

Thanks phtamas. Great help! :)