]> _ Git - cubeextranet.git/commitdiff
(no commit message)
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 9 Sep 2013 11:30:33 +0000 (11:30 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 9 Sep 2013 11:30:33 +0000 (11:30 +0000)
inc/ws/Controlleur/class.ws.services.php
inc/ws/Metier/class.ws.collection.php
inc/ws/Util/class.ws.exporter.php

index 1c09723a4e4939bf10df60069e60c396ea67f398..0b85050500bd80fb35204b55ca190544ad4b3961 100644 (file)
@@ -625,6 +625,9 @@ class wsServices extends cubeFlashGateway {
                        $daoCollection = new wsDAOCollection($core->con);\r
                        $collection = $daoCollection->selectById($id);\r
 \r
+                       $ns = $collection->settings['namespace'];\r
+\r
+\r
                        $vcompo = WS_COLLECTIONS . '/versions/' . $id . '/' . $version . '/composition.json';\r
                        $composition = json_decode(file_get_contents($vcompo));\r
 \r
@@ -675,7 +678,7 @@ class wsServices extends cubeFlashGateway {
                                $traductions[$r->lang_id] = json_decode($r->traductions);\r
                        }\r
 \r
-                       $d = array('id' => $id, 'langs' => $langs, 'langnames' => $langsnames, 'time' => $version, 'datas' => $composition, 'couvertures' => $couvertures, 'traductions' => $traductions, 'contents' => $contents);\r
+                       $d = array('id' => $id, 'ns' => $ns, 'langs' => $langs, 'langnames' => $langsnames, 'time' => $version, 'datas' => $composition, 'couvertures' => $couvertures, 'traductions' => $traductions, 'contents' => $contents);\r
                        $d = array_merge($d, $this->_getManifest($publications, '/fluidbook/collections/versions/' . $id . '/' . $version . '/' . $os, $books, $resolution));\r
 \r
                        $dao = new wsDAOCollection($core->con);\r
index 2de01df2ea2c8811c253f2007eac2f1e1ab22880..3c061a6ab9381e62962ec37f5db20e3a7dbc5f9f 100644 (file)
@@ -11,7 +11,6 @@ class wsCollection extends cubeMetier {
        protected $settings;
        protected $theme;
        protected $contents;
-
 }
 
 ?>
index ac9b80be772eec585efc5cf8656797dd7e0fa227..8ef893b55dfd1a7fe262f65836f37bdaf68ad67c 100644 (file)
@@ -28,19 +28,37 @@ class wsExporter {
                $phonegap->setId($collection->settings['namespace']);
                $phonegap->setAuthor('Fluidbook', 'contact@fluidbook.com', 'http://www.fluidbook.com');
                $phonegap->setVersion('1.0.0');
+               $phonegap->setIcon($compiler->wdir . '/' . $collection->theme['icon']);
+               foreach ($compiler->langs as $l) {
+                       $src = $compiler->wdir . '/' . $collection->theme['splash_' . $l];
+                       $phonegap->setSplash($src);
+                       break;
+               }
                $phonegap->setWWWDirectory($dir);
                if ($os == 'ios') {
-                       $phonegap->setDistantCompiler('paris.cubedesigners.com', 'vincent', '', '/Phonegap/Projects/' . $d, 22022);
+                       $phonegap->setDistantCompiler('paris.cubedesigners.com', 'vincent', '', '/Phonegap/Projects/' . $d, '/mnt/macbox/Phonegap/Projects/' . $d, 22022);
                } else if ($os == 'android') {
-                       $phonegap->setDistantCompiler('paris.cubedesigners.com', 'Vincent', 'iquique', 'h:/Works/Phonegap/Projects/' . $d, 22322);
+                       $phonegap->setDistantCompiler('paris.cubedesigners.com', 'Vincent', 'iquique', 'h:/Phonegap/Projects/' . $d, '/mnt/vincent/cygdrive/h/Phonegap/Projects/' . $d, 22322);
                }
                $phonegap->setPreference('orientation', CubeIT_Mobile_Phonegap::ORIENTATION_PORTRAIT);
                $phonegap->setPreference('target-device', CubeIT_Mobile_Phonegap::TARGET_TABLET);
                $phonegap->setPreference('show-splash-screen-spinner', false);
                $phonegap->setPreference('auto-hide-splash-screen', false);
-               $phonegap->addFeatures(array('Device', 'Connection', ''));
+               $phonegap->addFeatures(array(
+                       CubeIT_Mobile_Phonegap::FEATURE_CONNECTION,
+                       CubeIT_Mobile_Phonegap::FEATURE_DEVICE,
+                       CubeIT_Mobile_Phonegap::FEATURE_FILE,
+                       CubeIT_Mobile_Phonegap::FEATURE_FILETRANSFER,
+                       CubeIT_Mobile_Phonegap::FEATURE_STORAGE,
+                       CubeIT_Mobile_Phonegap::FEATURE_NOTIFICATION_DIALOG,
+                       CubeIT_Mobile_Phonegap::FEATURE_INAPPBROWSER,
+                       CubeIT_Mobile_Phonegap::FEATURE_SPLASHSCREEN,
+                       CubeIT_Mobile_Phonegap::FEATURE_PUSHNOTIFICATION
+                               )
+               );
 
-               $phonegap->run();
+               $full = isset($_GET['ctrl']) && $_GET['ctrl'] == 'true';
+               $phonegap->run($full);
 
                /* $this->_createProject($os, $collection->nom, $collection->settings['namespace']);
                  $this->_collectionAssets($os, $compiler);