You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2015/05/27 22:06:54 UTC
svn commit: r1682113 [2/6] - in /cordova/site: public/
public/announcements/2015/05/ public/announcements/2015/05/26/ public/blog/
public/docs/de/edge/ public/docs/en/edge/ public/docs/zh/3.5.0/
public/docs/zh/edge/ public/docs/zh/edge/img/guide/platfo...
Added: cordova/site/public/docs/de/edge/cordova_storage_sqlresultset_sqlresultset.md.html
URL: http://svn.apache.org/viewvc/cordova/site/public/docs/de/edge/cordova_storage_sqlresultset_sqlresultset.md.html?rev=1682113&view=auto
==============================================================================
--- cordova/site/public/docs/de/edge/cordova_storage_sqlresultset_sqlresultset.md.html (added)
+++ cordova/site/public/docs/de/edge/cordova_storage_sqlresultset_sqlresultset.md.html Wed May 27 20:06:53 2015
@@ -0,0 +1,297 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width">
+ <meta name="generator" content="joDoc"><meta name="robots" label="noindex">
+
+ <title>Apache Cordova API Documentation</title>
+
+ <link rel="stylesheet" type="text/css" href="index.css">
+ <link rel="stylesheet" type="text/css" href="mobile.css" media="only screen and (max-device-width: 1024px)">
+ <link rel="stylesheet" type="text/css" href="prettify/prettify.css">
+ </head>
+ <body>
+ <div id="header">
+ <h1><a href="index.html">Apache <strong>Cordova</strong> Documentation</a></h1>
+ <small>
+ <select><optgroup label="Chinese" value="zh">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="English" value="en">
+<option value="edge">edge</option>
+<option value="5.0.0">5.0.0</option>
+<option value="4.0.0">4.0.0</option>
+<option value="3.6.0">3.6.0</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.3.0">3.3.0</option>
+<option value="3.2.0">3.2.0</option>
+<option value="3.1.0">3.1.0</option>
+<option value="3.0.0">3.0.0</option>
+<option value="2.9.0">2.9.0</option>
+<option value="2.8.0">2.8.0</option>
+<option value="2.7.0">2.7.0</option>
+<option value="2.6.0">2.6.0</option>
+<option value="2.5.0">2.5.0</option>
+<option value="2.4.0">2.4.0</option>
+<option value="2.3.0">2.3.0</option>
+<option value="2.2.0">2.2.0</option>
+<option value="2.1.0">2.1.0</option>
+<option value="2.0.0">2.0.0</option>
+<option value="1.9.0">1.9.0</option>
+<option value="1.8.1">1.8.1</option>
+<option value="1.8.0">1.8.0</option>
+<option value="1.7.0">1.7.0</option>
+<option value="1.6.1">1.6.1</option>
+<option value="1.6.0">1.6.0</option>
+<option value="1.5.0">1.5.0</option>
+</optgroup>
+<optgroup label="French" value="fr">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="German" value="de">
+<option selected="selected" value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Italian" value="it">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Japanese" value="ja">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+<option value="2.2.0">2.2.0</option>
+<option value="2.1.0">2.1.0</option>
+<option value="2.0.0">2.0.0</option>
+<option value="1.9.0">1.9.0</option>
+<option value="1.8.1">1.8.1</option>
+<option value="1.7.0">1.7.0</option>
+</optgroup>
+<optgroup label="Korean" value="ko">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+<option value="2.0.0">2.0.0</option>
+</optgroup>
+<optgroup label="Polish" value="pl">
+<option value="edge">edge</option>
+</optgroup>
+<optgroup label="Russian" value="ru">
+<option value="edge">edge</option>
+<option value="5.0.0">5.0.0</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Slovenian" value="sl">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+</optgroup>
+<optgroup label="Spanish" value="es">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+</select>
+ </small>
+ </div>
+ <div id="subheader">
+ <h1>SQLResultSet</h1>
+ <small><select><option value="SQLResultSet">SQLResultSet</option><option value="SQLResultSet_eigenschaften">      - Eigenschaften</option><option value="SQLResultSet_informationen">      - Informationen</option><option value="SQLResultSet_unterst_tzte_plattformen">      - Unterstützte Plattformen</option><option value="SQLResultSet_f_hren_sie_sql_schnelles_beispiel">      - Führen Sie SQL-schnelles-Beispiel</option><option value="SQLResultSet_vollst_ndiges_beispiel">      - Vollständiges Beispiel</option></select></small>
+ </div>
+
+ <div id="sidebar">
+ <div class="vertical_divider"></div>
+ <h1>
+ Reiseführer
+ </h1>
+<ul>
+<li><a href="guide_overview_index.md.html#%C3%9Cbersicht">Übersicht</a></li>
+<li><a href="guide_support_index.md.html#Plattformunterst%C3%BCtzung">Plattformunterstützung</a></li>
+<li><a href="guide_cli_index.md.html#Die%20Befehlszeilenschnittstelle">Die Befehlszeilenschnittstelle</a></li>
+<li><a href="guide_platforms_index.md.html#Plattform-Guides">Plattform-Guides</a></li>
+<li><a href="plugin_ref_plugman.md.html#Plugins%20verwalten%20mithilfe%20Plugman">Plugins verwalten mithilfe Plugman</a></li>
+<li><a href="config_ref_index.md.html#Die%20Datei%20config.xml">Die Datei config.xml</a></li>
+<li><a href="config_ref_images.md.html#Symbole%20und%20Splash-Screens">Symbole und Splash-Screens</a></li>
+<li><a href="guide_hybrid_webviews_index.md.html#Einbetten%20von%20Webansichten%20f%C3%BCr">Einbetten von Webansichten für</a></li>
+<li><a href="guide_hybrid_plugins_index.md.html#Plugin-Entwicklung-Guide">Plugin-Entwicklung-Guide</a></li>
+<li><a href="guide_appdev_privacy_index.md.html#Datenschutz-Guide">Datenschutz-Guide</a></li>
+<li><a href="guide_appdev_security_index.md.html#Sicherheitshandbuch">Sicherheitshandbuch</a></li>
+<li><a href="guide_appdev_whitelist_index.md.html#Whitelist-Guide">Whitelist-Guide</a></li>
+<li><a href="cordova_storage_storage.md.html#Speicher">Speicher</a></li>
+<li><a href="guide_next_index.md.html#Die%20n%C3%A4chsten%20Schritte">Die nächsten Schritte</a></li>
+<li><a href="_index.html">Stichwort-Index</a></li>
+</ul>
+<h1>
+ -API-Referenz
+ </h1>
+<ul>
+<li><a href="cordova_events_events.md.html#Veranstaltungen">Veranstaltungen</a></li>
+<li><a href="cordova_plugins_pluginapis.md.html#Plugin%20APIs">Plugin APIs</a></li>
+</ul>
+</div>
+
+ <div id="scrollable">
+ <div id="content">
+ <h1><a name="SQLResultSet">SQLResultSet</a></h1>
+<p>Wenn eine <code><a href="cordova_storage_sqltransaction_sqltransaction.md.html#SQLTransaction">SQLTransaction</a></code> des Objekts <code>executeSql</code> -Methode wird aufgerufen, der angegebene Rückruf führt mit einem <code><a href="cordova_storage_sqlresultset_sqlresultset.md.html#SQLResultSet">SQLResultSet</a></code> Parameter.</p>
+<h2 id="eigenschaften"><a name="SQLResultSet_eigenschaften">Eigenschaften</a></h2>
+<ul>
+<li><p><strong>InsertId</strong>: die Zeilen-ID der Zeile, die die <code><a href="cordova_storage_sqlresultset_sqlresultset.md.html#SQLResultSet">SQLResultSet</a></code> des Objekts-SQL-Anweisung, die in die <a href="cordova_storage_database_database.md.html#Datenbank">Datenbank</a> eingefügt.</p>
+</li>
+<li><p><strong>RowsAffected</strong>: die Anzahl der Zeilen geändert werden, indem die SQL-Anweisung, die 0 (null), wenn die Anweisung keine Zeilen nicht ausgewirkt hat.</p>
+</li>
+<li><p><strong>Zeilen</strong>: eine <code><a href="cordova_storage_sqlresultsetrowlist_sqlresultsetrowlist.md.html#SQLResultSetRowList">SQLResultSetRowList</a></code> , die die zurückgegebenen Zeilen darstellen, empty, wenn keine Zeilen zurückgegeben werden.</p>
+</li>
+</ul>
+<h2 id="informationen"><a name="SQLResultSet_informationen">Informationen</a></h2>
+<p>Wenn eine <code><a href="cordova_storage_sqltransaction_sqltransaction.md.html#SQLTransaction">SQLTransaction</a></code> des Objekts <code>executeSql</code> -Methode wird aufgerufen, der angegebene Rückruf führt mit einer <code><a href="cordova_storage_sqlresultset_sqlresultset.md.html#SQLResultSet">SQLResultSet</a></code> Parameter mit den drei Eigenschaften:</p>
+<ul>
+<li><p>Die <code>insertId</code> gibt die Zeilennummer einer successly SQL-Einfügung-Anweisung zurück. Wenn die SQL keine Zeilen einfügen wird die <code>insertId</code> nicht festgelegt.</p>
+</li>
+<li><p>Die <code>rowsAffected</code> ist immer <code>` für ein SQL</code>select<code>Anweisung. Für</code>insert<code>oder</code>update` es die Anzahl der gibt Anweisungen geänderter Zeilen.</p>
+</li>
+<li><p>Finale <code>SQLResultSetList</code> enthält die Daten aus einer SQL-select-Anweisung zurückgegeben.</p>
+</li>
+</ul>
+<h2 id="unterst-tzte-plattformen"><a name="SQLResultSet_unterst_tzte_plattformen">Unterstützte Plattformen</a></h2>
+<ul>
+<li>Android</li>
+<li>BlackBerry WebWorks (OS 6.0 und höher)</li>
+<li>iOS</li>
+<li>Tizen</li>
+</ul>
+<h2 id="f-hren-sie-sql-schnelles-beispiel"><a name="SQLResultSet_f_hren_sie_sql_schnelles_beispiel">Führen Sie SQL-schnelles-Beispiel</a></h2>
+<pre class="prettyprint"><code>function queryDB(tx) {
+ tx.executeSql('SELECT * FROM DEMO', [], querySuccess, errorCB);
+}
+
+function querySuccess(tx, results) {
+ console.log("Returned rows = " + results.rows.length);
+ // this will be true since it was a select statement and so rowsAffected was 0
+ if (!results.rowsAffected) {
+ console.log('No rows affected!');
+ return false;
+ }
+ // for an insert statement, this property will return the ID of the last inserted row
+ console.log("Last inserted row ID = " + results.insertId);
+}
+
+function errorCB(err) {
+ alert("Error processing SQL: "+err.code);
+}
+
+var db = window.<a href="cordova_storage_storage.opendatabase.md.html#openDatabase">openDatabase</a>("Database", "1.0", "Cordova Demo", 200000);
+db.transaction(queryDB, errorCB);
+</code></pre><h2 id="vollst-ndiges-beispiel"><a name="SQLResultSet_vollst_ndiges_beispiel">Vollständiges Beispiel</a></h2>
+<pre class="prettyprint"><code><!DOCTYPE html>
+<html>
+ <head>
+ <title>Storage Example</title>
+
+ <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+ <script type="text/javascript" charset="utf-8">
+
+ // Wait for device API libraries to load
+ //
+ document.addEventListener("<a href="cordova_events_events.md.html#deviceready">deviceready</a>", onDeviceReady, false);
+
+ // Populate the database
+ //
+ function populateDB(tx) {
+ tx.executeSql('DROP TABLE IF EXISTS DEMO');
+ tx.executeSql('CREATE TABLE IF NOT EXISTS DEMO (id unique, data)');
+ tx.executeSql('INSERT INTO DEMO (id, data) VALUES (1, "First row")');
+ tx.executeSql('INSERT INTO DEMO (id, data) VALUES (2, "Second row")');
+ }
+
+ // Query the database
+ //
+ function queryDB(tx) {
+ tx.executeSql('SELECT * FROM DEMO', [], querySuccess, errorCB);
+ }
+
+ // Query the success callback
+ //
+ function querySuccess(tx, results) {
+ console.log("Returned rows = " + results.rows.length);
+ // this will be true since it was a select statement and so rowsAffected was 0
+ if (!results.rowsAffected) {
+ console.log('No rows affected!');
+ return false;
+ }
+ // for an insert statement, this property will return the ID of the last inserted row
+ console.log("Last inserted row ID = " + results.insertId);
+ }
+
+ // Transaction error callback
+ //
+ function errorCB(err) {
+ console.log("Error processing SQL: "+err.code);
+ }
+
+ // Transaction success callback
+ //
+ function successCB() {
+ var db = window.<a href="cordova_storage_storage.opendatabase.md.html#openDatabase">openDatabase</a>("Database", "1.0", "Cordova Demo", 200000);
+ db.transaction(queryDB, errorCB);
+ }
+
+ // device APIs are available
+ //
+ function onDeviceReady() {
+ var db = window.<a href="cordova_storage_storage.opendatabase.md.html#openDatabase">openDatabase</a>("Database", "1.0", "Cordova Demo", 200000);
+ db.transaction(populateDB, errorCB, successCB);
+ }
+
+ </script>
+ </head>
+ <body>
+ <h1>Example</h1>
+ <p>Database</p>
+ </body>
+</html>
+</code></pre>
+ </div>
+ </div>
+
+ <!-- Functionality and Syntax Highlighting -->
+ <script type="text/javascript" src="index.js"></script>
+ <script type="text/javascript" src="prettify/prettify.js"></script>
+ </body>
+</html>
Added: cordova/site/public/docs/de/edge/cordova_storage_sqlresultsetrowlist_sqlresultsetrowlist.md.html
URL: http://svn.apache.org/viewvc/cordova/site/public/docs/de/edge/cordova_storage_sqlresultsetrowlist_sqlresultsetrowlist.md.html?rev=1682113&view=auto
==============================================================================
--- cordova/site/public/docs/de/edge/cordova_storage_sqlresultsetrowlist_sqlresultsetrowlist.md.html (added)
+++ cordova/site/public/docs/de/edge/cordova_storage_sqlresultsetrowlist_sqlresultsetrowlist.md.html Wed May 27 20:06:53 2015
@@ -0,0 +1,282 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width">
+ <meta name="generator" content="joDoc"><meta name="robots" label="noindex">
+
+ <title>Apache Cordova API Documentation</title>
+
+ <link rel="stylesheet" type="text/css" href="index.css">
+ <link rel="stylesheet" type="text/css" href="mobile.css" media="only screen and (max-device-width: 1024px)">
+ <link rel="stylesheet" type="text/css" href="prettify/prettify.css">
+ </head>
+ <body>
+ <div id="header">
+ <h1><a href="index.html">Apache <strong>Cordova</strong> Documentation</a></h1>
+ <small>
+ <select><optgroup label="Chinese" value="zh">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="English" value="en">
+<option value="edge">edge</option>
+<option value="5.0.0">5.0.0</option>
+<option value="4.0.0">4.0.0</option>
+<option value="3.6.0">3.6.0</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.3.0">3.3.0</option>
+<option value="3.2.0">3.2.0</option>
+<option value="3.1.0">3.1.0</option>
+<option value="3.0.0">3.0.0</option>
+<option value="2.9.0">2.9.0</option>
+<option value="2.8.0">2.8.0</option>
+<option value="2.7.0">2.7.0</option>
+<option value="2.6.0">2.6.0</option>
+<option value="2.5.0">2.5.0</option>
+<option value="2.4.0">2.4.0</option>
+<option value="2.3.0">2.3.0</option>
+<option value="2.2.0">2.2.0</option>
+<option value="2.1.0">2.1.0</option>
+<option value="2.0.0">2.0.0</option>
+<option value="1.9.0">1.9.0</option>
+<option value="1.8.1">1.8.1</option>
+<option value="1.8.0">1.8.0</option>
+<option value="1.7.0">1.7.0</option>
+<option value="1.6.1">1.6.1</option>
+<option value="1.6.0">1.6.0</option>
+<option value="1.5.0">1.5.0</option>
+</optgroup>
+<optgroup label="French" value="fr">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="German" value="de">
+<option selected="selected" value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Italian" value="it">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Japanese" value="ja">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+<option value="2.2.0">2.2.0</option>
+<option value="2.1.0">2.1.0</option>
+<option value="2.0.0">2.0.0</option>
+<option value="1.9.0">1.9.0</option>
+<option value="1.8.1">1.8.1</option>
+<option value="1.7.0">1.7.0</option>
+</optgroup>
+<optgroup label="Korean" value="ko">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+<option value="2.0.0">2.0.0</option>
+</optgroup>
+<optgroup label="Polish" value="pl">
+<option value="edge">edge</option>
+</optgroup>
+<optgroup label="Russian" value="ru">
+<option value="edge">edge</option>
+<option value="5.0.0">5.0.0</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Slovenian" value="sl">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+</optgroup>
+<optgroup label="Spanish" value="es">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+</select>
+ </small>
+ </div>
+ <div id="subheader">
+ <h1>SQLResultSetRowList</h1>
+ <small><select><option value="SQLResultSetRowList">SQLResultSetRowList</option><option value="SQLResultSetRowList_eigenschaften">      - Eigenschaften</option><option value="SQLResultSetRowList_methoden">      - Methoden</option><option value="SQLResultSetRowList_informationen">      - Informationen</option><option value="SQLResultSetRowList_unterst_tzte_plattformen">      - Unterstützte Plattformen</option><option value="SQLResultSetRowList_f_hren_sie_sql_schnelles_beispiel">      - Führen Sie SQL-schnelles-Beispiel</option><option value="SQLResultSetRowList_vollst_ndiges_beispiel">      - Vollständiges Beispiel</option></select></small>
+ </div>
+
+ <div id="sidebar">
+ <div class="vertical_divider"></div>
+ <h1>
+ Reiseführer
+ </h1>
+<ul>
+<li><a href="guide_overview_index.md.html#%C3%9Cbersicht">Übersicht</a></li>
+<li><a href="guide_support_index.md.html#Plattformunterst%C3%BCtzung">Plattformunterstützung</a></li>
+<li><a href="guide_cli_index.md.html#Die%20Befehlszeilenschnittstelle">Die Befehlszeilenschnittstelle</a></li>
+<li><a href="guide_platforms_index.md.html#Plattform-Guides">Plattform-Guides</a></li>
+<li><a href="plugin_ref_plugman.md.html#Plugins%20verwalten%20mithilfe%20Plugman">Plugins verwalten mithilfe Plugman</a></li>
+<li><a href="config_ref_index.md.html#Die%20Datei%20config.xml">Die Datei config.xml</a></li>
+<li><a href="config_ref_images.md.html#Symbole%20und%20Splash-Screens">Symbole und Splash-Screens</a></li>
+<li><a href="guide_hybrid_webviews_index.md.html#Einbetten%20von%20Webansichten%20f%C3%BCr">Einbetten von Webansichten für</a></li>
+<li><a href="guide_hybrid_plugins_index.md.html#Plugin-Entwicklung-Guide">Plugin-Entwicklung-Guide</a></li>
+<li><a href="guide_appdev_privacy_index.md.html#Datenschutz-Guide">Datenschutz-Guide</a></li>
+<li><a href="guide_appdev_security_index.md.html#Sicherheitshandbuch">Sicherheitshandbuch</a></li>
+<li><a href="guide_appdev_whitelist_index.md.html#Whitelist-Guide">Whitelist-Guide</a></li>
+<li><a href="cordova_storage_storage.md.html#Speicher">Speicher</a></li>
+<li><a href="guide_next_index.md.html#Die%20n%C3%A4chsten%20Schritte">Die nächsten Schritte</a></li>
+<li><a href="_index.html">Stichwort-Index</a></li>
+</ul>
+<h1>
+ -API-Referenz
+ </h1>
+<ul>
+<li><a href="cordova_events_events.md.html#Veranstaltungen">Veranstaltungen</a></li>
+<li><a href="cordova_plugins_pluginapis.md.html#Plugin%20APIs">Plugin APIs</a></li>
+</ul>
+</div>
+
+ <div id="scrollable">
+ <div id="content">
+ <h1><a name="SQLResultSetRowList">SQLResultSetRowList</a></h1>
+<p>Eine der Eigenschaften von den <code><a href="cordova_storage_sqlresultset_sqlresultset.md.html#SQLResultSet">SQLResultSet</a></code> mit den Zeilen aus einer SQL-Abfrage zurückgegeben.</p>
+<h2 id="eigenschaften"><a name="SQLResultSetRowList_eigenschaften">Eigenschaften</a></h2>
+<ul>
+<li><strong>Länge</strong>: die Anzahl der Zeilen, die von der SQL-Abfrage zurückgegeben.</li>
+</ul>
+<h2 id="methoden"><a name="SQLResultSetRowList_methoden">Methoden</a></h2>
+<ul>
+<li><strong>Element</strong>: liefert die Zeile am angegebenen Index durch ein JavaScript-Objekt dargestellt.</li>
+</ul>
+<h2 id="informationen"><a name="SQLResultSetRowList_informationen">Informationen</a></h2>
+<p>Die <code><a href="cordova_storage_sqlresultsetrowlist_sqlresultsetrowlist.md.html#SQLResultSetRowList">SQLResultSetRowList</a></code> enthält die Daten aus einer SQL zurückgegeben <code>select</code> Anweisung. Das Objekt enthält eine <code>length</code> Eigenschaft, die angibt, wie viele Zeilen der <code>select</code> Anweisung zurückgegeben. Um eine Zeile mit Daten abzurufen, rufen Sie die <code>item</code> -Methode, um einen Index angeben. Es gibt eine JavaScript <code>Object</code> deren Eigenschaften sind die Datenbankspalten der <code>select</code> Anweisung ausgeführt wurde.</p>
+<h2 id="unterst-tzte-plattformen"><a name="SQLResultSetRowList_unterst_tzte_plattformen">Unterstützte Plattformen</a></h2>
+<ul>
+<li>Android</li>
+<li>BlackBerry WebWorks (OS 6.0 und höher)</li>
+<li>iOS</li>
+<li>Tizen</li>
+</ul>
+<h2 id="f-hren-sie-sql-schnelles-beispiel"><a name="SQLResultSetRowList_f_hren_sie_sql_schnelles_beispiel">Führen Sie SQL-schnelles-Beispiel</a></h2>
+<pre class="prettyprint"><code>function queryDB(tx) {
+ tx.executeSql('SELECT * FROM DEMO', [], querySuccess, errorCB);
+}
+
+function querySuccess(tx, results) {
+ var len = results.rows.length;
+ console.log("DEMO table: " + len + " rows found.");
+ for (var i=0; i<len; i++){
+ console.log("Row = " + i + " ID = " + results.rows.item(i).id + " Data = " + results.rows.item(i).data);
+ }
+ }
+
+ function errorCB(err) {
+ alert("Error processing SQL: "+err.code);
+ }
+
+ var db = window.<a href="cordova_storage_storage.opendatabase.md.html#openDatabase">openDatabase</a>("Database", "1.0", "Cordova Demo", 200000);
+ db.transaction(queryDB, errorCB);
+</code></pre><h2 id="vollst-ndiges-beispiel"><a name="SQLResultSetRowList_vollst_ndiges_beispiel">Vollständiges Beispiel</a></h2>
+<pre class="prettyprint"><code><!DOCTYPE html>
+<html>
+ <head>
+ <title>Storage Example</title>
+
+ <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+ <script type="text/javascript" charset="utf-8">
+
+ // Wait for device API libraries to load
+ //
+ document.addEventListener("<a href="cordova_events_events.md.html#deviceready">deviceready</a>", onDeviceReady, false);
+
+ // Populate the database
+ //
+ function populateDB(tx) {
+ tx.executeSql('DROP TABLE IF EXISTS DEMO');
+ tx.executeSql('CREATE TABLE IF NOT EXISTS DEMO (id unique, data)');
+ tx.executeSql('INSERT INTO DEMO (id, data) VALUES (1, "First row")');
+ tx.executeSql('INSERT INTO DEMO (id, data) VALUES (2, "Second row")');
+ }
+
+ // Query the database
+ //
+ function queryDB(tx) {
+ tx.executeSql('SELECT * FROM DEMO', [], querySuccess, errorCB);
+ }
+
+ // Query the success callback
+ //
+ function querySuccess(tx, results) {
+ var len = results.rows.length;
+ console.log("DEMO table: " + len + " rows found.");
+ for (var i=0; i<len; i++){
+ console.log("Row = " + i + " ID = " + results.rows.item(i).id + " Data = " + results.rows.item(i).data);
+ }
+ }
+
+ // Transaction error callback
+ //
+ function errorCB(err) {
+ console.log("Error processing SQL: "+err.code);
+ }
+
+ // Transaction success callback
+ //
+ function successCB() {
+ var db = window.<a href="cordova_storage_storage.opendatabase.md.html#openDatabase">openDatabase</a>("Database", "1.0", "Cordova Demo", 200000);
+ db.transaction(queryDB, errorCB);
+ }
+
+ // device APIs are available
+ //
+ function onDeviceReady() {
+ var db = window.<a href="cordova_storage_storage.opendatabase.md.html#openDatabase">openDatabase</a>("Database", "1.0", "Cordova Demo", 200000);
+ db.transaction(populateDB, errorCB, successCB);
+ }
+
+ </script>
+ </head>
+ <body>
+ <h1>Example</h1>
+ <p>Database</p>
+ </body>
+</html>
+</code></pre>
+ </div>
+ </div>
+
+ <!-- Functionality and Syntax Highlighting -->
+ <script type="text/javascript" src="index.js"></script>
+ <script type="text/javascript" src="prettify/prettify.js"></script>
+ </body>
+</html>
Added: cordova/site/public/docs/de/edge/cordova_storage_sqltransaction_sqltransaction.md.html
URL: http://svn.apache.org/viewvc/cordova/site/public/docs/de/edge/cordova_storage_sqltransaction_sqltransaction.md.html?rev=1682113&view=auto
==============================================================================
--- cordova/site/public/docs/de/edge/cordova_storage_sqltransaction_sqltransaction.md.html (added)
+++ cordova/site/public/docs/de/edge/cordova_storage_sqltransaction_sqltransaction.md.html Wed May 27 20:06:53 2015
@@ -0,0 +1,260 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width">
+ <meta name="generator" content="joDoc"><meta name="robots" label="noindex">
+
+ <title>Apache Cordova API Documentation</title>
+
+ <link rel="stylesheet" type="text/css" href="index.css">
+ <link rel="stylesheet" type="text/css" href="mobile.css" media="only screen and (max-device-width: 1024px)">
+ <link rel="stylesheet" type="text/css" href="prettify/prettify.css">
+ </head>
+ <body>
+ <div id="header">
+ <h1><a href="index.html">Apache <strong>Cordova</strong> Documentation</a></h1>
+ <small>
+ <select><optgroup label="Chinese" value="zh">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="English" value="en">
+<option value="edge">edge</option>
+<option value="5.0.0">5.0.0</option>
+<option value="4.0.0">4.0.0</option>
+<option value="3.6.0">3.6.0</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.3.0">3.3.0</option>
+<option value="3.2.0">3.2.0</option>
+<option value="3.1.0">3.1.0</option>
+<option value="3.0.0">3.0.0</option>
+<option value="2.9.0">2.9.0</option>
+<option value="2.8.0">2.8.0</option>
+<option value="2.7.0">2.7.0</option>
+<option value="2.6.0">2.6.0</option>
+<option value="2.5.0">2.5.0</option>
+<option value="2.4.0">2.4.0</option>
+<option value="2.3.0">2.3.0</option>
+<option value="2.2.0">2.2.0</option>
+<option value="2.1.0">2.1.0</option>
+<option value="2.0.0">2.0.0</option>
+<option value="1.9.0">1.9.0</option>
+<option value="1.8.1">1.8.1</option>
+<option value="1.8.0">1.8.0</option>
+<option value="1.7.0">1.7.0</option>
+<option value="1.6.1">1.6.1</option>
+<option value="1.6.0">1.6.0</option>
+<option value="1.5.0">1.5.0</option>
+</optgroup>
+<optgroup label="French" value="fr">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="German" value="de">
+<option selected="selected" value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Italian" value="it">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Japanese" value="ja">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+<option value="2.2.0">2.2.0</option>
+<option value="2.1.0">2.1.0</option>
+<option value="2.0.0">2.0.0</option>
+<option value="1.9.0">1.9.0</option>
+<option value="1.8.1">1.8.1</option>
+<option value="1.7.0">1.7.0</option>
+</optgroup>
+<optgroup label="Korean" value="ko">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+<option value="2.0.0">2.0.0</option>
+</optgroup>
+<optgroup label="Polish" value="pl">
+<option value="edge">edge</option>
+</optgroup>
+<optgroup label="Russian" value="ru">
+<option value="edge">edge</option>
+<option value="5.0.0">5.0.0</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Slovenian" value="sl">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+</optgroup>
+<optgroup label="Spanish" value="es">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+</select>
+ </small>
+ </div>
+ <div id="subheader">
+ <h1>SQLTransaction</h1>
+ <small><select><option value="SQLTransaction">SQLTransaction</option><option value="SQLTransaction_methoden">      - Methoden</option><option value="SQLTransaction_informationen">      - Informationen</option><option value="SQLTransaction_unterst_tzte_plattformen">      - Unterstützte Plattformen</option><option value="SQLTransaction_f_hren_sie_sql_schnelles_beispiel">      - Führen Sie SQL-schnelles-Beispiel</option><option value="SQLTransaction_vollst_ndiges_beispiel">      - Vollständiges Beispiel</option></select></small>
+ </div>
+
+ <div id="sidebar">
+ <div class="vertical_divider"></div>
+ <h1>
+ Reiseführer
+ </h1>
+<ul>
+<li><a href="guide_overview_index.md.html#%C3%9Cbersicht">Übersicht</a></li>
+<li><a href="guide_support_index.md.html#Plattformunterst%C3%BCtzung">Plattformunterstützung</a></li>
+<li><a href="guide_cli_index.md.html#Die%20Befehlszeilenschnittstelle">Die Befehlszeilenschnittstelle</a></li>
+<li><a href="guide_platforms_index.md.html#Plattform-Guides">Plattform-Guides</a></li>
+<li><a href="plugin_ref_plugman.md.html#Plugins%20verwalten%20mithilfe%20Plugman">Plugins verwalten mithilfe Plugman</a></li>
+<li><a href="config_ref_index.md.html#Die%20Datei%20config.xml">Die Datei config.xml</a></li>
+<li><a href="config_ref_images.md.html#Symbole%20und%20Splash-Screens">Symbole und Splash-Screens</a></li>
+<li><a href="guide_hybrid_webviews_index.md.html#Einbetten%20von%20Webansichten%20f%C3%BCr">Einbetten von Webansichten für</a></li>
+<li><a href="guide_hybrid_plugins_index.md.html#Plugin-Entwicklung-Guide">Plugin-Entwicklung-Guide</a></li>
+<li><a href="guide_appdev_privacy_index.md.html#Datenschutz-Guide">Datenschutz-Guide</a></li>
+<li><a href="guide_appdev_security_index.md.html#Sicherheitshandbuch">Sicherheitshandbuch</a></li>
+<li><a href="guide_appdev_whitelist_index.md.html#Whitelist-Guide">Whitelist-Guide</a></li>
+<li><a href="cordova_storage_storage.md.html#Speicher">Speicher</a></li>
+<li><a href="guide_next_index.md.html#Die%20n%C3%A4chsten%20Schritte">Die nächsten Schritte</a></li>
+<li><a href="_index.html">Stichwort-Index</a></li>
+</ul>
+<h1>
+ -API-Referenz
+ </h1>
+<ul>
+<li><a href="cordova_events_events.md.html#Veranstaltungen">Veranstaltungen</a></li>
+<li><a href="cordova_plugins_pluginapis.md.html#Plugin%20APIs">Plugin APIs</a></li>
+</ul>
+</div>
+
+ <div id="scrollable">
+ <div id="content">
+ <h1><a name="SQLTransaction">SQLTransaction</a></h1>
+<p>Ermöglicht die Ausführung von SQL-Anweisungen für die <a href="cordova_storage_database_database.md.html#Datenbank">Datenbank</a>.</p>
+<h2 id="methoden"><a name="SQLTransaction_methoden">Methoden</a></h2>
+<ul>
+<li><strong>ExecuteSql</strong>: führt eine SQL­Anweisung.</li>
+</ul>
+<h2 id="informationen"><a name="SQLTransaction_informationen">Informationen</a></h2>
+<p>Aufrufen einer <code>Database</code> -Methode des Objekts Transaktion, Pässe ein <code><a href="cordova_storage_sqltransaction_sqltransaction.md.html#SQLTransaction">SQLTransaction</a></code> Objekt, das die angegebene Callback-Methode.</p>
+<h2 id="unterst-tzte-plattformen"><a name="SQLTransaction_unterst_tzte_plattformen">Unterstützte Plattformen</a></h2>
+<ul>
+<li>Android</li>
+<li>BlackBerry WebWorks (OS 6.0 und höher)</li>
+<li>iOS</li>
+<li>Tizen</li>
+</ul>
+<h2 id="f-hren-sie-sql-schnelles-beispiel"><a name="SQLTransaction_f_hren_sie_sql_schnelles_beispiel">Führen Sie SQL-schnelles-Beispiel</a></h2>
+<pre class="prettyprint"><code>function populateDB(tx) {
+ tx.executeSql('DROP TABLE IF EXISTS DEMO');
+ tx.executeSql('CREATE TABLE IF NOT EXISTS DEMO (id unique, data)');
+ tx.executeSql('INSERT INTO DEMO (id, data) VALUES (1, "First row")');
+ tx.executeSql('INSERT INTO DEMO (id, data) VALUES (2, "Second row")');
+}
+
+function errorCB(err) {
+ alert("Error processing SQL: "+err);
+}
+
+function successCB() {
+ alert("success!");
+}
+
+var db = window.<a href="cordova_storage_storage.opendatabase.md.html#openDatabase">openDatabase</a>("Database", "1.0", "Cordova Demo", 200000);
+db.transaction(populateDB, errorCB, successCB);
+</code></pre><h2 id="vollst-ndiges-beispiel"><a name="SQLTransaction_vollst_ndiges_beispiel">Vollständiges Beispiel</a></h2>
+<pre class="prettyprint"><code><!DOCTYPE html>
+<html>
+ <head>
+ <title>Storage Example</title>
+
+ <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+ <script type="text/javascript" charset="utf-8">
+
+ // Wait for device API libraries to load
+ //
+ document.addEventListener("<a href="cordova_events_events.md.html#deviceready">deviceready</a>", onDeviceReady, false);
+
+ // device APIs are available
+ //
+ function onDeviceReady() {
+ var db = window.<a href="cordova_storage_storage.opendatabase.md.html#openDatabase">openDatabase</a>("Database", "1.0", "Cordova Demo", 200000);
+ db.transaction(populateDB, errorCB, successCB);
+ }
+
+ // Populate the database
+ //
+ function populateDB(tx) {
+ tx.executeSql('DROP TABLE IF EXISTS DEMO');
+ tx.executeSql('CREATE TABLE IF NOT EXISTS DEMO (id unique, data)');
+ tx.executeSql('INSERT INTO DEMO (id, data) VALUES (1, "First row")');
+ tx.executeSql('INSERT INTO DEMO (id, data) VALUES (2, "Second row")');
+ }
+
+ // Transaction error callback
+ //
+ function errorCB(err) {
+ alert("Error processing SQL: "+err);
+ }
+
+ // Transaction success callback
+ //
+ function successCB() {
+ alert("success!");
+ }
+
+ </script>
+ </head>
+ <body>
+ <h1>Example</h1>
+ <p><a href="cordova_storage_sqltransaction_sqltransaction.md.html#SQLTransaction">SQLTransaction</a></p>
+ </body>
+</html>
+</code></pre>
+ </div>
+ </div>
+
+ <!-- Functionality and Syntax Highlighting -->
+ <script type="text/javascript" src="index.js"></script>
+ <script type="text/javascript" src="prettify/prettify.js"></script>
+ </body>
+</html>
Added: cordova/site/public/docs/de/edge/cordova_storage_storage.opendatabase.md.html
URL: http://svn.apache.org/viewvc/cordova/site/public/docs/de/edge/cordova_storage_storage.opendatabase.md.html?rev=1682113&view=auto
==============================================================================
--- cordova/site/public/docs/de/edge/cordova_storage_storage.opendatabase.md.html (added)
+++ cordova/site/public/docs/de/edge/cordova_storage_storage.opendatabase.md.html Wed May 27 20:06:53 2015
@@ -0,0 +1,219 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width">
+ <meta name="generator" content="joDoc"><meta name="robots" label="noindex">
+
+ <title>Apache Cordova API Documentation</title>
+
+ <link rel="stylesheet" type="text/css" href="index.css">
+ <link rel="stylesheet" type="text/css" href="mobile.css" media="only screen and (max-device-width: 1024px)">
+ <link rel="stylesheet" type="text/css" href="prettify/prettify.css">
+ </head>
+ <body>
+ <div id="header">
+ <h1><a href="index.html">Apache <strong>Cordova</strong> Documentation</a></h1>
+ <small>
+ <select><optgroup label="Chinese" value="zh">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="English" value="en">
+<option value="edge">edge</option>
+<option value="5.0.0">5.0.0</option>
+<option value="4.0.0">4.0.0</option>
+<option value="3.6.0">3.6.0</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.3.0">3.3.0</option>
+<option value="3.2.0">3.2.0</option>
+<option value="3.1.0">3.1.0</option>
+<option value="3.0.0">3.0.0</option>
+<option value="2.9.0">2.9.0</option>
+<option value="2.8.0">2.8.0</option>
+<option value="2.7.0">2.7.0</option>
+<option value="2.6.0">2.6.0</option>
+<option value="2.5.0">2.5.0</option>
+<option value="2.4.0">2.4.0</option>
+<option value="2.3.0">2.3.0</option>
+<option value="2.2.0">2.2.0</option>
+<option value="2.1.0">2.1.0</option>
+<option value="2.0.0">2.0.0</option>
+<option value="1.9.0">1.9.0</option>
+<option value="1.8.1">1.8.1</option>
+<option value="1.8.0">1.8.0</option>
+<option value="1.7.0">1.7.0</option>
+<option value="1.6.1">1.6.1</option>
+<option value="1.6.0">1.6.0</option>
+<option value="1.5.0">1.5.0</option>
+</optgroup>
+<optgroup label="French" value="fr">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="German" value="de">
+<option selected="selected" value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Italian" value="it">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Japanese" value="ja">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+<option value="2.2.0">2.2.0</option>
+<option value="2.1.0">2.1.0</option>
+<option value="2.0.0">2.0.0</option>
+<option value="1.9.0">1.9.0</option>
+<option value="1.8.1">1.8.1</option>
+<option value="1.7.0">1.7.0</option>
+</optgroup>
+<optgroup label="Korean" value="ko">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+<option value="2.0.0">2.0.0</option>
+</optgroup>
+<optgroup label="Polish" value="pl">
+<option value="edge">edge</option>
+</optgroup>
+<optgroup label="Russian" value="ru">
+<option value="edge">edge</option>
+<option value="5.0.0">5.0.0</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Slovenian" value="sl">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+</optgroup>
+<optgroup label="Spanish" value="es">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+</select>
+ </small>
+ </div>
+ <div id="subheader">
+ <h1>openDatabase</h1>
+ <small><select><option value="openDatabase">openDatabase</option><option value="openDatabase_beschreibung">      - Beschreibung</option><option value="openDatabase_unterst_tzte_plattformen">      - Unterstützte Plattformen</option><option value="openDatabase_kleines_beispiel">      - Kleines Beispiel</option><option value="openDatabase_vollst_ndiges_beispiel">      - Vollständiges Beispiel</option></select></small>
+ </div>
+
+ <div id="sidebar">
+ <div class="vertical_divider"></div>
+ <h1>
+ Reiseführer
+ </h1>
+<ul>
+<li><a href="guide_overview_index.md.html#%C3%9Cbersicht">Übersicht</a></li>
+<li><a href="guide_support_index.md.html#Plattformunterst%C3%BCtzung">Plattformunterstützung</a></li>
+<li><a href="guide_cli_index.md.html#Die%20Befehlszeilenschnittstelle">Die Befehlszeilenschnittstelle</a></li>
+<li><a href="guide_platforms_index.md.html#Plattform-Guides">Plattform-Guides</a></li>
+<li><a href="plugin_ref_plugman.md.html#Plugins%20verwalten%20mithilfe%20Plugman">Plugins verwalten mithilfe Plugman</a></li>
+<li><a href="config_ref_index.md.html#Die%20Datei%20config.xml">Die Datei config.xml</a></li>
+<li><a href="config_ref_images.md.html#Symbole%20und%20Splash-Screens">Symbole und Splash-Screens</a></li>
+<li><a href="guide_hybrid_webviews_index.md.html#Einbetten%20von%20Webansichten%20f%C3%BCr">Einbetten von Webansichten für</a></li>
+<li><a href="guide_hybrid_plugins_index.md.html#Plugin-Entwicklung-Guide">Plugin-Entwicklung-Guide</a></li>
+<li><a href="guide_appdev_privacy_index.md.html#Datenschutz-Guide">Datenschutz-Guide</a></li>
+<li><a href="guide_appdev_security_index.md.html#Sicherheitshandbuch">Sicherheitshandbuch</a></li>
+<li><a href="guide_appdev_whitelist_index.md.html#Whitelist-Guide">Whitelist-Guide</a></li>
+<li><a href="cordova_storage_storage.md.html#Speicher">Speicher</a></li>
+<li><a href="guide_next_index.md.html#Die%20n%C3%A4chsten%20Schritte">Die nächsten Schritte</a></li>
+<li><a href="_index.html">Stichwort-Index</a></li>
+</ul>
+<h1>
+ -API-Referenz
+ </h1>
+<ul>
+<li><a href="cordova_events_events.md.html#Veranstaltungen">Veranstaltungen</a></li>
+<li><a href="cordova_plugins_pluginapis.md.html#Plugin%20APIs">Plugin APIs</a></li>
+</ul>
+</div>
+
+ <div id="scrollable">
+ <div id="content">
+ <h1><a name="openDatabase">openDatabase</a></h1>
+<p>Gibt eine neue <code>Database</code> Objekt.</p>
+<pre class="prettyprint"><code>var dbShell = window.<a href="cordova_storage_storage.opendatabase.md.html#openDatabase">openDatabase</a>(<a href="cordova_storage_parameters_name.md.html#database_name">database_name</a>, <a href="cordova_storage_parameters_version.md.html#database_version">database_version</a>, <a href="cordova_storage_parameters_display_name.md.html#database_displayname">database_displayname</a>, <a href="cordova_storage_parameters_size.md.html#database_size">database_size</a>);
+</code></pre><h2 id="beschreibung"><a name="openDatabase_beschreibung">Beschreibung</a></h2>
+<p>Die Methode erstellt eine neue SQL-Lite <a href="cordova_storage_database_database.md.html#Datenbank">Datenbank</a> und gibt ein <code>Database</code> -Objekt, das Manipulation der Daten ermöglicht.</p>
+<h2 id="unterst-tzte-plattformen"><a name="openDatabase_unterst_tzte_plattformen">Unterstützte Plattformen</a></h2>
+<ul>
+<li>Android</li>
+<li>BlackBerry WebWorks (OS 6.0 und höher)</li>
+<li>iOS</li>
+<li>Tizen</li>
+</ul>
+<h2 id="kleines-beispiel"><a name="openDatabase_kleines_beispiel">Kleines Beispiel</a></h2>
+<pre class="prettyprint"><code>var db = window.<a href="cordova_storage_storage.opendatabase.md.html#openDatabase">openDatabase</a>("test", "1.0", "Test DB", 1000000);
+</code></pre><h2 id="vollst-ndiges-beispiel"><a name="openDatabase_vollst_ndiges_beispiel">Vollständiges Beispiel</a></h2>
+<pre class="prettyprint"><code><!DOCTYPE html>
+<html>
+ <head>
+ <title>Storage Example</title>
+
+ <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+ <script type="text/javascript" charset="utf-8">
+
+ // Wait for device API libraries to load
+ //
+ document.addEventListener("<a href="cordova_events_events.md.html#deviceready">deviceready</a>", onDeviceReady, false);
+
+ // device APIs are available
+ //
+ function onDeviceReady() {
+ var db = window.<a href="cordova_storage_storage.opendatabase.md.html#openDatabase">openDatabase</a>("test", "1.0", "Test DB", 1000000);
+ }
+
+ </script>
+ </head>
+ <body>
+ <h1>Example</h1>
+ <p>Open Database</p>
+ </body>
+</html>
+</code></pre>
+ </div>
+ </div>
+
+ <!-- Functionality and Syntax Highlighting -->
+ <script type="text/javascript" src="index.js"></script>
+ <script type="text/javascript" src="prettify/prettify.js"></script>
+ </body>
+</html>
Added: cordova/site/public/docs/en/edge/guide_appdev_hooks_index.md.html
URL: http://svn.apache.org/viewvc/cordova/site/public/docs/en/edge/guide_appdev_hooks_index.md.html?rev=1682113&view=auto
==============================================================================
--- cordova/site/public/docs/en/edge/guide_appdev_hooks_index.md.html (added)
+++ cordova/site/public/docs/en/edge/guide_appdev_hooks_index.md.html Wed May 27 20:06:53 2015
@@ -0,0 +1,368 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width">
+ <meta name="generator" content="joDoc"><meta name="robots" label="noindex">
+
+ <title>Apache Cordova API Documentation</title>
+
+ <link rel="stylesheet" type="text/css" href="index.css">
+ <link rel="stylesheet" type="text/css" href="mobile.css" media="only screen and (max-device-width: 1024px)">
+ <link rel="stylesheet" type="text/css" href="prettify/prettify.css">
+ </head>
+ <body>
+ <div id="header">
+ <h1><a href="index.html">Apache <strong>Cordova</strong> Documentation</a></h1>
+ <small>
+ <select><optgroup label="Chinese" value="zh">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="English" value="en">
+<option selected="selected" value="edge">edge</option>
+<option value="5.0.0">5.0.0</option>
+<option value="4.0.0">4.0.0</option>
+<option value="3.6.0">3.6.0</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.3.0">3.3.0</option>
+<option value="3.2.0">3.2.0</option>
+<option value="3.1.0">3.1.0</option>
+<option value="3.0.0">3.0.0</option>
+<option value="2.9.0">2.9.0</option>
+<option value="2.8.0">2.8.0</option>
+<option value="2.7.0">2.7.0</option>
+<option value="2.6.0">2.6.0</option>
+<option value="2.5.0">2.5.0</option>
+<option value="2.4.0">2.4.0</option>
+<option value="2.3.0">2.3.0</option>
+<option value="2.2.0">2.2.0</option>
+<option value="2.1.0">2.1.0</option>
+<option value="2.0.0">2.0.0</option>
+<option value="1.9.0">1.9.0</option>
+<option value="1.8.1">1.8.1</option>
+<option value="1.8.0">1.8.0</option>
+<option value="1.7.0">1.7.0</option>
+<option value="1.6.1">1.6.1</option>
+<option value="1.6.0">1.6.0</option>
+<option value="1.5.0">1.5.0</option>
+</optgroup>
+<optgroup label="French" value="fr">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="German" value="de">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Italian" value="it">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Japanese" value="ja">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+<option value="2.2.0">2.2.0</option>
+<option value="2.1.0">2.1.0</option>
+<option value="2.0.0">2.0.0</option>
+<option value="1.9.0">1.9.0</option>
+<option value="1.8.1">1.8.1</option>
+<option value="1.7.0">1.7.0</option>
+</optgroup>
+<optgroup label="Korean" value="ko">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+<option value="2.0.0">2.0.0</option>
+</optgroup>
+<optgroup label="Polish" value="pl">
+<option value="edge">edge</option>
+</optgroup>
+<optgroup label="Russian" value="ru">
+<option value="edge">edge</option>
+<option value="5.0.0">5.0.0</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Slovenian" value="sl">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+</optgroup>
+<optgroup label="Spanish" value="es">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+</select>
+ </small>
+ </div>
+ <div id="subheader">
+ <h1>Hooks Guide</h1>
+ <small><select><option value="Hooks%2520Guide">Hooks Guide</option><option value="Hooks%20Guide_supported_hook_types">      - Supported hook types</option><option value="Hooks%20Guide_ways_to_define_hooks">      - Ways to define hooks</option><option value="Hooks%20Guide_script_interface">      - Script Interface</option><option value="Hooks%20Guide_sample_usage">      - Sample Usage</option></select></small>
+ </div>
+
+ <div id="sidebar">
+ <div class="vertical_divider"></div>
+ <h1>Guides</h1>
+<ul>
+<li><a href="guide_overview_index.md.html#Overview">Overview</a></li>
+<li><a href="guide_support_index.md.html#Platform%20Support">Platform Support</a></li>
+<li><a href="guide_cli_index.md.html#The%20Command-Line%20Interface">The Command-Line Interface</a></li>
+<li><a href="guide_platforms_index.md.html#Platform%20Guides">Platform Guides</a></li>
+<li><a href="plugin_ref_plugman.md.html#Using%20Plugman%20to%20Manage%20Plugins">Using Plugman to Manage Plugins</a></li>
+<li><a href="config_ref_index.md.html#The%20config.xml%20File">The config.xml File</a></li>
+<li><a href="config_ref_images.md.html#Icons%20and%20Splash%20Screens">Icons and Splash Screens</a></li>
+<li><a href="guide_hybrid_webviews_index.md.html#Embedding%20WebViews">Embedding WebViews</a></li>
+<li><a href="guide_hybrid_plugins_index.md.html#Plugin%20Development%20Guide">Plugin Development Guide</a></li>
+<li><a href="guide_appdev_privacy_index.md.html#Privacy%20Guide">Privacy Guide</a></li>
+<li><a href="guide_appdev_security_index.md.html#Security%20Guide">Security Guide</a></li>
+<li><a href="guide_appdev_whitelist_index.md.html#Whitelist%20Guide">Whitelist Guide</a></li>
+<li><a href="cordova_storage_storage.md.html#Storage">Storage</a></li>
+<li><a href="guide_appdev_hooks_index.md.html#Hooks%20Guide">Hooks Guide</a></li>
+<li><a href="guide_next_index.md.html#Next%20Steps">Next Steps</a></li>
+<li><a href="_index.html">Keyword Index</a></li>
+</ul>
+<h1>API Reference</h1>
+<ul>
+<li><a href="cordova_events_events.md.html#Events">Events</a></li>
+<li><a href="cordova_plugins_pluginapis.md.html#Plugin%20APIs">Plugin APIs</a></li>
+</ul>
+</div>
+
+ <div id="scrollable">
+ <div id="content">
+ <h1><a name="Hooks%20Guide">Hooks Guide</a></h1>
+<p>Cordova Hooks represent special scripts which could be added by application and
+plugin developers or even by your own build system to customize cordova commands.
+Hook scripts could be defined by adding them to the special predefined folder
+(<code>/hooks</code>) or via configuration files (<code>config.xml</code> and <code>plugin.xml</code>) and run
+serially in the following order:</p>
+<ul>
+<li>Application hooks from <code>/hooks</code>;</li>
+<li>Application hooks from <code>config.xml</code>;</li>
+<li>Plugin hooks from <code>plugins/.../plugin.xml</code>.</li>
+</ul>
+<p><strong>Note</strong>: <code>/hooks</code> directory is considered deprecated in favor of the hook elements
+in config.xml and plugin.xml.</p>
+<h2 id="supported-hook-types"><a name="Hooks%20Guide_supported_hook_types">Supported hook types</a></h2>
+<p>The following hook types are supported:</p>
+<pre class="prettyprint"><code>after_build
+after_compile
+after_docs
+after_emulate
+after_platform_add
+after_platform_rm
+after_platform_ls
+after_plugin_add
+after_plugin_ls
+after_plugin_rm
+after_plugin_search
+after_plugin_install // Plugin hooks in plugin.xml are executed for a plugin being installed only
+after_prepare
+after_run
+after_serve
+before_build
+before_compile
+before_docs
+before_emulate
+before_platform_add
+before_platform_rm/
+before_platform_ls
+before_plugin_add
+before_plugin_ls
+before_plugin_rm
+before_plugin_search/
+before_plugin_install // Plugin hooks in plugin.xml are executed for a plugin being installed only
+before_plugin_uninstall // Plugin hooks in plugin.xml are executed for a plugin being uninstalled only
+before_prepare
+before_run
+before_serve
+pre_package // Windows and Windows Phone only
+</code></pre><h2 id="ways-to-define-hooks"><a name="Hooks%20Guide_ways_to_define_hooks">Ways to define hooks</a></h2>
+<h3 id="via-hooks-directory">Via <code>/hooks</code> directory</h3>
+<p><strong>Note</strong>: this method is considered deprecated in favor of the hook elements in config.xml and plugin.xml.</p>
+<p>To execute custom action when corresponding hook type is fired, use hook type as a name for a subfolder inside 'hooks' directory and place you script file here, for example:</p>
+<pre class="prettyprint"><code># script file will be automatically executed after each build
+hooks/after_build/after_build_custom_action.js
+</code></pre><p>When using these hooks, they will always be run as executable files, not as loadable JavaScript modules.
+<strong>Remember</strong>: Make your scripts executable in this case.</p>
+<h3 id="config-xml">Config.xml</h3>
+<p>Hooks can be defined in project's <code>config.xml</code> using <code><hook></code> elements, for example:</p>
+<pre class="prettyprint"><code><hook type="before_build" src="scripts/appBeforeBuild.bat" />
+<hook type="before_build" src="scripts/appBeforeBuild.js" />
+<hook type="before_plugin_install" src="scripts/appBeforePluginInstall.js" />
+
+<platform name="wp8">
+ <hook type="before_build" src="scripts/wp8/appWP8BeforeBuild.bat" />
+ <hook type="before_build" src="scripts/wp8/appWP8BeforeBuild.js" />
+ <hook type="before_plugin_install" src="scripts/wp8/appWP8BeforePluginInstall.js" />
+ ...
+</platform>
+
+<platform name="windows8">
+ <hook type="before_build" src="scripts/windows8/appWin8BeforeBuild.bat" />
+ <hook type="before_build" src="scripts/windows8/appWin8BeforeBuild.js" />
+ <hook type="before_plugin_install" src="scripts/windows8/appWin8BeforePluginInstall.js" />
+ ...
+</platform>
+</code></pre><h3 id="plugin-hooks-plugin-xml-">Plugin hooks (plugin.xml)</h3>
+<p>As a plugin developer you can define hook scripts using <code><hook></code> elements in a <code>plugin.xml</code> like that:</p>
+<pre class="prettyprint"><code><hook type="before_plugin_install" src="scripts/beforeInstall.js" />
+<hook type="after_build" src="scripts/afterBuild.js" />
+
+<platform name="wp8">
+ <hook type="before_plugin_install" src="scripts/wp8BeforeInstall.js" />
+ <hook type="before_build" src="scripts/wp8BeforeBuild.js" />
+ ...
+</platform>
+</code></pre><p><code>before_plugin_install</code>, <code>after_plugin_install</code>, <code>before_plugin_uninstall</code> plugin hooks will be fired exclusively for the plugin being installed/uninstalled.</p>
+<h2 id="script-interface"><a name="Hooks%20Guide_script_interface">Script Interface</a></h2>
+<h3 id="javascript">Javascript</h3>
+<p>If you are writing hooks using Node.js you should use the following module definition:</p>
+<pre class="prettyprint"><code class="lang-javascript">module.exports = function(context) {
+ ...
+}
+</code></pre>
+<p>You can make your scipts async using Q:</p>
+<pre class="prettyprint"><code class="lang-javascript">module.exports = function(context) {
+ var Q = context.requireCordovaModule('q');
+ var deferral = new Q.defer();
+
+ setTimeout(function(){
+ console.log('hook.js>> end');
+ deferral.resolve();
+ }, 1000);
+
+ return deferral.promise;
+}
+</code></pre>
+<p><code>context</code> object contains hook type, executed script full path, hook options, command-line arguments passed to Cordova and top-level "cordova" object:</p>
+<pre class="prettyprint"><code class="lang-json">{
+ "hook": "before_plugin_install",
+ "scriptLocation": "c:\\script\\full\\path\\appBeforePluginInstall.js",
+ "cmdLine": "The\\exact\\command\\cordova\\run\\with arguments",
+ "opts": {
+ "projectRoot":"C:\\path\\to\\the\\project",
+ "cordova": {
+ "platforms": ["wp8"],
+ "plugins": ["com.plugin.withhooks"],
+ "version": "0.21.7-dev"
+ },
+ "plugin": {
+ "id": "com.plugin.withhooks",
+ "pluginInfo": {
+ ...
+ },
+ "platform": "wp8",
+ "dir": "C:\\path\\to\\the\\project\\plugins\\com.plugin.withhooks"
+ }
+ },
+ "cordova": {...}
+}
+</code></pre>
+<p><code>context.opts.plugin</code> object will only be passed to plugin hooks scripts.</p>
+<p>You can also require additional Cordova modules in your script using <code>context.requireCordovaModule</code> in the following way:</p>
+<pre class="prettyprint"><code class="lang-javascript">var Q = context.requireCordovaModule('q');
+</code></pre>
+<p><strong>Note</strong>: new module loader script interface is used for the <code>.js</code> files defined via <code>config.xml</code> or <code>plugin.xml</code> only.
+For compatibility reasons hook files specified via <code>/hooks</code> folders are run via Node child_process spawn, see 'Non-javascript' section below.</p>
+<h3 id="non-javascript">Non-javascript</h3>
+<p><strong>Note</strong>: we highly recommend writing your hooks using Node.js so that they are cross-platform, see 'Javascript' section above.</p>
+<p>Non-javascript scripts are run via Node child_process spawn from the project's root directory and have the root directory passes as the first argument. All other options are passed to the script using environment variables:</p>
+<ul>
+<li>CORDOVA_VERSION - The version of the Cordova-CLI.</li>
+<li>CORDOVA_PLATFORMS - Comma separated list of platforms that the command applies to (e.g.: android, ios).</li>
+<li>CORDOVA_PLUGINS - Comma separated list of plugin IDs that the command applies to (e.g.: org.apache.cordova.file, org.apache.cordova.file-transfer)</li>
+<li>CORDOVA_HOOK - Path to the hook that is being executed.</li>
+<li>CORDOVA_CMDLINE - The exact command-line arguments passed to cordova (e.g.: cordova run ios --emulate)</li>
+</ul>
+<p>If a script returns a non-zero exit code, then the parent cordova command will be aborted.</p>
+<p>Also, note that even if you are working on Windows, and in case your hook scripts aren't bat files (which is recommended, if you want your scripts to work in non-Windows operating systems) Cordova CLI will expect a shebang line as the first line for it to know the interpreter it needs to use to launch the script. The shebang line should match the following example:</p>
+<pre class="prettyprint"><code>#!/usr/bin/env [name_of_interpreter_executable]
+</code></pre><h2 id="sample-usage"><a name="Hooks%20Guide_sample_usage">Sample Usage</a></h2>
+<p>This sample demonstrates Cordova hooks usage to trace to the console output the
+size of generated .apk file for Android platform.</p>
+<p>Create blank Cordova app and add the following definition to <code>config.xml</code> to
+tell Cordova to run <code>afterBuild.js</code> script after each platform build.</p>
+<pre class="prettyprint"><code><hook type="after_build" src="scripts/afterBuild.js" />
+</code></pre><p>Create <code>scripts/afterBuild.js</code> file and add the following implementation.
+We use async version of <code>fs.stat</code> method to demonstrate how async functionality
+could be done via hooks.</p>
+<pre class="prettyprint"><code>module.exports = function(ctx) {
+ // make sure android platform is part of build
+ if (ctx.opts.platforms.indexOf('android') < 0) {
+ return;
+ }
+ var fs = ctx.requireCordovaModule('fs'),
+ path = ctx.requireCordovaModule('path'),
+ deferral = ctx.requireCordovaModule('q').defer();
+
+ var platformRoot = path.join(ctx.opts.projectRoot, 'platforms/android');
+ var apkFileLocation = path.join(platformRoot, 'build/outputs/apk/android-debug.apk');
+
+ fs.stat(apkFileLocation, function(err,stats) {
+ if (err) {
+ deferral.reject('Operation failed');
+ } else {
+ console.log('Size of ' + apkFileLocation + ' is ' + stats.size +' bytes');
+ deferral.resolve();
+ }
+ });
+
+ return deferral.promise;
+};
+</code></pre><p>Parameter <code>ctx</code> in example above is passed by Cordova and represents execution
+context such as script full path, target platform, command-line arguments, etc and
+also exposes additional helper functionality. See <code>Script Interface</code> section above
+for more details.</p>
+<p>You can now add android platform and execute build.</p>
+<pre class="prettyprint"><code>cordova platform add android
+..
+cordova build
+..
+Size of path\to\app\platforms\android\build\outputs\apk\android-debug.apk is 1821193 bytes
+</code></pre><p>More good usage examples could be found here:</p>
+<p><a class="external" href="http://devgirl.org/2013/11/12/three-hooks-your-cordovaphonegap-project-needs/">http://devgirl.org/2013/11/12/three-hooks-your-cordovaphonegap-project-needs/</a></p>
+
+ </div>
+ </div>
+
+ <!-- Functionality and Syntax Highlighting -->
+ <script type="text/javascript" src="index.js"></script>
+ <script type="text/javascript" src="prettify/prettify.js"></script>
+ </body>
+</html>
Added: cordova/site/public/docs/en/edge/guide_platforms_win8_packaging.md.html
URL: http://svn.apache.org/viewvc/cordova/site/public/docs/en/edge/guide_platforms_win8_packaging.md.html?rev=1682113&view=auto
==============================================================================
--- cordova/site/public/docs/en/edge/guide_platforms_win8_packaging.md.html (added)
+++ cordova/site/public/docs/en/edge/guide_platforms_win8_packaging.md.html Wed May 27 20:06:53 2015
@@ -0,0 +1,210 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width">
+ <meta name="generator" content="joDoc"><meta name="robots" label="noindex">
+
+ <title>Apache Cordova API Documentation</title>
+
+ <link rel="stylesheet" type="text/css" href="index.css">
+ <link rel="stylesheet" type="text/css" href="mobile.css" media="only screen and (max-device-width: 1024px)">
+ <link rel="stylesheet" type="text/css" href="prettify/prettify.css">
+ </head>
+ <body>
+ <div id="header">
+ <h1><a href="index.html">Apache <strong>Cordova</strong> Documentation</a></h1>
+ <small>
+ <select><optgroup label="Chinese" value="zh">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="English" value="en">
+<option selected="selected" value="edge">edge</option>
+<option value="5.0.0">5.0.0</option>
+<option value="4.0.0">4.0.0</option>
+<option value="3.6.0">3.6.0</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.3.0">3.3.0</option>
+<option value="3.2.0">3.2.0</option>
+<option value="3.1.0">3.1.0</option>
+<option value="3.0.0">3.0.0</option>
+<option value="2.9.0">2.9.0</option>
+<option value="2.8.0">2.8.0</option>
+<option value="2.7.0">2.7.0</option>
+<option value="2.6.0">2.6.0</option>
+<option value="2.5.0">2.5.0</option>
+<option value="2.4.0">2.4.0</option>
+<option value="2.3.0">2.3.0</option>
+<option value="2.2.0">2.2.0</option>
+<option value="2.1.0">2.1.0</option>
+<option value="2.0.0">2.0.0</option>
+<option value="1.9.0">1.9.0</option>
+<option value="1.8.1">1.8.1</option>
+<option value="1.8.0">1.8.0</option>
+<option value="1.7.0">1.7.0</option>
+<option value="1.6.1">1.6.1</option>
+<option value="1.6.0">1.6.0</option>
+<option value="1.5.0">1.5.0</option>
+</optgroup>
+<optgroup label="French" value="fr">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="German" value="de">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Italian" value="it">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Japanese" value="ja">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+<option value="2.2.0">2.2.0</option>
+<option value="2.1.0">2.1.0</option>
+<option value="2.0.0">2.0.0</option>
+<option value="1.9.0">1.9.0</option>
+<option value="1.8.1">1.8.1</option>
+<option value="1.7.0">1.7.0</option>
+</optgroup>
+<optgroup label="Korean" value="ko">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+<option value="2.0.0">2.0.0</option>
+</optgroup>
+<optgroup label="Polish" value="pl">
+<option value="edge">edge</option>
+</optgroup>
+<optgroup label="Russian" value="ru">
+<option value="edge">edge</option>
+<option value="5.0.0">5.0.0</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Slovenian" value="sl">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+</optgroup>
+<optgroup label="Spanish" value="es">
+<option value="edge">edge</option>
+<option value="3.5.0">3.5.0</option>
+<option value="3.4.0">3.4.0</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+</select>
+ </small>
+ </div>
+ <div id="subheader">
+ <h1>Packaging of Windows Store Apps</h1>
+ <small></small>
+ </div>
+
+ <div id="sidebar">
+ <div class="vertical_divider"></div>
+ <h1>Guides</h1>
+<ul>
+<li><a href="guide_overview_index.md.html#Overview">Overview</a></li>
+<li><a href="guide_support_index.md.html#Platform%20Support">Platform Support</a></li>
+<li><a href="guide_cli_index.md.html#The%20Command-Line%20Interface">The Command-Line Interface</a></li>
+<li><a href="guide_platforms_index.md.html#Platform%20Guides">Platform Guides</a></li>
+<li><a href="plugin_ref_plugman.md.html#Using%20Plugman%20to%20Manage%20Plugins">Using Plugman to Manage Plugins</a></li>
+<li><a href="config_ref_index.md.html#The%20config.xml%20File">The config.xml File</a></li>
+<li><a href="config_ref_images.md.html#Icons%20and%20Splash%20Screens">Icons and Splash Screens</a></li>
+<li><a href="guide_hybrid_webviews_index.md.html#Embedding%20WebViews">Embedding WebViews</a></li>
+<li><a href="guide_hybrid_plugins_index.md.html#Plugin%20Development%20Guide">Plugin Development Guide</a></li>
+<li><a href="guide_appdev_privacy_index.md.html#Privacy%20Guide">Privacy Guide</a></li>
+<li><a href="guide_appdev_security_index.md.html#Security%20Guide">Security Guide</a></li>
+<li><a href="guide_appdev_whitelist_index.md.html#Whitelist%20Guide">Whitelist Guide</a></li>
+<li><a href="cordova_storage_storage.md.html#Storage">Storage</a></li>
+<li><a href="guide_appdev_hooks_index.md.html#Hooks%20Guide">Hooks Guide</a></li>
+<li><a href="guide_next_index.md.html#Next%20Steps">Next Steps</a></li>
+<li><a href="_index.html">Keyword Index</a></li>
+</ul>
+<h1>API Reference</h1>
+<ul>
+<li><a href="cordova_events_events.md.html#Events">Events</a></li>
+<li><a href="cordova_plugins_pluginapis.md.html#Plugin%20APIs">Plugin APIs</a></li>
+</ul>
+</div>
+
+ <div id="scrollable">
+ <div id="content">
+ <h1><a name="Packaging%20of%20Windows%20Store%20Apps">Packaging of Windows Store Apps</a></h1>
+<p>You can learn more about signing and packaging of Windows Store Apps on <a class="external" href="https://msdn.microsoft.com/en-us/library/hh446593(v=vs.85">MSDN</a>.aspx).</p>
+<p>To be able to correctly package and sign Windows apps there are few things required:</p>
+<ul>
+<li>A signing certificate</li>
+<li>Identity details matching the provided signing certificate</li>
+</ul>
+<p>In Windows project, identity details are kept in a file named package.appxmanifest. This file is automatically populated every time a Cordova app is built. Identity holds 3 important fields.</p>
+<ul>
+<li>Name</li>
+<li>Publisher</li>
+<li>Version</li>
+</ul>
+<p><em>Name</em> and <em>Version</em> can be set from <strong>config.xml</strong>. <em>Publisher</em> can be provided as a build parameter or can be set on <strong>build.json</strong> file.</p>
+<p><img src="img/guide/platforms/win8/packaging.png" alt=""></p>
+<p>A signing certificate can be provided from either CLI or through build.json file. The certificate related CLI flags are:</p>
+<ul>
+<li><code>--packageCertificateKeyFile</code> : Once a package signing certificate is created, this parameter can be used to associate the certificate with the app. This flag takes a file path as an argument. Eg. <code>> cordova build -- --packageCertificateKeyFile="platforms\windows\CordovaApp_TemporaryKey.pfx"</code></li>
+<li><code>--packageThumbprint</code> : Package thumbprint is used to validate the authenticity of package certificate key file. When creating a certificate key file, this value will be provided to the end user. Eg. <code>> cordova build -- --packageCertificateKeyFile="platforms\windows\CordovaApp_TemporaryKey.pfx" --packageThumbprint="ABCABCABCABC123123123123"</code></li>
+</ul>
+<p>Alternatively, these values could be specified using a build configuration file (build.json) using CLI (--buildConfig). A sample build configuration file:</p>
+<pre class="prettyprint"><code>{
+ "windows": {
+ "debug": {
+ "packageCertificateKeyFile": "platforms\\windows\\CordovaApp_TemporaryKey.pfx"
+ },
+ "release": {
+ "packageCertificateKeyFile": "c:\\path-to-key\\keycert.pfx",
+ "packageThumbprint": "ABCABCABCABC123123123123",
+ "publisherId": "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"
+ }
+ }
+}
+</code></pre><p>There is also support to mix and match command line arguments and parameters in build.json file. Values from the command line arguments will get precedence.</p>
+
+ </div>
+ </div>
+
+ <!-- Functionality and Syntax Highlighting -->
+ <script type="text/javascript" src="index.js"></script>
+ <script type="text/javascript" src="prettify/prettify.js"></script>
+ </body>
+</html>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org