Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
883c7a58
Commit
883c7a58
authored
14 years ago
by
Jakob Sack
Browse files
Options
Downloads
Patches
Plain Diff
Small fixes in OC_APP, removed functions in OC_UTIL that now are in OC_APP
parent
25e59e3c
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/app.php
+37
-8
37 additions, 8 deletions
lib/app.php
lib/base.php
+0
-30
0 additions, 30 deletions
lib/base.php
with
37 additions
and
38 deletions
lib/app.php
+
37
−
8
View file @
883c7a58
<?php
<?php
/**
* ownCloud
*
* @author Frank Karlitschek
* @author Jakob Sack
* @copyright 2010 Frank Karlitschek karlitschek@kde.org
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
* License as published by the Free Software Foundation; either
* version 3 of the License, or any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
*
* You should have received a copy of the GNU Affero General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*
*/
class
OC_APP
{
class
OC_APP
{
static
private
$init
=
false
;
static
private
$init
=
false
;
static
private
$apps
=
array
();
static
private
$apps
=
array
();
static
private
$adminpages
=
array
();
static
private
$navigation
=
array
();
static
private
$personalmenu
=
array
();
/**
/**
* @brief loads all apps
* @brief loads all apps
...
@@ -45,6 +70,7 @@ class OC_APP{
...
@@ -45,6 +70,7 @@ class OC_APP{
* The following keys are required:
* The following keys are required:
* - id: id of the application, has to be unique ("addressbook")
* - id: id of the application, has to be unique ("addressbook")
* - name: Human readable name ("Addressbook")
* - name: Human readable name ("Addressbook")
* - version: array with Version (major, minor, bugfix) ( array(1, 0, 2))
*
*
* The following keys are optional:
* The following keys are optional:
* - order: integer, that influences the position of your application in
* - order: integer, that influences the position of your application in
...
@@ -84,6 +110,7 @@ class OC_APP{
...
@@ -84,6 +110,7 @@ class OC_APP{
*/
*/
public
static
function
addNavigationEntry
(
$data
){
public
static
function
addNavigationEntry
(
$data
){
// TODO: write function
// TODO: write function
OC_APP
::
$navigation
[]
=
$data
;
return
true
;
return
true
;
}
}
...
@@ -144,6 +171,7 @@ class OC_APP{
...
@@ -144,6 +171,7 @@ class OC_APP{
*/
*/
public
static
function
addPersonalMenuEntry
(
$data
){
public
static
function
addPersonalMenuEntry
(
$data
){
// TODO: write function
// TODO: write function
OC_APP
::
$personalmenu
[]
=
$data
;
return
true
;
return
true
;
}
}
...
@@ -165,6 +193,7 @@ class OC_APP{
...
@@ -165,6 +193,7 @@ class OC_APP{
*/
*/
public
static
function
addAdminPage
(
$data
=
array
()){
public
static
function
addAdminPage
(
$data
=
array
()){
// TODO: write function
// TODO: write function
OC_APP
::
$adminpages
[]
=
$data
;
return
true
;
return
true
;
}
}
...
@@ -179,9 +208,9 @@ class OC_APP{
...
@@ -179,9 +208,9 @@ class OC_APP{
* - children: array that is empty if the key "active" is false or
* - children: array that is empty if the key "active" is false or
* contains the subentries if the key "active" is true
* contains the subentries if the key "active" is true
*/
*/
public
static
function
getNavigation
(
$data
=
array
()
){
public
static
function
getNavigation
(){
// TODO: write function
// TODO: write function
return
true
;
return
OC_APP
::
$navigation
;
}
}
/**
/**
...
@@ -191,9 +220,9 @@ class OC_APP{
...
@@ -191,9 +220,9 @@ class OC_APP{
* This function returns an array containing all personal menu entries
* This function returns an array containing all personal menu entries
* added. The entries are sorted by the key "order" ascending.
* added. The entries are sorted by the key "order" ascending.
*/
*/
public
static
function
getPersonalMenu
(
$data
=
array
()
){
public
static
function
getPersonalMenu
(){
// TODO: write function
// TODO: write function
return
true
;
return
OC_APP
::
$personalmenu
;
}
}
/**
/**
...
@@ -203,13 +232,13 @@ class OC_APP{
...
@@ -203,13 +232,13 @@ class OC_APP{
* This function returns an array containing all admin pages added. The
* This function returns an array containing all admin pages added. The
* entries are sorted by the key "order" ascending.
* entries are sorted by the key "order" ascending.
*/
*/
public
static
function
getAdminPages
(
$data
=
array
()
){
public
static
function
getAdminPages
(){
// TODO: write function
// TODO: write function
return
true
;
return
OC_APP
::
$adminpages
;
}
}
/**
/**
* @brief Installs an app
l
* @brief Installs an app
* @param $data array with all information
* @param $data array with all information
* @returns integer
* @returns integer
*
*
...
@@ -285,7 +314,7 @@ class OC_APP{
...
@@ -285,7 +314,7 @@ class OC_APP{
* @returns true/false
* @returns true/false
*
*
* This function removes an app. $options is an associative array. The
* This function removes an app. $options is an associative array. The
* following keys are optional:
* following keys are optional:
ja
* - keeppreferences: boolean, if true the user preferences won't be deleted
* - keeppreferences: boolean, if true the user preferences won't be deleted
* - keepappconfig: boolean, if true the config will be kept
* - keepappconfig: boolean, if true the config will be kept
* - keeptables: boolean, if true the database will be kept
* - keeptables: boolean, if true the database will be kept
...
...
This diff is collapsed.
Click to expand it.
lib/base.php
+
0
−
30
View file @
883c7a58
...
@@ -124,9 +124,6 @@ OC_UTIL::checkserver();
...
@@ -124,9 +124,6 @@ OC_UTIL::checkserver();
class
OC_UTIL
{
class
OC_UTIL
{
public
static
$scripts
=
array
();
public
static
$scripts
=
array
();
public
static
$styles
=
array
();
public
static
$styles
=
array
();
public
static
$adminpages
=
array
();
public
static
$navigation
=
array
();
public
static
$personalmenu
=
array
();
private
static
$fsSetup
=
false
;
private
static
$fsSetup
=
false
;
// Can be set up
// Can be set up
...
@@ -225,33 +222,6 @@ class OC_UTIL {
...
@@ -225,33 +222,6 @@ class OC_UTIL {
self
::
$styles
[]
=
"
$application
/css/
$file
"
;
self
::
$styles
[]
=
"
$application
/css/
$file
"
;
}
}
/**
* add an entry to the main navigation
*
* @param array $entry
*/
public
static
function
addNavigationEntry
(
$entry
){
OC_UTIL
::
$navigation
[]
=
$entry
;
}
/**
* add administration pages
*
* @param array $entry
*/
public
static
function
addAdminPage
(
$entry
){
OC_UTIL
::
$adminpages
[]
=
$entry
;
}
/**
* add an entry to the personal menu
*
* @param array $entry
*/
public
static
function
addPersonalMenuEntry
(
$entry
){
OC_UTIL
::
$personalmenu
[]
=
$entry
;
}
/**
/**
* check if the current server configuration is suitable for ownCloud
* check if the current server configuration is suitable for ownCloud
*
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment