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
ec0d98bc
Commit
ec0d98bc
authored
Feb 09, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sortierung für Spalten eingebaut
parent
254c3449
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
api.class.php
api.class.php
+12
-3
No files found.
api.class.php
View file @
ec0d98bc
...
@@ -76,12 +76,12 @@ class MediaDBAPI{
...
@@ -76,12 +76,12 @@ class MediaDBAPI{
return
$ret
;
return
$ret
;
}
}
private
function
SetKeyRights
(){
private
function
SetKeyRights
(){
if
(
$this
->
API_Rechte
>=
1
){
// Einfacher Zugang nix Technisches..
.
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
->
SpaltenFil
,
"imdbID"
,
"3d"
,
"name"
,
"year"
,
"duration"
,
"rating"
,
"summary"
,
"youtube"
,
"fsk"
,
"Genre"
,
"Schauspieler"
);
array_push
(
$this
->
SpaltenEpi
,
"episodenumber"
,
"season_nr"
,
"series_nr"
,
"name"
,
"duration"
);
array_push
(
$this
->
SpaltenEpi
,
"episodenumber"
,
"season_nr"
,
"series_nr"
,
"name"
,
"duration"
);
$this
->
FilterEinf
=
array_merge
(
$this
->
FilterEinf
,
array
(
"imdbID"
=>
"imdbID"
));
$this
->
FilterEinf
=
array_merge
(
$this
->
FilterEinf
,
array
(
"imdbID"
=>
"imdbID"
));
$this
->
FilterKomp
=
array_merge
(
$this
->
FilterKomp
,
array
(
"Jahr"
=>
"year"
,
"Laufzeit"
=>
"duration"
));
$this
->
FilterKomp
=
array_merge
(
$this
->
FilterKomp
,
array
(
"Jahr"
=>
"year"
,
"Laufzeit"
=>
"duration"
));
$this
->
FilterAnde
=
array_merge
(
$this
->
FilterAnde
,
array
(
"Deutsch"
,
"Englisch"
));
$this
->
FilterAnde
=
array_merge
(
$this
->
FilterAnde
,
array
(
"Deutsch"
,
"Englisch"
,
"Suche"
,
"Youtube"
));
//array_push($this->StatiViews, "");
//array_push($this->StatiViews, "");
}
}
if
(
$this
->
API_Rechte
>=
2
){
// Einfacher Zugang mit einigen Technischen Infos
if
(
$this
->
API_Rechte
>=
2
){
// Einfacher Zugang mit einigen Technischen Infos
...
@@ -97,7 +97,7 @@ class MediaDBAPI{
...
@@ -97,7 +97,7 @@ class MediaDBAPI{
$this
->
FilterEinf
=
array_merge
(
$this
->
FilterEinf
,
array
(
"acodecger"
=>
"acodecger"
,
"acodeceng"
=>
"acodeceng"
,
"vcodec"
=>
"vcodec"
,
$this
->
FilterEinf
=
array_merge
(
$this
->
FilterEinf
,
array
(
"acodecger"
=>
"acodecger"
,
"acodeceng"
=>
"acodeceng"
,
"vcodec"
=>
"vcodec"
,
"channelsger"
=>
"channelsger"
,
"channelseng"
=>
"channelseng"
));
"channelsger"
=>
"channelsger"
,
"channelseng"
=>
"channelseng"
));
$this
->
FilterKomp
=
array_merge
(
$this
->
FilterKomp
,
array
());
$this
->
FilterKomp
=
array_merge
(
$this
->
FilterKomp
,
array
());
$this
->
FilterAnde
=
array_merge
(
$this
->
FilterAnde
,
array
(
"Suche"
,
"Youtube"
));
$this
->
FilterAnde
=
array_merge
(
$this
->
FilterAnde
,
array
());
//array_push($this->StatiViews, "");
//array_push($this->StatiViews, "");
}
}
if
(
$this
->
API_Rechte
>=
4
){
// Einfacher Zugang mit allen Infos Also wann man Welchen FIlm gesehen hat usw.
if
(
$this
->
API_Rechte
>=
4
){
// Einfacher Zugang mit allen Infos Also wann man Welchen FIlm gesehen hat usw.
...
@@ -124,6 +124,15 @@ class MediaDBAPI{
...
@@ -124,6 +124,15 @@ class MediaDBAPI{
//TODO überprüfen ob es die spalten auch wirklich gibt!!!
//TODO überprüfen ob es die spalten auch wirklich gibt!!!
//Dafür den Array mit allein Spalten für die Reinfolge verwenden
//Dafür den Array mit allein Spalten für die Reinfolge verwenden
/*$tempFilme= array();
foreach ($this->SpaltenFilme as $value) {
if(in_array($value, $this->SpaltenFil)){
array
}
}*/
$this
->
SpaltenFil
=
array_intersect
(
$this
->
SpaltenFilme
,
$this
->
SpaltenFil
);
$this
->
SpaltenEpi
=
array_intersect
(
$this
->
SpaltenEpisoden
,
$this
->
SpaltenEpi
);
}
}
public
function
API_GetKeyRights
(
$GET_arr
,
$POST_arr
=
""
){
public
function
API_GetKeyRights
(
$GET_arr
,
$POST_arr
=
""
){
$array
[
"SpaltenFilme"
]
=
$this
->
SpaltenFil
;
$array
[
"SpaltenFilme"
]
=
$this
->
SpaltenFil
;
...
...
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