コード例 #1
0
 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);
 }
コード例 #2
0
 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);
 }
コード例 #3
0
ファイル: CachedFetch.php プロジェクト: splitice/radical-net
 function __construct($url = null)
 {
     parent::__construct($url);
     $this->cache = '\\HTTP\\Cache\\Mysql';
 }