function __construct($target, $table) { $fp = @fsockopen(common_config('sphinx', 'server'), common_config('sphinx', 'port')); if (!$fp) { $this->connected = false; return; } fclose($fp); parent::__construct($target, $table); $this->sphinx = new SphinxClient(); $this->sphinx->setServer(common_config('sphinx', 'server'), common_config('sphinx', 'port')); $this->connected = true; }
/** * Creates an instance of this class * @param $db DatabaseSqlite: database object */ function __construct($db) { parent::__construct($db); }
/** * Sets up Zend Lucene * * @param array $options Search Unleashed options * @return void **/ function __construct( $options ) { $this->cache_path = WP_CONTENT_DIR . '/cache/'; add_filter( 'posts_where', array( &$this, 'posts_where' ) ); parent::__construct( $options ); }
public function __construct() { parent::__construct(); }