mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 18:26:42 +07:00
added version change infos
This commit is contained in:
@@ -358,3 +358,5 @@ View
|
||||
|
||||
Get the path of a file by id, relative to the view
|
||||
Note that the resulting path is not guarantied to be unique for the id, multiple paths can point to the same file
|
||||
|
||||
|
||||
|
||||
@@ -50,8 +50,20 @@ Services
|
||||
|
||||
The App Framework provides the following services:
|
||||
|
||||
Loading
|
||||
~~~~~~~
|
||||
Router
|
||||
~~~~~~
|
||||
The **OC.Router** object
|
||||
|
||||
Notification
|
||||
~~~~~~~~~~~~
|
||||
The **OC.Notification** object
|
||||
|
||||
Utils
|
||||
~~~~~
|
||||
The **OC** object
|
||||
|
||||
_Loading
|
||||
~~~~~~~~
|
||||
Simple object that can be used for displaying loading notifcations. It has an internal counter that starts at 0 and can be increased and decreased. If the counter is bigger than 0 isLoading is true.
|
||||
|
||||
Example:
|
||||
@@ -71,19 +83,6 @@ Example:
|
||||
loading.decrease()
|
||||
loading.isLoading() # false
|
||||
|
||||
|
||||
Router
|
||||
~~~~~~
|
||||
The **OC.Router** object
|
||||
|
||||
Notification
|
||||
~~~~~~~~~~~~
|
||||
The **OC.Notification** object
|
||||
|
||||
Utils
|
||||
~~~~~
|
||||
The **OC** object
|
||||
|
||||
_Request
|
||||
~~~~~~~~
|
||||
Used to perform AJAX requests.
|
||||
|
||||
@@ -23,3 +23,5 @@ Handles all the dependency injection, controllers and output flow
|
||||
|
||||
|
||||
Shortcut for calling a controller method and printing the result
|
||||
|
||||
|
||||
|
||||
@@ -109,3 +109,5 @@ Baseclass to inherit your controllers from
|
||||
|
||||
|
||||
Shortcut for rendering a JSON response
|
||||
|
||||
|
||||
|
||||
@@ -298,3 +298,5 @@ class and add your methods
|
||||
|
||||
|
||||
used to return and open a new eventsource
|
||||
|
||||
|
||||
|
||||
@@ -18,3 +18,5 @@ entry in the database
|
||||
|
||||
|
||||
Constructor
|
||||
|
||||
|
||||
|
||||
@@ -78,3 +78,5 @@ Entity
|
||||
|
||||
|
||||
Maps the keys of the row array to the attributes
|
||||
|
||||
|
||||
|
||||
@@ -77,3 +77,5 @@ may be subject to change in the future
|
||||
|
||||
|
||||
Runs an sql query
|
||||
|
||||
|
||||
|
||||
@@ -18,3 +18,5 @@ row
|
||||
|
||||
|
||||
Constructor
|
||||
|
||||
|
||||
|
||||
@@ -20,3 +20,5 @@ a dependency
|
||||
|
||||
|
||||
Put your class dependencies in here
|
||||
|
||||
|
||||
|
||||
@@ -20,3 +20,5 @@ Prompts the user to download the a file
|
||||
|
||||
|
||||
Creates a response that prompts the user to download the file
|
||||
|
||||
|
||||
|
||||
@@ -16,3 +16,5 @@ Pure hader response, Just return 403 status to the browser
|
||||
|
||||
|
||||
Creates a response that just returns 404 status
|
||||
|
||||
|
||||
|
||||
@@ -46,3 +46,5 @@ A renderer for JSON calls
|
||||
|
||||
|
||||
Returns the rendered json
|
||||
|
||||
|
||||
|
||||
@@ -16,3 +16,5 @@ Pure hader response, Just return 404 status to the browser
|
||||
|
||||
|
||||
Creates a response that just returns 404 status
|
||||
|
||||
|
||||
|
||||
@@ -23,3 +23,5 @@ Redirects to a different URL
|
||||
|
||||
:returns string: the url to redirect
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -126,3 +126,5 @@ Encapsulates $_GET, $_FILES and $_POST arrays for better testability
|
||||
|
||||
|
||||
Sets a session variable
|
||||
|
||||
|
||||
|
||||
@@ -38,3 +38,5 @@ Also used to just send headers
|
||||
|
||||
|
||||
Returns the set headers
|
||||
|
||||
|
||||
|
||||
@@ -95,3 +95,5 @@ Response for a normal template
|
||||
|
||||
|
||||
Returns the rendered html
|
||||
|
||||
|
||||
|
||||
@@ -27,3 +27,5 @@ Prompts the user to download the a textfile
|
||||
|
||||
|
||||
Simply sets the headers and returns the file contents
|
||||
|
||||
|
||||
|
||||
@@ -26,3 +26,5 @@ Just outputs text to the browser
|
||||
|
||||
|
||||
Simply sets the headers and returns the file contents
|
||||
|
||||
|
||||
|
||||
@@ -29,3 +29,5 @@ footer won't be included
|
||||
|
||||
|
||||
Returns the rendered result
|
||||
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@ AppFramework API
|
||||
db_doesnotexistexception
|
||||
db_multipleobjectsreturnedexception
|
||||
db_mapper
|
||||
db_entity
|
||||
dependencyinjection_dicontainer
|
||||
http_response
|
||||
http_downloadresponse
|
||||
@@ -30,6 +31,8 @@ AppFramework API
|
||||
middleware_security_securityexception
|
||||
middleware_twig_twigmiddleware
|
||||
utility_controllertestutility
|
||||
utility_mappertestutility
|
||||
utility_testutility
|
||||
utility_methodannotationreader
|
||||
|
||||
Main
|
||||
|
||||
@@ -58,3 +58,5 @@ https://docs.djangoproject.com/en/dev/topics/http/middleware/
|
||||
|
||||
This is being run after the response object has been rendered andallows the manipulation of the output.
|
||||
The middleware is run in reverse order
|
||||
|
||||
|
||||
|
||||
@@ -77,3 +77,5 @@ This class is used to store and run all the middleware in correct order
|
||||
|
||||
This is being run after the response object has been rendered andallows the manipulation of the output.
|
||||
The middleware is run in reverse order
|
||||
|
||||
|
||||
|
||||
@@ -24,3 +24,5 @@ Thrown when the security middleware encounters a security problem
|
||||
|
||||
|
||||
Used to check if a security exception occured in an ajax request
|
||||
|
||||
|
||||
|
||||
@@ -40,3 +40,5 @@ check fails
|
||||
|
||||
|
||||
If an SecurityException is being caught, ajax requests return a JSON errorresponse and non ajax requests redirect to the index
|
||||
|
||||
|
||||
|
||||
@@ -41,3 +41,5 @@ By default it is only loaded when the templatepath is set
|
||||
|
||||
|
||||
In case the output is not rendered as blank page, we need to include theowncloud header and output
|
||||
|
||||
|
||||
|
||||
@@ -46,3 +46,5 @@ Simple utility class for testing controllers
|
||||
|
||||
|
||||
Instead of using positional parameters this function instantiatesa request by using a hashmap so its easier to only set specific params
|
||||
|
||||
|
||||
|
||||
@@ -39,25 +39,4 @@ Simple utility class for testing mappers
|
||||
|
||||
|
||||
Create mocks and set expected results for database queries
|
||||
ArgumentIterator
|
||||
================
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.. php:namespace:: OCA\AppFramework\Utility
|
||||
.. php:class:: ArgumentIterator
|
||||
|
||||
|
||||
|
||||
|
||||
.. php:method:: __construct($arguments)
|
||||
|
||||
:param mixed $arguments:
|
||||
|
||||
|
||||
|
||||
.. php:method:: next()
|
||||
|
||||
|
||||
|
||||
@@ -25,3 +25,5 @@ Reads and parses annotations from doc comments
|
||||
|
||||
|
||||
Check if a method contains an annotation
|
||||
|
||||
|
||||
|
||||
@@ -22,3 +22,5 @@ Simple utility class for testing anything using an api
|
||||
|
||||
|
||||
Boilerplate function for getting an API Mock class
|
||||
|
||||
|
||||
|
||||
@@ -7,6 +7,8 @@ Your database layer should go into the **db/** folder. It's recommended to split
|
||||
|
||||
Getters and setters will automatically be created for all public attributes. Should it be required to use special setter or getters, simply create the method. Make sure to mark the field as updated though if it was set by passing the fieldname to the **markFieldUpdated()** method.
|
||||
|
||||
.. versionchanged:: 6.0 Instead of manually creating and mapping all the entities, this is is now done by extending a parent class.
|
||||
|
||||
:file:`db/item.php`
|
||||
|
||||
.. code-block:: php
|
||||
@@ -32,7 +34,9 @@ Getters and setters will automatically be created for all public attributes. Sho
|
||||
}
|
||||
|
||||
|
||||
All database queries for that object should be put into a mapper class. This follows the `data mapper pattern <http://www.martinfowler.com/eaaCatalog/dataMapper.html>`_.
|
||||
All database queries for that object should be put into a mapper class. This follows the `data mapper pattern <http://www.martinfowler.com/eaaCatalog/dataMapper.html>`_. Simply inherit the :php:class:`\\OCA\\AppFramework\\Db\\Mapper`
|
||||
|
||||
.. versionchanged:: 6.0: Methods from the old mapper have been removed and deprecated to allow a small ORM.
|
||||
|
||||
:file:`db/itemmapper.php`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user