mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 18:26:42 +07:00
developer_manual: Fix some typos (found by codespell)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
@@ -32,7 +32,7 @@ download of files, delete rename files and folders, etc.
|
||||
This library may be added to a project and seamlessly integrates any
|
||||
application with Nextcloud.
|
||||
|
||||
The tool needed is any IDE for Android prefered IDE at the moment is Android Studio.
|
||||
The tool needed is any IDE for Android preferred IDE at the moment is Android Studio.
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
@@ -30,7 +30,7 @@ The class for the above example would live in :file:`cron/sometask.php`. Try to
|
||||
|
||||
}
|
||||
|
||||
Dont forget to configure the cron service on the server by executing::
|
||||
Don't forget to configure the cron service on the server by executing::
|
||||
|
||||
sudo crontab -u http -e
|
||||
|
||||
|
||||
@@ -206,7 +206,7 @@ How does it affect the request lifecycle
|
||||
* If a **routes.php** file returns an array, but there is no **appname/lib/AppInfo/Application.php**, create a new \\OCP\\AppFramework\\App instance with the app id and register the routes on it
|
||||
|
||||
* A request is matched for the route, e.g. with the name **page#index**
|
||||
* The appropriate container is being queried for the entry PageController (to keep backwards compability)
|
||||
* The appropriate container is being queried for the entry PageController (to keep backwards compatibility)
|
||||
* If the entry does not exist, the container is queried for OCA\\AppName\\Controller\\PageController and if no entry exists, the container tries to create the class by using reflection on its constructor parameters
|
||||
|
||||
How does this affect controllers
|
||||
|
||||
@@ -177,7 +177,7 @@ Custom attribute to database column mapping
|
||||
|
||||
By default each attribute will be mapped to a database column by a certain convention, e.g. **phoneNumber**
|
||||
will be mapped to the column **phone_number** and vice versa. Sometimes it is needed though to map attributes to
|
||||
different columns because of backwards compability. To define a custom
|
||||
different columns because of backwards compatibility. To define a custom
|
||||
mapping, simply override the **columnToProperty** and **propertyToColumn** methods of the entity in question:
|
||||
|
||||
.. code-block:: php
|
||||
|
||||
@@ -110,7 +110,7 @@ This route calls the controller **OCA\\OwnNotes\\PageController->index()** metho
|
||||
|
||||
}
|
||||
|
||||
Since the route which returns the intial HTML has been taken care of, the controller which handles the AJAX requests for the notes needs to be set up. Create the following file: **ownnotes/lib/Controller/NoteController.php** with the following content:
|
||||
Since the route which returns the initial HTML has been taken care of, the controller which handles the AJAX requests for the notes needs to be set up. Create the following file: **ownnotes/lib/Controller/NoteController.php** with the following content:
|
||||
|
||||
.. code-block:: php
|
||||
|
||||
|
||||
@@ -120,7 +120,7 @@ Update a given share. Only one value can be updated per request.
|
||||
* PUT Arguments: publicUpload - (boolean) enable (true) /disable (false) public
|
||||
upload for public shares.
|
||||
* PUT Arguments: expireDate - (string) set a expire date for public link
|
||||
shares. This argument expects a well formated date string, e.g. 'YYYY-MM-DD'
|
||||
shares. This argument expects a well formatted date string, e.g. 'YYYY-MM-DD'
|
||||
|
||||
.. note:: Only one of the update parameters can be specified at once.
|
||||
|
||||
|
||||
@@ -317,7 +317,7 @@ Download a file
|
||||
|
||||
Download an existing file on the cloud server. The info needed is the server
|
||||
URL, path of the file on the server and localPath, path where the file will be
|
||||
stored on the device and a boolean to indicate if is neccesary to use LIFO queue or FIFO.
|
||||
stored on the device and a boolean to indicate if is necessary to use LIFO queue or FIFO.
|
||||
|
||||
Code example
|
||||
~~~~~~~~~~~~
|
||||
@@ -784,7 +784,7 @@ Check if file of folder is shared
|
||||
|
||||
Check if a specific file or folder is shared in your cloud server.
|
||||
|
||||
Teh info need is Path, your server URL and the Id of the item that you want.
|
||||
The info need is Path, your server URL and the Id of the item that you want.
|
||||
|
||||
|
||||
Before check an item, you have to read the shared items on the selected
|
||||
|
||||
Reference in New Issue
Block a user