fix build warnings

This commit is contained in:
Bernhard Posselt
2015-03-20 10:56:06 +01:00
parent 83773c360c
commit dcef8ef09a
4 changed files with 21 additions and 5 deletions

View File

@@ -16,6 +16,7 @@ Features
* There is a new :doc:`OCSResponse and OCSController <controllers>` which allows you to easily migrate OCS code to the App Framework. This was added purely for compatibility reasons and the preferred way of doing APIs is using a :doc:`api`
* You can now stream files in PHP by using the built in :doc:`StreamResponse <controllers>`.
* For more advanced usecases you can now implement the :doc:`CallbackResponse <controllers>` interface which allows your response to do its own response rendering
* In addition to passing an array of positional parameters using execute on a mapper method you can now :doc:`pass an associative array <database>` to use named parameters in SQL queries
Deprecations

View File

@@ -98,6 +98,17 @@ To create a mapper, inherit from the mapper baseclass and call the parent constr
return $row['count'];
}
public function authorNameCountNamedArguments($name) {
$sql = 'SELECT COUNT(*) AS `count` FROM `*PREFIX*myapp_authors` ' .
'WHERE `name` = :name';
$stmt = $this->execute($sql, [':name' => $name]);
$row = $stmt->fetch();
$stmt->closeCursor();
return $row['count'];
}
}
.. note:: The cursor is closed automatically for all **INSERT**, **DELETE**, **UPDATE** queries and when calling the methods **findOneQuery**, **findEntities**, **findEntity**, **delete**, **insert** and **update**. For custom calls using execute you should always close the cursor after you are done with the fetching to prevent database lock problems on SqLite

View File

@@ -30,6 +30,7 @@ The most important labels and their meaning:
* #p1-urgent #p2-high #p3-medium #p4-low signify the priority of the bug.
* #Junior Job - these are issues which are relatively easy to solve and ideal for people who want to learn how to code in ownCloud
* Tags showing the state of the issue or PR, numbered 1-6:
* #1 - Backlog - (please don't use, we prefer using a backlog milestone)
* #2 - Triaging - (please don't use, we prefer using the triage label)
* #3 - To develop - ready to start development on this
@@ -37,6 +38,7 @@ The most important labels and their meaning:
* #5 - To Review - ready for review
* #6 - Reviewing - review in progress
* #7 - To Release - reviewed PR that awaits unfreeze of a branch to get merged
* App tags: #app:files #app:user_ldap #app:files_encryption and so on. These tags indicate the app that is impacted by the issue or which the PR is related to
* settings tags: #settings:personal #settings:apps #settings:admin and so on. These tags indicate the settings area that is impacted by the issue or which the PR is related to
* db tags: #db:mysql #db:sqlite #db:postgresql and so on. These tags indicate the database that is impacted by the issue or which the PR is related to

View File

@@ -17,10 +17,12 @@ First `set up your web server and database <http://doc.owncloud.org/server/8.0/a
Get the source
==============
There are two ways to obtain ownCloud sources:
There are two ways to obtain ownCloud sources:
* Using the `stable version <http://doc.owncloud.org/server/8.0/admin_manual/#installation>`_
.. TODO ON RELEASE: Update version number above on release
* Using the development version from `GitHub`_ which will be explained below.
To check out the source from `GitHub`_ you will need to install git (see `Setting up git <https://help.github.com/articles/set-up-git>`_ from the GitHub help)
@@ -31,14 +33,14 @@ Gather information about server setup
To get started the basic git repositories need to cloned into the web server's directory. Depending on the distribution this will either be
* **/var/www**
* **/var/www/html**
* **/srv/http**
* **/var/www/html**
* **/srv/http**
Then identify the user and group the web server is running as and the Apache user and group for the **chown** command will either be
* **http**
* **www-data**
* **www-data**
* **apache**
* **wwwrun**
@@ -52,7 +54,7 @@ Install the `development tool <https://github.com/owncloud/ocdev/blob/master/REA
After the development tool installation make the directory writable::
sudo chmod o+rw /var/www
Then install ownCloud from git::
ocdev setup base