예제 #1
0
파일: Sqlsrv.php 프로젝트: tillk/vufind
 /**
  * @param Profiler\ProfilerInterface $profiler
  * @return Sqlsrv
  */
 public function setProfiler(Profiler\ProfilerInterface $profiler)
 {
     $this->profiler = $profiler;
     if ($this->connection instanceof Profiler\ProfilerAwareInterface) {
         $this->connection->setProfiler($profiler);
     }
     if ($this->statementPrototype instanceof Profiler\ProfilerAwareInterface) {
         $this->statementPrototype->setProfiler($profiler);
     }
     return $this;
 }