<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Provider\SuperSearch; abstract class AbstractSuperSearchProvider { public abstract function name(); public abstract function title(); public abstract function ping(); public abstract function bucketExists($HRrYd); public abstract function bucketCreate($HRrYd, $M2Z5v); public abstract function bucketDelete($HRrYd); public abstract function bucketCount($HRrYd); public abstract function upsert($HRrYd, $D4D3g, $xJzrK); public abstract function delete($HRrYd, $D4D3g); public abstract function get($HRrYd, $D4D3g); public abstract function search($HRrYd, $DNh5u, $Do_6A, $mfYcr = array(), $PLvCu = array()); public function ensureBucket($HRrYd) { if (!$this->bucketExists($HRrYd)) { $uYy4k = SuperSearchBiz::get($HRrYd); $this->bucketCreate($HRrYd, $uYy4k->fields()); } } }