示例#1
0
 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;
 }
示例#2
0
 /**
  * Creates an instance of this class
  * @param $db DatabaseSqlite: database object
  */
 function __construct($db)
 {
     parent::__construct($db);
 }
示例#3
0
	/**
	 * 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 );
	}
示例#4
0
 public function __construct()
 {
     parent::__construct();
 }