Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MediaDBViewerAPI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BA_SI-Projekt
MediaDBViewerAPI
Commits
ab6a7c5b
Commit
ab6a7c5b
authored
Feb 29, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
dd9a6e0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
12 deletions
+15
-12
api.class.php
api.class.php
+15
-12
No files found.
api.class.php
View file @
ab6a7c5b
...
...
@@ -33,18 +33,20 @@ class MediaDBAPI{
"md5"
,
"summary"
);
public
$SpaltenEpisoden
=
array
(
"episodenumber"
,
"season_nr"
,
"series_nr"
,
"name"
,
"source"
,
"duration"
,
"size"
,
"hdd"
,
"lastView"
,
"added"
,
"views"
,
"checked"
,
"width"
,
"height"
,
"totalbitrate"
,
"vcodec"
,
"acodecger"
,
"abitrateger"
,
"channelsger"
,
"acodeceng"
,
"abitrateeng"
,
"channelseng"
,
"comment"
,
"md5"
);
public
$StatistikViews
=
array
(
"watchStatistic"
,
"belegterSpeicher"
,
"freierSpeicher"
,
"laufzeitGesehen"
,
"prozentualGesehen"
,
"prozentualDefekt"
,
"defekteFilme"
,
"defekteEpisoden"
,
"DBstatistik"
,
"GenreFilmanzahl"
);
private
$FilterEinfach
=
array
(
"imdbID"
=>
"imdbID"
,
"acodecger"
=>
"acodecger"
,
"acodeceng"
=>
"acodeceng"
,
"vcodec"
=>
"vcodec"
,
"resolution"
=>
"resolution"
,
"channelsger"
=>
"channelsger"
,
"channelseng"
=>
"channelseng"
,
"hdd"
=>
"hdd"
);
private
$FilterKomplex
=
array
(
"Jahr"
=>
"year"
,
"Groesse"
=>
"size"
,
"Laufzeit"
=>
"duration"
,
"Hinzugefuegt"
=>
"added"
,
"Gesehen"
=>
"lastView"
,
"Gesehenzaehler"
=>
"views"
,
"FSK"
=>
"fsk"
);
private
$FilterAndere
=
array
(
"Suche"
,
"3d"
,
"Deutsch"
,
"Englisch"
,
"checked"
,
"Youtube"
);
//
private $FilterAndere = array("Suche", "3d", "Deutsch", "Englisch", "checked", "Youtube");
//private $StatistikViews =array();
/* Speicher für Rechte Arrays*/
private
$SpaltenFil
=
array
();
private
$SpaltenEpi
=
array
();
private
$FilterEinf
=
array
();
private
$FilterKomp
=
array
();
private
$FilterAnde
=
array
();
//
private $FilterEinf = array();
//
private $FilterKomp = array();
//
private $FilterAnde = array();
private
$StatiViews
=
array
();
private
$Update
=
FALSE
;
private
$DebugOutput
=
FALSE
;
...
...
@@ -82,9 +84,9 @@ class MediaDBAPI{
if
(
$this
->
API_Rechte
>=
0
){
// Standard Sachen die nicht Deaktivert werden dürfen.
array_push
(
$this
->
SpaltenFil
,
"imdbID"
,
"3d"
,
"name"
,
"year"
,
"duration"
,
"rating"
,
"summary"
,
"youtube"
,
"fsk"
,
"Genre"
,
"Schauspieler"
);
array_push
(
$this
->
SpaltenEpi
,
"episodenumber"
,
"season_nr"
,
"series_nr"
,
"name"
,
"duration"
);
$this
->
FilterEinf
=
$this
->
FilterEinfach
;
//array_merge($this->FilterEinf, array("imdbID" => "imdbID"));
$this
->
FilterKomp
=
$this
->
FilterKomplex
;
//array_merge($this->FilterKomp, array("Jahr" => "year", "Laufzeit" => "duration"));
$this
->
FilterAnde
=
$this
->
FilterAndere
;
//array_merge($this->FilterAnde, array("Deutsch", "Englisch","Suche", "Youtube"));
//
$this->FilterEinf = $this->FilterEinfach;//array_merge($this->FilterEinf, array("imdbID" => "imdbID"));
//
$this->FilterKomp = $this->FilterKomplex;//array_merge($this->FilterKomp, array("Jahr" => "year", "Laufzeit" => "duration"));
//
$this->FilterAnde = $this->FilterAndere;//array_merge($this->FilterAnde, array("Deutsch", "Englisch","Suche", "Youtube"));
//array_push($this->StatiViews, "");
}
if
(
$this
->
API_Rechte
>=
2
){
// Einfacher Zugang mit einigen Technischen Infos
...
...
@@ -130,8 +132,9 @@ class MediaDBAPI{
$this
->
DebugOutput
=
true
;
$this
->
SpaltenFil
=
$this
->
SpaltenFilme
;
// Alle Spalten
$this
->
SpaltenEpi
=
$this
->
SpaltenEpisoden
;
array_push
(
$this
->
StatiViews
,
"watchStatistic"
,
"belegterSpeicher"
,
"freierSpeicher"
,
"laufzeitGesehen"
,
"prozentualGesehen"
,
"prozentualDefekt"
,
"defekteFilme"
,
"defekteEpisoden"
,
"DBstatistik"
,
"GenreFilmanzahl"
);
$this
->
StatiViews
=
$this
->
StatistikViews
;
/* array_push($this->StatiViews, "watchStatistic", "belegterSpeicher", "freierSpeicher", "laufzeitGesehen", "prozentualGesehen", "prozentualDefekt",
"defekteFilme", "defekteEpisoden", "DBstatistik", "GenreFilmanzahl");*/
}
...
...
@@ -162,9 +165,9 @@ class MediaDBAPI{
public
function
API_GetKeyRights
(
$GET_arr
,
$POST_arr
=
""
){
$array
[
"SpaltenFilme"
]
=
$this
->
SpaltenFil
;
$array
[
"SpaltenEpisoden"
]
=
$this
->
SpaltenEpi
;
$array
[
"FilterEinfach"
]
=
$this
->
FilterEinf
;
$array
[
"FilterKomplex"
]
=
$this
->
FilterKomp
;
$array
[
"FilterAndere"
]
=
$this
->
FilterAnde
;
//
$array["FilterEinfach"] = $this->FilterEinf;
//
$array["FilterKomplex"] = $this->FilterKomp;
//
$array["FilterAndere"] = $this->FilterAnde;
$array
[
"StatistikViews"
]
=
$this
->
StatiViews
;
$array
[
"Update"
]
=
$this
->
Update
;
return
$array
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment