components/AuthController.php
public function getItemControllerId($type)
    {
        $controllerId = null;
        switch ($type) {
            case CAuthItem::TYPE_OPERATION:
                $controllerId = 'operation';
                break;

            case CAuthItem::TYPE_TASK:
                $controllerId = 'task';
                break;

            case CAuthItem::TYPE_ROLE:
                $controllerId = 'role';
                break;

            default:
                throw new CException('Auth item type "' . $type . '" is valid.');
        }
        return $controllerId;
    }
public function getItemControllerId($type)
    {
        $controllerId = null;
        switch ($type) {
            case CAuthItem::TYPE_OPERATION:
                $controllerId = 'operation';
                break;

            case CAuthItem::TYPE_TASK:
                $controllerId = 'task';
                break;

            case CAuthItem::TYPE_ROLE:
                $controllerId = 'role';
                break;

            default:
                throw new CException('Auth item type "' . $type . '" is valid.');
        }
        return $controllerId;
    }
public function getItemControllerId ( $ type ) { $ controllerId = null ; switch ( $ type ) { case CAuthItem :: TYPE_OPERATION : $ controllerId = 'operation' ; break ; case CAuthItem :: TYPE_TASK : $ controllerId = 'task' ; break ; case CAuthItem :: TYPE_ROLE : $ controllerId = 'role' ; break ; default : throw new CException ( 'Auth item type "' . $ type . '" is valid.' ) ; } return $ controllerId ; }
Returns the controllerId for the given authorization item.
@param string $type the item type (0=operation, 1=task, 2=role).
@return string the controllerId.
@throws CException if the item type is invalid.
Returns the controllerId for the given authorization item .