public function __construct($path, $url, $voice = null)
 {
     parent::__construct();
     //voice was checked in fetcher.  this class is for saving on code, not avoiding coupling.
     $this->path = $path;
     $this->url = $url;
     $this->badInit = !file_exists($this->path);
 }
 public function __construct($voice, $path, $url, $text, $errorText)
 {
     parent::__construct();
     //voice was checked in fetcher.  this class is for saving on code, not avoiding coupling.
     $this->voice = $voice;
     $this->setText($text);
     $this->path = $path;
     $this->url = $url;
     $this->errorText = $errorText;
     $this->mp3 = $this->getMP3NameFromText($this->text);
     //path should be of the form base . service . voice
     $this->badInit = $this->setPath($this->path);
 }
Esempio n. 3
0
 function __construct($url = null)
 {
     parent::__construct($url);
     $this->cache = '\\HTTP\\Cache\\Mysql';
 }