<?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($fYoEH); public abstract function bucketCreate($fYoEH, $e4C7o); public abstract function bucketDelete($fYoEH); public abstract function bucketCount($fYoEH); public abstract function upsert($fYoEH, $FhIQB, $GpXwG); public abstract function delete($fYoEH, $FhIQB); public abstract function get($fYoEH, $FhIQB); public abstract function search($fYoEH, $yfn4d, $EQ6wA, $KnSn8 = array(), $pbUx4 = array()); public function ensureBucket($fYoEH) { if (!$this->bucketExists($fYoEH)) { $zPmUw = SuperSearchBiz::get($fYoEH); $this->bucketCreate($fYoEH, $zPmUw->fields()); } } }