Overriding Checkaccess Method In Cphpauthmanager

I just use old checkAccess() (for test), but even it not inherit((

[color="#FF0000"]CException: Property "PhpAuthManager._items" is not defined[/color]

What my problem?


class PhpAuthManager extends CPhpAuthManager{


	public function checkAccess($itemName,$userId,$params=array()) 	{

    

	if(!isset($this->_items[$itemName]))

        return false;

    $item=$this->_items[$itemName];

    Yii::trace('Checking permission "'.$item->getName().'"','system.web.auth.CPhpAuthManager');

    if(!isset($params['userId']))

        $params['userId'] = $userId;

    if($this->executeBizRule($item->getBizRule(),$params,$item->getData()))

    {

        if(in_array($itemName,$this->defaultRoles))

            return true;

        

		if(isset($this->_assignments[$userId][$itemName]))

        {

            $assignment=$this->_assignments[$userId][$itemName];

            if($this->executeBizRule($assignment->getBizRule(),$params,$assignment->getData()))

                return true;

        }

		

        foreach($this->_children as $parentName=>$children)

        {

            if(isset($children[$itemName]) && $this->checkAccess($parentName,$userId,$params))

                return true;

        }

    }

    return false;

	

	}

		

    

}

_items is declare private in CPhpAuthManager, so you can’t use it in your inherited class.