framework/web/auth/CDbAuthManager.php
public function hasItemChild($itemName,$childName)
	{
		return $this->db->createCommand()
			->select('parent')
			->from($this->itemChildTable)
			->where('parent=:parent AND child=:child', array(
				':parent'=>$itemName,
				':child'=>$childName))
			->queryScalar() !== false;
	}
public function hasItemChild($itemName,$childName)
	{
		return $this->db->createCommand()
			->select('parent')
			->from($this->itemChildTable)
			->where('parent=:parent AND child=:child', array(
				':parent'=>$itemName,
				':child'=>$childName))
			->queryScalar() !== false;
	}
public function hasItemChild ( $ itemName , $ childName ) { return $ this -> db -> createCommand ( ) -> select ( 'parent' ) -> from ( $ this -> itemChildTable ) -> where ( 'parent=:parent AND child=:child' , array ( ':parent' => $ itemName , ':child' => $ childName ) ) -> queryScalar ( ) !== false ; }
Returns a value indicating whether a child exists within a parent.
@param string $itemName the parent item name
@param string $childName the child item name
@return boolean whether the child exists
Returns a value indicating whether a child exists within a parent .