_validateReadPreference() 공개 정적인 메소드

public static _validateReadPreference ( $readPreference, array $tags = null )
$tags array
예제 #1
0
 /**
  * Set the read preference for this collection
  *
  * @param string $readPreference
  * @param array  $tags
  *
  * @return bool
  */
 public function setReadPreference($readPreference, array $tags = null)
 {
     if ($newPreference = MongoClient::_validateReadPreference($readPreference, $tags)) {
         $this->readPreference = $newPreference;
     }
     return (bool) $newPreference;
 }