39 protected $host = null;
46 protected $timer = null;
60 protected $block = array(
"help");
69 protected function syn()
72 $this->transport->setAdapter($this);
115 if(strstr($cmd,
"\r") || strstr($cmd,
"\n"))
119 elseif(in_array($query, $this->block))
128 $this->timer = time();
174 public function prepare($cmd, array $params = array())
179 foreach($params as $ident => $value)
185 $value = array_values($value);
187 for($i = 0; $i < count($value); $i++)
189 if($value[$i] === null)
continue;
190 elseif($value[$i] === FALSE) $value[$i] = 0x00;
191 elseif($value[$i] === TRUE) $value[$i] = 0x01;
199 if($value === null)
continue;
200 elseif($value === FALSE) $value = 0x00;
201 elseif($value === TRUE) $value = 0x01;
253 if($this->host === null)