summaryrefslogtreecommitdiffstats
path: root/appinfo
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2012-04-28 10:27:29 -0400
committerAlessandro Cosentino <cosenal@gmail.com>2012-04-28 10:27:29 -0400
commit797edb75a159f4bce2a5df1d6a04905caf85d563 (patch)
tree7c8e10d43045036293a81b65e3c8ea0deae48385 /appinfo
parentf3e249a4a24548fb1487aec76113b5e1216db75c (diff)
created a stub for the News app
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/app.php29
-rw-r--r--appinfo/app.php~29
-rw-r--r--appinfo/database.xml38
-rw-r--r--appinfo/info.xml10
-rw-r--r--appinfo/info.xml~10
5 files changed, 116 insertions, 0 deletions
diff --git a/appinfo/app.php b/appinfo/app.php
new file mode 100644
index 000000000..a8169548c
--- /dev/null
+++ b/appinfo/app.php
@@ -0,0 +1,29 @@
+<?php
+
+/**
+* ownCloud - News app (feed reader)
+*
+* @author Alessandro Cosentino
+* @copyright 2012 Alessandro Cosentino cosenal@gmail.com
+*
+* 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::registerAdmin('news','settings');
+
+OC_App::register( array( 'order' => 70, 'id' => 'news', 'name' => 'News' ));
+
+OC_App::addNavigationEntry( array( 'id' => 'news', 'order' => 74, 'href' => OC_Helper::linkTo( 'news', 'index.php' ), 'icon' => OC_Helper::imagePath( 'news', 'example.png' ), 'name' => 'News'));
+
diff --git a/appinfo/app.php~ b/appinfo/app.php~
new file mode 100644
index 000000000..a8169548c
--- /dev/null
+++ b/appinfo/app.php~
@@ -0,0 +1,29 @@
+<?php
+
+/**
+* ownCloud - News app (feed reader)
+*
+* @author Alessandro Cosentino
+* @copyright 2012 Alessandro Cosentino cosenal@gmail.com
+*
+* 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::registerAdmin('news','settings');
+
+OC_App::register( array( 'order' => 70, 'id' => 'news', 'name' => 'News' ));
+
+OC_App::addNavigationEntry( array( 'id' => 'news', 'order' => 74, 'href' => OC_Helper::linkTo( 'news', 'index.php' ), 'icon' => OC_Helper::imagePath( 'news', 'example.png' ), 'name' => 'News'));
+
diff --git a/appinfo/database.xml b/appinfo/database.xml
new file mode 100644
index 000000000..86738170c
--- /dev/null
+++ b/appinfo/database.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<database>
+ <name>*dbname*</name>
+ <create>true</create>
+ <overwrite>false</overwrite>
+ <charset>latin1</charset>
+ <table>
+ <name>*dbprefix*apptemplate_items</name>
+ <declaration>
+ <field>
+ <name>item_id</name>
+ <type>integer</type>
+ <default>0</default>
+ <notnull>true</notnull>
+ <autoincrement>1</autoincrement>
+ <length>4</length>
+ </field>
+ <field>
+ <name>uid_owner</name>
+ <type>text</type>
+ <notnull>true</notnull>
+ <length>64</length>
+ </field>
+ <field>
+ <name>item_name</name>
+ <type>text</type>
+ <notnull>true</notnull>
+ <length>100</length>
+ </field>
+ <field>
+ <name>item_path</name>
+ <type>text</type>
+ <notnull>true</notnull>
+ <length>100</length>
+ </field>
+ </declaration>
+ </table>
+</database>
diff --git a/appinfo/info.xml b/appinfo/info.xml
new file mode 100644
index 000000000..ec5e33934
--- /dev/null
+++ b/appinfo/info.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<info>
+ <id>news</id>
+ <name>News</name>
+ <description>An RSS/Atom feed reader</description>
+ <version>0.1</version>
+ <licence>AGPL</licence>
+ <author>Alessandro Cosentino</author>
+ <require>3</require>
+</info>
diff --git a/appinfo/info.xml~ b/appinfo/info.xml~
new file mode 100644
index 000000000..8cee86cde
--- /dev/null
+++ b/appinfo/info.xml~
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<info>
+ <id>apptemplate</id>
+ <name>AppTemplate</name>
+ <description>Just an example application as a starting point for new developers</description>
+ <version>1.0</version>
+ <licence>AGPL</licence>
+ <author>Frank Karlitschek</author>
+ <require>2</require>
+</info>