summaryrefslogtreecommitdiffstats
path: root/apps/bookmarks/appinfo
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2011-08-15 22:05:07 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2011-08-15 22:05:07 +0200
commit5608aaee8a8bbf913f4abb665f18fbe510da7214 (patch)
treef704a1657117af202001ddcc71a9d3ad0df338ad /apps/bookmarks/appinfo
parent523b0966d22d0fc149ca64afb32995a0eb29a6d3 (diff)
downloadnextcloud-server-5608aaee8a8bbf913f4abb665f18fbe510da7214.tar.gz
nextcloud-server-5608aaee8a8bbf913f4abb665f18fbe510da7214.zip
initial commit of Bookmarks App
Diffstat (limited to 'apps/bookmarks/appinfo')
-rw-r--r--apps/bookmarks/appinfo/app.php27
-rw-r--r--apps/bookmarks/appinfo/database.xml127
-rw-r--r--apps/bookmarks/appinfo/info.xml10
3 files changed, 164 insertions, 0 deletions
diff --git a/apps/bookmarks/appinfo/app.php b/apps/bookmarks/appinfo/app.php
new file mode 100644
index 00000000000..33b7ba61449
--- /dev/null
+++ b/apps/bookmarks/appinfo/app.php
@@ -0,0 +1,27 @@
+<?php
+
+/**
+* ownCloud - bookmarks plugin
+*
+* @author Arthur Schiwon
+* @copyright 2011 Arthur Schiwon blizzz@arthur-schiwon.de
+*
+* 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 Lesser General Public
+* License along with this library. If not, see <http://www.gnu.org/licenses/>.
+*
+*/
+
+OC_App::register( array( 'order' => 70, 'id' => 'bookmark', 'name' => 'Bookmarks' ));
+
+OC_App::addNavigationEntry( array( 'id' => 'bookmarks_index', 'order' => 70, 'href' => OC_Helper::linkTo( 'bookmarks', 'index.php' ), 'icon' => OC_Helper::imagePath( 'bookmarks', 'bookmarks.png' ), 'name' => 'Bookmarks' ));
+
diff --git a/apps/bookmarks/appinfo/database.xml b/apps/bookmarks/appinfo/database.xml
new file mode 100644
index 00000000000..8bfb861fc5d
--- /dev/null
+++ b/apps/bookmarks/appinfo/database.xml
@@ -0,0 +1,127 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<database>
+ <name>*dbname*</name>
+ <create>true</create>
+ <overwrite>false</overwrite>
+ <charset>latin1</charset>
+ <table>
+ <name>*dbprefix*bookmarks</name>
+ <declaration>
+ <field>
+ <name>id</name>
+ <type>integer</type>
+ <autoincrement>1</autoincrement>
+ <default>0</default>
+ <notnull>true</notnull>
+ <length>64</length>
+ </field>
+ <field>
+ <name>url</name>
+ <type>text</type>
+ <default></default>
+ <notnull>true</notnull>
+ <length>4096</length>
+ </field>
+ <field>
+ <name>title</name>
+ <type>text</type>
+ <default></default>
+ <notnull>true</notnull>
+ <length>140</length>
+ </field>
+ <field>
+ <name>description</name>
+ <type>text</type>
+ <default></default>
+ <notnull>true</notnull>
+ <length>255</length>
+ </field>
+ <field>
+ <name>user_id</name>
+ <type>text</type>
+ <default></default>
+ <notnull>true</notnull>
+ <length>64</length>
+ </field>
+ <field>
+ <name>public</name>
+ <type>integer</type>
+ <default>0</default>
+ <length>1</length>
+ </field>
+ <field>
+ <name>added</name>
+ <type>integer</type>
+ <default></default>
+ <notnull>false</notnull>
+ <unsigned>true</unsigned>
+ <length>4</length>
+ </field>
+ <field>
+ <name>lastmodified</name>
+ <type>integer</type>
+ <default></default>
+ <notnull>false</notnull>
+ <unsigned>true</unsigned>
+ <length>4</length>
+ </field>
+ <field>
+ <name>clickcount</name>
+ <type>integer</type>
+ <default>0</default>
+ <notnull>true</notnull>
+ <unsigned>true</unsigned>
+ <length>4</length>
+ </field>
+
+ <index>
+ <name>id</name>
+ <unique>true</unique>
+ <field>
+ <name>id</name>
+ <sorting>descending</sorting>
+ </field>
+ </index>
+<!-- <index>
+ <name>url</name>
+ <unique>true</unique>
+ <field>
+ <name>url</name>
+ <sorting>ascending</sorting>
+ </field>
+ </index>-->
+ </declaration>
+ </table>
+
+ <table>
+ <name>*dbprefix*bookmarks_tags</name>
+ <declaration>
+ <field>
+ <name>bookmark_id</name>
+ <type>integer</type>
+ <length>64</length>
+ </field>
+
+ <field>
+ <name>tag</name>
+ <type>text</type>
+ <default></default>
+ <notnull>true</notnull>
+ <length>255</length>
+ </field>
+ <index>
+ <name>bookmark_tag</name>
+ <unique>true</unique>
+ <field>
+ <name>bookmark_id</name>
+ <sorting>ascending</sorting>
+ </field>
+ <field>
+ <name>tag</name>
+ <sorting>ascending</sorting>
+ </field>
+ </index>
+ </declaration>
+ </table>
+</database>
+ \ No newline at end of file
diff --git a/apps/bookmarks/appinfo/info.xml b/apps/bookmarks/appinfo/info.xml
new file mode 100644
index 00000000000..23aa6c219a9
--- /dev/null
+++ b/apps/bookmarks/appinfo/info.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<info>
+ <id>bookmarks</id>
+ <name>Bookmarks</name>
+ <description>Bookmark manager for ownCloud</description>
+ <version>0.1</version>
+ <licence>AGPL</licence>
+ <author>Arthur Schiwon</author>
+ <require>2</require>
+</info> \ No newline at end of file