public function createSearch( $default = false )
	{
		if ( $default === true ) {
			$search = parent::_createSearch('locale.site');
		} else {
			$search = parent::createSearch();
		}

		$expr = array(
			$search->compare( '==', 'locale.site.level', 0 ),
			$search->getConditions(),
		);

		$search->setConditions( $search->combine( '&&', $expr ) );

		return $search;
	}
public function createSearch( $default = false )
	{
		if ( $default === true ) {
			$search = parent::_createSearch('locale.site');
		} else {
			$search = parent::createSearch();
		}

		$expr = array(
			$search->compare( '==', 'locale.site.level', 0 ),
			$search->getConditions(),
		);

		$search->setConditions( $search->combine( '&&', $expr ) );

		return $search;
	}
public function createSearch ( $ default = false ) { if ( $ default === true ) { $ search = parent :: _createSearch ( 'locale.site' ) ; } else { $ search = parent :: createSearch ( ) ; } $ expr = array ( $ search -> compare ( '==' , 'locale.site.level' , 0 ) , $ search -> getConditions ( ) , ) ; $ search -> setConditions ( $ search -> combine ( '&&' , $ expr ) ) ; return $ search ; }
Creates a search object and sets base criteria.

@param boolean $default
@return MW_Common_Criteria_Interface
Creates a search object and sets base criteria .