Squiz Matrix
4.12.2
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
All
Data Structures
Namespaces
Functions
Variables
Pages
mp3_file_management.inc
1
<?php
16
require_once SQ_INCLUDE_PATH.
'/asset_management.inc'
;
17
26
class
MP3_File_Management
extends
Asset_Management
27
{
28
29
36
function
__construct
(
Package_Manager
$pm)
37
{
38
Asset_Management::__construct($pm);
39
40
$this->vars = Array(
41
'extract_id3'
=> Array(
42
'added'
=>
'0.1'
,
43
'type'
=>
'boolean'
,
44
'default'
=> FALSE,
45
'is_admin'
=>
'1'
,
46
'parameters'
=> Array(
'allow_empty'
=> FALSE),
47
'description'
=>
'When set to TRUE in edit interface, will use getID3() to extract ID3 information from the MP3 file.'
,
48
),
49
'write_mp3'
=> Array(
50
'added'
=>
'0.1'
,
51
'type'
=>
'boolean'
,
52
'default'
=> FALSE,
53
'is_admin'
=>
'1'
,
54
'parameters'
=> Array(
'allow_empty'
=> FALSE),
55
'description'
=>
'When set to TRUE in edit interface, will use getID3() to write info to the MP3 file.'
,
56
),
57
'album'
=> Array(
58
'added'
=>
'0.1'
,
59
'type'
=>
'text'
,
60
'default'
=>
''
,
61
'is_admin'
=>
'0'
,
62
'description'
=>
'Name of album'
,
63
'is_contextable'
=> TRUE,
64
),
65
'artist'
=> Array(
66
'added'
=>
'0.1'
,
67
'type'
=>
'text'
,
68
'default'
=>
''
,
69
'is_admin'
=>
'0'
,
70
'description'
=>
'Name of artist'
,
71
'is_contextable'
=> TRUE,
72
),
73
'track'
=> Array(
74
'added'
=>
'0.1'
,
75
'type'
=>
'text'
,
76
'default'
=>
''
,
77
'is_admin'
=>
'0'
,
78
'description'
=>
'Track number'
,
79
),
80
'song'
=> Array(
81
'added'
=>
'0.1'
,
82
'type'
=>
'text'
,
83
'default'
=>
''
,
84
'is_admin'
=>
'0'
,
85
'description'
=>
'Name of track'
,
86
'is_contextable'
=> TRUE,
87
),
88
'year'
=> Array(
89
'added'
=>
'0.1'
,
90
'type'
=>
'text'
,
91
'default'
=>
''
,
92
'is_admin'
=>
'0'
,
93
'description'
=>
'Year that track was created'
,
94
),
95
'bitrate'
=> Array(
96
'added'
=>
'0.1'
,
97
'type'
=>
'float'
,
98
'default'
=> 0,
99
'is_admin'
=>
'0'
,
100
'description'
=>
'Bitrate of encoded file'
,
101
),
102
'length'
=> Array(
103
'added'
=>
'0.1'
,
104
'type'
=>
'duration'
,
105
'default'
=> 0,
106
'is_admin'
=>
'0'
,
107
'description'
=>
'Length of audio file'
,
108
),
109
'genre'
=> Array(
110
'added'
=>
'0.1'
,
111
'type'
=>
'text'
,
112
'default'
=>
''
,
113
'is_admin'
=>
'0'
,
114
'description'
=>
'Genre of this audio file'
,
115
),
116
'samplerate'
=> Array(
117
'added'
=>
'0.1'
,
118
'type'
=>
'float'
,
119
'default'
=> 0,
120
'is_admin'
=>
'0'
,
121
'description'
=>
'Sample Rate of this audio file'
,
122
),
123
'lyrics'
=> Array(
124
'added'
=>
'0.1'
,
125
'type'
=>
'text'
,
126
'default'
=>
''
,
127
'is_admin'
=>
'0'
,
128
'description'
=>
'Lyrics for this audio file'
,
129
'is_contextable'
=> TRUE,
130
),
131
'composer'
=> Array(
132
'added'
=>
'0.1'
,
133
'type'
=>
'text'
,
134
'default'
=>
''
,
135
'is_admin'
=>
'0'
,
136
'description'
=>
'Composer of this audio file'
,
137
),
138
'copyright'
=> Array(
139
'added'
=>
'0.1'
,
140
'type'
=>
'text'
,
141
'default'
=>
''
,
142
'is_admin'
=>
'0'
,
143
'description'
=>
'Copyright'
,
144
),
145
'comments'
=> Array(
146
'added'
=>
'0.1'
,
147
'type'
=>
'text'
,
148
'default'
=>
''
,
149
'is_admin'
=>
'0'
,
150
'description'
=>
'Comments for this audio file'
,
151
'is_contextable'
=> TRUE,
152
),
153
154
);
//end array
155
156
}
// end constructor
157
158
159
}
// end class
160
?>
squiz_matrix
core
assets
files
mp3_file
mp3_file_management.inc
Generated on Tue Jan 29 2013 14:04:37 for Squiz Matrix by
1.8.3.1