This repository was archived by the owner on Dec 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMediaData.php
More file actions
77 lines (67 loc) · 1.84 KB
/
MediaData.php
File metadata and controls
77 lines (67 loc) · 1.84 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?php
namespace Foolz\Foolslide\Model;
class MediaData extends Data
{
public $media_id = 0;
public $spoiler = false;
public $preview_orig = null;
public $media = null;
public $preview_op = null;
public $preview_reply = null;
public $preview_w = 0;
public $preview_h = 0;
public $media_filename = null;
public $media_w = 0;
public $media_h = 0;
public $media_size = 0;
public $media_hash = null;
public $media_orig = null;
public $exif = null;
public $total = 0;
public $banned = false;
/**
* Caches media_status value
*
* @var false|int false if not yet cached
*/
public $media_status = false;
/**
* Caches the media hash converted for URLs
*
* @var false|string false if not yet cached
*/
public $safe_media_hash = false;
/**
* Caches the remote media link, an URL to external resources
*
* @var false|string false if not yet cached
*/
public $remote_media_link = false;
/**
* Caches the media link, the direct URL to the resource
*
* @var false|null|string false if not cached, null if not found, string if found
*/
public $media_link = false;
/**
* Caches the thumb link, the direct URL to the thumbnail
*
* @var false|null|string false if not cached, null if not found, string if found
*/
public $thumb_link = false;
/**
* Caches the sanitized media filename
*
* @var false|string false if not cached
*/
public $media_filename_processed = false;
public function clean()
{
$this->media_status = false;
$this->safe_media_hash = false;
$this->remote_media_link = false;
$this->media_link = false;
$this->thumb_link = false;
$this->media_filename_processed = false;
}
}