Beispiel #1
0
 /**
  * 重写父类方法
  *
  * @param string $idx
  * @return Oray_Balancer_Rotation
  */
 public function setCurrent($idx)
 {
     parent::setCurrent($idx);
     $item = reset($this->_items);
     do {
         if (key($this->_items) === $idx) {
             break;
         }
     } while (false !== ($item = next($this->_items)));
     return $this;
 }