Lines Matching refs:connections
26 protected $connections = array(); variable in Swift_Connection_Multi
36 public function __construct($connections=array()) argument
38 foreach ($connections as $id => $conn)
40 $this->addConnection($connections[$id], $id);
55 if ($id !== null) $this->connections[$id] = $connection;
56 else $this->connections[] = $connection;
69 return $this->connections[$this->active]->read();
82 return $this->connections[$this->active]->write($command, $end);
92 foreach ($this->connections as $id => $conn)
95 $this->connections[$id]->start();
96 if ($this->connections[$id]->isAlive())
122 if ($this->active !== null) $this->connections[$this->active]->stop();
131 return (($this->active !== null) && $this->connections[$this->active]->isAlive());
138 $this->connections[$this->active]->postConnect($instance);
145 $this->connections[$this->active]->setExtension($extension, $attributes);
152 return $this->connections[$this->active]->hasExtension($name);
159 return $this->connections[$this->active]->getAttributes($name);