private function _setCriteriaIdByType ($criteria, Element $type, $id)
	{
		switch ($type::className()) {
			case 'Entry':
				$criteria->sectionId = $id;
				break;
			case 'Category':
				$criteria->groupId = $id;
				break;
		}
	}