framework/web/auth/CAuthManager.php
protected function checkItemChildType($parentType,$childType)
	{
		static $types=array('operation','task','role');
		if($parentType < $childType)
			throw new CException(Yii::t('yii','Cannot add an item of type "{child}" to an item of type "{parent}".',
				array('{child}'=>$types[$childType], '{parent}'=>$types[$parentType])));
	}
protected function checkItemChildType($parentType,$childType)
	{
		static $types=array('operation','task','role');
		if($parentType < $childType)
			throw new CException(Yii::t('yii','Cannot add an item of type "{child}" to an item of type "{parent}".',
				array('{child}'=>$types[$childType], '{parent}'=>$types[$parentType])));
	}
protected function checkItemChildType ( $ parentType , $ childType ) { static $ types = array ( 'operation' , 'task' , 'role' ) ; if ( $ parentType < $ childType ) throw new CException ( Yii :: t ( 'yii' , 'Cannot add an item of type "{child}" to an item of type "{parent}".' , array ( '{child}' => $ types [ $ childType ] , '{parent}' => $ types [ $ parentType ] ) ) ) ; }
Checks the item types to make sure a child can be added to a parent.
@param integer $parentType parent item type
@param integer $childType child item type
@throws CException if the item cannot be added as a child due to its incompatible type.
Checks the item types to make sure a child can be added to a parent .