mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-04 02:36:49 +07:00
updated appframework api
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
@@ -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
|
||||
|
||||
@@ -9,6 +9,7 @@ AppFramework API
|
||||
controller_controller
|
||||
core_api
|
||||
db_doesnotexistexception
|
||||
db_multipleobjectsreturnedexception
|
||||
db_mapper
|
||||
dependencyinjection_dicontainer
|
||||
http_response
|
||||
|
||||
Reference in New Issue
Block a user