その他目次
 MongoLog クラスはじめにログ機能を使うと、ドライバが何をしているのかに関する詳細な情報を取得できます。 ログ機能はデフォルトでは無効になっています。しかし、このクラスを使うと、 ドライバの特定の部分について指定したレベルでのログ出力を有効にできます。 たとえば次のように使います。 
<?php
 クラス概要MongoLog 
    
     
       class MongoLog
     
     { 
    /* 定数 */ 
    
     const
     int
     MongoLog::NONE
      = 0
    ; 
    
     const
     int
     MongoLog::ALL
      = 31
    ; 
    レベル定数 { 
    
     const
     int
     MongoLog::WARNING
      = 1
    ; 
    
     const
     int
     MongoLog::INFO
      = 2
    ; 
    
     const
     int
     MongoLog::FINE
      = 4
    ; 
    モジュール定数 { 
    
     const
     int
     MongoLog::RS
      = 1
    ; 
    
     const
     int
     MongoLog::POOL
      = 1
    ; 
    
     const
     int
     MongoLog::CON
      = 2
    ; 
    
     const
     int
     MongoLog::IO
      = 4
    ; 
    
     const
     int
     MongoLog::SERVER
      = 8
    ; 
    
     const
     int
     MongoLog::PARSE
      = 16
    ; 
    /* フィールド */ 
    
     private
     static
     int
     $callback
    ; 
    
     private
     static
     int
     $level
    ; 
    
     private
     static
     int
     $module
    ; 
    /* メソッド */ 
    
   public static callable getCallback
    ( void
   ) 
   public static int getLevel
    ( void
   ) 
   public static int getModule
    ( void
   ) 
   public static void setCallback
    ( callable  
$log_function
   )
   public static void setLevel
    ( int  
$level
   )
   public static void setModule
    ( int  
   }$module
   )定義済み定数MongoLog 定数これらの定数は MongoLog::setLevel および MongoLog::setModule の両方で使えます。 
 MongoLog レベル定数これらの定数は MongoLog::setLevel で使えます。 
 MongoLog モジュール定数これらの定数は MongoLog::setModule で使えます。 
 変更履歴
 
 MongoPool クラスはじめに警告
     
  現在のリリース (1.3.0 以降) のドライバは、プーリングを実装しなくなりました。 このクラスやメソッドは廃止予定であり、使ってはいけません。 クラス概要MongoPool 
    
     
       class MongoPool
     
     { 
    /* メソッド */ 
    
   public static int getSize
    ( void
   ) 
   public array info
    ( void
   ) 
   public static bool setSize
    ( int  
   }$size
   )変更履歴
 
 Mongo クラス [非推奨]はじめにMongoDB と PHP を接続します。 このクラスは MongoClient を継承したもので、 いくつかの非推奨のメソッドが使えるようになります。 過去との互換性のために、コンストラクタの "w" 引数のデフォルトを 0 にしており、書き込み操作のときにサーバー側での確認を必要としません。 詳細な情報は MongoClient::__construct を参照ください。 警告
      
  このクラスはバージョン 1.3.0 で 非推奨 になりました。 このクラスの機能に頼ってはいけません。代わりに MongoClient を使いましょう。 クラス概要Mongo 
    
    
     
       class Mongo
     
    
      extends
       MongoClient
     
     { 
    
    /* メソッド */ 
    
   protected bool connectUtil
    ( void
   ) 
   public static int getPoolSize
    ( void
   ) 
   public string getSlave
    ( void
   ) 
   public bool getSlaveOkay
    ( void
   ) 
   public array poolDebug
    ( void
   ) 
   public static bool setPoolSize
    ( int  
$size
   )
   public bool setSlaveOkay
    ([ bool  
$ok = true
  ] )
   public string switchSlave
    ( void
   ) 
    /* 継承したメソッド */ 
    
   public bool close
    ([ boolstring  
$connection
  ] )
   public bool connect
    ( void
   ) 
   public array MongoClient::dropDB
    ( mixed  
$db
   )
   public MongoDB __get
    ( string  
$dbname
   )
   public static array MongoClient::getConnections
    ( void
   ) 
   public array getHosts
    ( void
   ) 
   public array MongoClient::getReadPreference
    ( void
   ) 
   public array MongoClient::getWriteConcern
    ( void
   ) 
   public bool MongoClient::killCursor
    ( string  
$server_hash
   , intMongoInt64 $id
   )
   public array MongoClient::listDBs
    ( void
   ) 
   public MongoCollection MongoClient::selectCollection
    ( string  
$db
   , string $collection
   )
   public MongoDB MongoClient::selectDB
    ( string  
$name
   )
   public bool MongoClient::setReadPreference
    ( string  
$read_preference
   [, array $tags
  ] )
   public bool MongoClient::setWriteConcern
    ( mixed  
$w
   [, int $wtimeout
  ] )
   public string __toString
    ( void
   ) 
   } |