diff --git a/developer_manual/access.rst b/developer_manual/access.rst new file mode 100644 index 000000000..b2b8f31f0 --- /dev/null +++ b/developer_manual/access.rst @@ -0,0 +1,4 @@ +public.php and remote.php +========================= + +See http://owncloud.org/dev/apps/public-php-and-remote-php/ \ No newline at end of file diff --git a/developer_manual/compatibility.rst b/developer_manual/compatibility.rst new file mode 100644 index 000000000..11664fa4b --- /dev/null +++ b/developer_manual/compatibility.rst @@ -0,0 +1,4 @@ +Compatibility Notes +=================== + +See http://owncloud.org/dev/apps/make-owncloud-3-apps-compatible-with-owncloud-4/ \ No newline at end of file diff --git a/developer_manual/data-migration.rst b/developer_manual/data-migration.rst new file mode 100644 index 000000000..0b90e277f --- /dev/null +++ b/developer_manual/data-migration.rst @@ -0,0 +1,4 @@ +Data Migration +============== + +See http://owncloud.org/dev/apps/data-migration/ \ No newline at end of file diff --git a/developer_manual/database.rst b/developer_manual/database.rst new file mode 100644 index 000000000..d1ff20f9b --- /dev/null +++ b/developer_manual/database.rst @@ -0,0 +1,18 @@ +Database +======== + +ownCloud uses a database abstraction layer on top of either MDB2 or PDO, depending on the availability of PDO on the server. + +Apps should always use prepared statements when accessing the database as seen in the following example: + +``$query=OC_DB::prepare('SELECT foo,bar FROM *PREFIX*mytable' WHERE user=?'); +$result=$query->execute(array($userId)); +$data=$result->fetchAll();`` + +‘*PREFIX*’ in the query string will be replaced by the configured database table prefix while preparing the query. Arguments for the prepared statement are denoted by a ‘?’ in the query string and passed during execution in an array. +For more information about MDB2 style prepared statements, please see the official MDB2 documentation `here`_ + +If an app requires additional tables in the database they can be automatically created and updated by specifying them inside appinfo/database.xml using MDB2's `xml scheme notation`_ where the placeholders ‘*dbprefix*’ and ‘*dbname*’ can be used for the configured database table prefix and database name. To update the tables used by the app, simply adjust the database.xml file and increase the app version number to trigger an update. + +.. _here: http://pear.php.net/package/MDB2/ +.. _xml scheme notation: http://www.sulc.edu/sulcalumni/app/lib/pear/docs/MDB2_Schema/docs/xml_schema_documentation.html \ No newline at end of file diff --git a/developer_manual/dialogs.rst b/developer_manual/dialogs.rst new file mode 100644 index 000000000..3ea7c87c1 --- /dev/null +++ b/developer_manual/dialogs.rst @@ -0,0 +1,4 @@ +Dialogs +======= + +*Coming Soon* \ No newline at end of file diff --git a/developer_manual/filesystem.rst b/developer_manual/filesystem.rst new file mode 100644 index 000000000..ee50e6f95 --- /dev/null +++ b/developer_manual/filesystem.rst @@ -0,0 +1,4 @@ +Filesystem +========== + +See http://owncloud.org/dev/apps/filesystem-interaction/ \ No newline at end of file diff --git a/developer_manual/formfactors.rst b/developer_manual/formfactors.rst new file mode 100644 index 000000000..3439c3258 --- /dev/null +++ b/developer_manual/formfactors.rst @@ -0,0 +1,4 @@ +Formfactors +=========== + +See http://owncloud.org/dev/apps/formfactors/ \ No newline at end of file diff --git a/developer_manual/getting_started.rst b/developer_manual/getting_started.rst new file mode 100644 index 000000000..1a9d268d5 --- /dev/null +++ b/developer_manual/getting_started.rst @@ -0,0 +1,4 @@ +Getting Started +=============== + +See http://owncloud.org/dev/apps/getting-started/ \ No newline at end of file diff --git a/developer_manual/hooks.rst b/developer_manual/hooks.rst new file mode 100644 index 000000000..854b4d90e --- /dev/null +++ b/developer_manual/hooks.rst @@ -0,0 +1,4 @@ +Hooks +===== + +See http://owncloud.org/dev/apps/hooks/ \ No newline at end of file diff --git a/developer_manual/index.rst b/developer_manual/index.rst index e1839ff55..a893984ae 100644 --- a/developer_manual/index.rst +++ b/developer_manual/index.rst @@ -16,6 +16,18 @@ Contents roadmap juniorjobs testing + database + getting_started + filesystem + hooks + theming + formfactors + dialogs + share_api + data_migration + access + unit_testing + compatibility Indices and tables diff --git a/developer_manual/share-api.rst b/developer_manual/share-api.rst new file mode 100644 index 000000000..5f4a78ece --- /dev/null +++ b/developer_manual/share-api.rst @@ -0,0 +1,6 @@ +Share API +========= + +**Warning: The Share API is still under heavy development and testing. Report issues to Michael Gapczynski.** + +See http://owncloud.org/dev/apps/share-api/ \ No newline at end of file diff --git a/developer_manual/theming.rst b/developer_manual/theming.rst new file mode 100644 index 000000000..1e4eb6d33 --- /dev/null +++ b/developer_manual/theming.rst @@ -0,0 +1,4 @@ +Theming +======= + +See http://owncloud.org/dev/theming/ \ No newline at end of file diff --git a/developer_manual/unit-testing.rst b/developer_manual/unit-testing.rst new file mode 100644 index 000000000..9b60b7b59 --- /dev/null +++ b/developer_manual/unit-testing.rst @@ -0,0 +1,4 @@ +Unit Testing +============ + +See http://owncloud.org/dev/apps/unit-testing/ \ No newline at end of file