1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
| <?php
| class BotImageGG extends BotImage {
| protected $hash;
|
| function __construct($hash) {
| $this->hash = $hash;
| }
|
| function getHash() {
| return $this->hash;
| }
|
| function getImage() {
| return imagecreatefromstring($this->getImageData());
| }
|
| function getImageData() {
| if($this->data === NULL) {
| $push = new BotAPIGG();
| $this->data = $push->getImage($this->hash);
| }
|
| return $this->data;
| }
| }
| ?>
|
|