Squiz Matrix
4.12.2
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
All
Data Structures
Namespaces
Functions
Variables
Pages
video_file_management.inc
1
<?php
17
require_once SQ_INCLUDE_PATH.
'/asset_management.inc'
;
18
27
class
Video_File_Management
extends
Asset_Management
28
{
29
30
37
function
__construct
(
Package_Manager
$pm)
38
{
39
Asset_Management::__construct($pm);
40
41
$this->vars = Array(
42
'extract_id3'
=> Array(
43
'added'
=>
'0.1'
,
44
'type'
=>
'boolean'
,
45
'default'
=> FALSE,
46
'is_admin'
=>
'1'
,
47
'parameters'
=> Array(
'allow_empty'
=> FALSE),
48
'description'
=>
'When set to TRUE in edit interface, will use getID3() to extract ID3 information from the Video file.'
,
49
),
50
'file_format'
=> Array(
51
'added'
=>
'0.1'
,
52
'type'
=>
'text'
,
53
'default'
=>
''
,
54
'is_admin'
=>
'0'
,
55
'description'
=>
'File Format of this file'
,
56
),
57
'audio_codec'
=> Array(
58
'added'
=>
'0.1'
,
59
'type'
=>
'text'
,
60
'default'
=>
''
,
61
'is_admin'
=>
'0'
,
62
'description'
=>
'Codec of the audio in this file'
,
63
),
64
'channels'
=> Array(
65
'added'
=>
'0.1'
,
66
'type'
=>
'int'
,
67
'default'
=> 0,
68
'is_admin'
=>
'0'
,
69
'description'
=>
'Number of channels of the audio in this file'
,
70
),
71
'channel_mode'
=> Array(
72
'added'
=>
'0.1'
,
73
'type'
=>
'text'
,
74
'default'
=>
''
,
75
'is_admin'
=>
'0'
,
76
'description'
=>
'Channel Mode of the audio in this file'
,
77
),
78
'bitrate'
=> Array(
79
'added'
=>
'0.1'
,
80
'type'
=>
'float'
,
81
'default'
=> 0,
82
'is_admin'
=>
'0'
,
83
'description'
=>
'Bit Rate of the audio in this file'
,
84
'parameters'
=> Array(
85
'decimal_places'
=> 0,
86
),
87
),
88
'sample_rate'
=> Array(
89
'added'
=>
'0.1'
,
90
'type'
=>
'float'
,
91
'default'
=> 0,
92
'is_admin'
=>
'0'
,
93
'description'
=>
'Sample Rate of the audio in this file'
,
94
'parameters'
=> Array(
95
'decimal_places'
=> 0,
96
),
97
),
98
'video_codec'
=> Array(
99
'added'
=>
'0.1'
,
100
'type'
=>
'text'
,
101
'default'
=>
''
,
102
'is_admin'
=>
'0'
,
103
'description'
=>
'Codec of the video in this file'
,
104
),
105
'width'
=> Array(
106
'added'
=>
'0.1'
,
107
'type'
=>
'float'
,
108
'default'
=> 0,
109
'is_admin'
=>
'0'
,
110
'description'
=>
'Width of the video'
,
111
'parameters'
=> Array(
112
'decimal_places'
=> 0,
113
),
114
),
115
'height'
=> Array(
116
'added'
=>
'0.1'
,
117
'type'
=>
'float'
,
118
'default'
=> 0,
119
'is_admin'
=>
'0'
,
120
'description'
=>
'Height of the video'
,
121
'parameters'
=> Array(
122
'decimal_places'
=> 0,
123
),
124
),
125
'fps'
=> Array(
126
'added'
=>
'0.1'
,
127
'type'
=>
'float'
,
128
'default'
=> 0,
129
'is_admin'
=>
'0'
,
130
'description'
=>
'Frames Per Second of the video'
,
131
'parameters'
=> Array(
132
'decimal_places'
=> 2,
133
),
134
),
135
'length'
=> Array(
136
'added'
=>
'0.1'
,
137
'type'
=>
'duration'
,
138
'default'
=> 0,
139
'is_admin'
=>
'0'
,
140
'description'
=>
'Length of this file'
,
141
),
142
'video_title'
=> Array(
143
'added'
=>
'0.2'
,
144
'type'
=>
'text'
,
145
'default'
=>
''
,
146
'is_admin'
=>
'0'
,
147
'description'
=>
'Title of the video'
,
148
),
149
'artist'
=> Array(
150
'added'
=>
'0.2'
,
151
'type'
=>
'text'
,
152
'default'
=>
''
,
153
'is_admin'
=>
'0'
,
154
'description'
=>
'Artist of the video'
,
155
),
156
'album'
=> Array(
157
'added'
=>
'0.2'
,
158
'type'
=>
'text'
,
159
'default'
=>
''
,
160
'is_admin'
=>
'0'
,
161
'description'
=>
'Album of the video'
,
162
),
163
'genre'
=> Array(
164
'added'
=>
'0.2'
,
165
'type'
=>
'text'
,
166
'default'
=>
''
,
167
'is_admin'
=>
'0'
,
168
'description'
=>
'Genre of the video'
,
169
),
170
'year'
=> Array(
171
'added'
=>
'0.2'
,
172
'type'
=>
'float'
,
173
'default'
=> 0,
174
'is_admin'
=>
'0'
,
175
'description'
=>
'Year the video was created'
,
176
'parameters'
=> Array(
177
'decimal_places'
=> 0,
178
),
179
),
180
'copyright'
=> Array(
181
'added'
=>
'0.2'
,
182
'type'
=>
'text'
,
183
'default'
=>
''
,
184
'is_admin'
=>
'0'
,
185
'description'
=>
'Copyright of the video'
,
186
),
187
'comments'
=> Array(
188
'added'
=>
'0.2'
,
189
'type'
=>
'text'
,
190
'default'
=>
''
,
191
'is_admin'
=>
'0'
,
192
'description'
=>
'Description of the video'
,
193
),
194
'alt_asset'
=> Array(
195
'added'
=>
'0.2'
,
196
'type'
=>
'assetid'
,
197
'default'
=>
''
,
198
'description'
=>
'Alternate Asset Reference for Accessibility'
,
199
'update_fn'
=>
''
,
200
'is_admin'
=> FALSE,
201
),
202
);
203
204
}
//end constructor
205
206
207
}
//end class
208
?>
squiz_matrix
core
assets
files
video_file
video_file_management.inc
Generated on Tue Jan 29 2013 14:04:37 for Squiz Matrix by
1.8.3.1