コード例 #1
0
 /**
  * @return RequestOptionsProcessor
  */
 private function getRequestOptionsProcessor()
 {
     // We want a cached instance here
     if ($this->requestOptionsProcessor === null) {
         $this->requestOptionsProcessor = $this->factory->newRequestOptionsProcessor();
     }
     return $this->requestOptionsProcessor;
 }
コード例 #2
0
 public function testCanConstructRequestOptionsProcessor()
 {
     $instance = new SQLStoreFactory($this->store);
     $this->assertInstanceOf('\\SMW\\SQLStore\\RequestOptionsProcessor', $instance->newRequestOptionsProcessor());
 }
コード例 #3
0
 /**
  * @return RequestOptionsProcessor
  */
 private function getRequestOptionsProcessor()
 {
     if ($this->requestOptionsProcessor === null) {
         $this->requestOptionsProcessor = $this->factory->newRequestOptionsProcessor();
     }
     return $this->requestOptionsProcessor;
 }