updated appframework api

This commit is contained in:
Bernhard Posselt
2013-01-29 22:27:57 +01:00
parent 5ebfdb1f54
commit a2467f5ed3
4 changed files with 34 additions and 0 deletions

View File

@@ -44,6 +44,14 @@ Baseclass to inherit your controllers from
Lets you access post and get parameters by the index
.. php:method:: getParams()
:returns array: the array with all parameters
Returns all params that were received, be it from the request(as GET or POST) or throuh the URL by the route
.. php:method:: getUploadedFile($key)
:param string $key: the key that will be taken from the $_FILES array

View File

@@ -0,0 +1,17 @@
MultipleObjectsReturnedException
================================
This is returned or should be returned when a find request finds more than one
row
.. php:namespace:: OCA\AppFramework\Db
.. php:class:: MultipleObjectsReturnedException
.. php:method:: __construct($msg)
:param mixed $msg:

View File

@@ -19,6 +19,14 @@ Encapsulates $_GET, $_FILES and $_POST arrays for better testability
.. php:method:: getGETAndPOST()
:returns array: the merged array
Returns the merged GET and POST array
.. php:method:: getGET($key, $default=null)
:param string $key: the array key that should be looked up

View File

@@ -9,6 +9,7 @@ AppFramework API
controller_controller
core_api
db_doesnotexistexception
db_multipleobjectsreturnedexception
db_mapper
dependencyinjection_dicontainer
http_response