File size: 1.94Kb
<?php if (!defined('VB_ENTRY')) die('Access denied.');
/*======================================================================*\
|| #################################################################### ||
|| # vBulletin 4.0.5
|| # ---------------------------------------------------------------- # ||
|| # Copyright ©2000-2010 vBulletin Solutions Inc. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| #################################################################### ||
\*======================================================================*/
/**
* @package vBulletin
* @subpackage Search
* @author Kevin Sours, vBulletin Development Team
* @version $Revision: 28678 $
* @since $Date: 2008-12-03 16:54:12 +0000 (Wed, 03 Dec 2008) $
* @copyright vBulletin Solutions Inc.
*/
require_once (DIR . '/vb/search/type.php');
require_once (DIR . '/vb/search/result/null.php');
/**
* Enter description here...
*
* @package vBulletin
* @subpackage Search
*/
class vB_Search_Type_Null extends vB_Search_Type
{
public function fetch_validated_list($user, $ids, $gids)
{
//null items are never valid
return array_fill_keys($ids, false);
}
public function is_enabled()
{
return false;
}
public function get_display_name()
{
return 'Null Type';
}
public function create_item($id)
{
//this shouldn't normally be called
return new vB_Search_Result_Null();
}
}
/*======================================================================*\
|| ####################################################################
|| # SVN: $Revision: 28678 $
|| ####################################################################
\*======================================================================*/