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
189dd691
Commit
189dd691
authored
Jan 12, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+ GetDataListe
parent
403eb1ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
api.class.php
api.class.php
+5
-3
No files found.
api.class.php
View file @
189dd691
...
@@ -10,6 +10,7 @@ class MediaDBViewerAPI{
...
@@ -10,6 +10,7 @@ class MediaDBViewerAPI{
private
$DB_Username
;
private
$DB_Username
;
private
$DB_Passwort
;
private
$DB_Passwort
;
private
$DB_Database
;
private
$DB_Database
;
/** @var $DB_Objekt mysqli */
public
$DB_Objekt
;
public
$DB_Objekt
;
function
APIinit
(
$KEY
)
{
function
APIinit
(
$KEY
)
{
...
@@ -48,9 +49,10 @@ class MediaDBViewerAPI{
...
@@ -48,9 +49,10 @@ class MediaDBViewerAPI{
}
}
return
$ret
;
return
$ret
;
}
}
function
API_GetDataListe
(
$Table
,
$Order
=
""
,
$Sort
){
function
API_GetDataListe
(
$Table
,
$Spalten
=
"*"
,
$Order
=
""
,
$Sort
){
$entrys
=
$this
->
DB_Objekt
->
query
(
"SELECT "
.
$Spalten
.
" FROM "
.
$Table
.
""
);
return
$ret
;
$entryArray
=
$entrys
->
fetch_array
(
MYSQLI_ASSOC
);
return
$entryArray
;
}
}
function
API_serverinfo
(){
function
API_serverinfo
(){
...
...
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