Browse Source

Evolution #604: helpbox: Mise en place avec aide pour ajout url lors d'un ajout d'element

Bastien Sevajol 12 years ago
parent
commit
6e2a7525b3
100 changed files with 356 additions and 10 deletions
  1. 13 0
      app/Resources/translations/text.fr.yml
  2. 2 0
      app/Resources/translations/userui.fr.yml
  3. 0 0
      app/bootstrap.php.cache
  4. 16 0
      src/Muzich/CoreBundle/Controller/InfoController.php
  5. 7 0
      src/Muzich/CoreBundle/Resources/config/routing.yml
  6. 67 0
      src/Muzich/CoreBundle/Resources/public/css/main.css
  7. 6 6
      src/Muzich/CoreBundle/Resources/public/css/old.css
  8. 28 0
      src/Muzich/CoreBundle/Resources/public/js/muzich.js
  9. 7 1
      src/Muzich/CoreBundle/Resources/views/Element/form.add.html.twig
  10. 15 0
      src/Muzich/CoreBundle/Resources/views/Helpbox/element_add_url.html.twig
  11. 0 0
      src/Muzich/IndexBundle/Resources/views/Presubscription/confirm.txt.twig
  12. 0 1
      vendor/bin/doctrine
  13. 4 0
      vendor/bin/doctrine
  14. 0 1
      vendor/bin/doctrine.php
  15. 43 0
      vendor/bin/doctrine.php
  16. 0 1
      vendor/gedmo/doctrine-extensions/schemas/orm/doctrine-extensions-mapping.xsd
  17. 148 0
      vendor/gedmo/doctrine-extensions/schemas/orm/doctrine-extensions-mapping.xsd
  18. 0 0
      vendor/sonata-project/exporter/.gitignore
  19. 0 0
      vendor/sonata-project/exporter/.travis.yml
  20. 0 0
      vendor/sonata-project/exporter/README.md
  21. 0 0
      vendor/sonata-project/exporter/composer.json
  22. 0 0
      vendor/sonata-project/exporter/lib/Exporter/Exception/InvalidDataFormatException.php
  23. 0 0
      vendor/sonata-project/exporter/lib/Exporter/Exception/InvalidMethodCallException.php
  24. 0 0
      vendor/sonata-project/exporter/lib/Exporter/Handler.php
  25. 0 0
      vendor/sonata-project/exporter/lib/Exporter/Source/ArraySourceIterator.php
  26. 0 0
      vendor/sonata-project/exporter/lib/Exporter/Source/ChainSourceIterator.php
  27. 0 0
      vendor/sonata-project/exporter/lib/Exporter/Source/DoctrineDBALConnectionSourceIterator.php
  28. 0 0
      vendor/sonata-project/exporter/lib/Exporter/Source/DoctrineODMQuerySourceIterator.php
  29. 0 0
      vendor/sonata-project/exporter/lib/Exporter/Source/DoctrineORMQuerySourceIterator.php
  30. 0 0
      vendor/sonata-project/exporter/lib/Exporter/Source/IteratorSourceIterator.php
  31. 0 0
      vendor/sonata-project/exporter/lib/Exporter/Source/PDOStatementSourceIterator.php
  32. 0 0
      vendor/sonata-project/exporter/lib/Exporter/Source/SourceIteratorInterface.php
  33. 0 0
      vendor/sonata-project/exporter/lib/Exporter/Source/SymfonySitemapSourceIterator.php
  34. 0 0
      vendor/sonata-project/exporter/lib/Exporter/Writer/CsvWriter.php
  35. 0 0
      vendor/sonata-project/exporter/lib/Exporter/Writer/InMemoryWriter.php
  36. 0 0
      vendor/sonata-project/exporter/lib/Exporter/Writer/JsonWriter.php
  37. 0 0
      vendor/sonata-project/exporter/lib/Exporter/Writer/SitemapWriter.php
  38. 0 0
      vendor/sonata-project/exporter/lib/Exporter/Writer/WriterInterface.php
  39. 0 0
      vendor/sonata-project/exporter/lib/Exporter/Writer/XlsWriter.php
  40. 0 0
      vendor/sonata-project/exporter/lib/Exporter/Writer/XmlWriter.php
  41. 0 0
      vendor/sonata-project/exporter/phpunit.xml.dist
  42. 0 0
      vendor/sonata-project/exporter/test/Exporter/Test/HandlerTest.php
  43. 0 0
      vendor/sonata-project/exporter/test/Exporter/Test/Source/ArraySourceIteratorTest.php
  44. 0 0
      vendor/sonata-project/exporter/test/Exporter/Test/Source/ChainSourceIteratorTest.php
  45. 0 0
      vendor/sonata-project/exporter/test/Exporter/Test/Source/IteratorSourceIteratorTest.php
  46. 0 0
      vendor/sonata-project/exporter/test/Exporter/Test/Source/PDOStatementSourceIteratorTest.php
  47. 0 0
      vendor/sonata-project/exporter/test/Exporter/Test/Writer/CsvWriterTest.php
  48. 0 0
      vendor/sonata-project/exporter/test/Exporter/Test/Writer/JsonWriterTest.php
  49. 0 0
      vendor/sonata-project/exporter/test/Exporter/Test/Writer/SitemapWriterTest.php
  50. 0 0
      vendor/sonata-project/exporter/test/Exporter/Test/Writer/XlsWriterTest.php
  51. 0 0
      vendor/sonata-project/exporter/test/Exporter/Test/Writer/XmlWriterTest.php
  52. 0 0
      vendor/sonata-project/exporter/test/bootstrap.php
  53. 0 0
      vendor/symfony/symfony/.editorconfig
  54. 0 0
      vendor/symfony/symfony/.gitignore
  55. 0 0
      vendor/symfony/symfony/.travis.yml
  56. 0 0
      vendor/symfony/symfony/CHANGELOG-2.0.md
  57. 0 0
      vendor/symfony/symfony/CHANGELOG-2.1.md
  58. 0 0
      vendor/symfony/symfony/CONTRIBUTING.md
  59. 0 0
      vendor/symfony/symfony/CONTRIBUTORS.md
  60. 0 0
      vendor/symfony/symfony/README.md
  61. 0 0
      vendor/symfony/symfony/UPGRADE-2.1.md
  62. 0 0
      vendor/symfony/symfony/autoload.php.dist
  63. 0 0
      vendor/symfony/symfony/composer.json
  64. 0 0
      vendor/symfony/symfony/phpunit.xml.dist
  65. 0 0
      vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/CHANGELOG.md
  66. 0 0
      vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/CacheWarmer/ProxyCacheWarmer.php
  67. 0 0
      vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/ContainerAwareEventManager.php
  68. 0 0
      vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php
  69. 0 0
      vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/DataFixtures/ContainerAwareLoader.php
  70. 0 0
      vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php
  71. 0 0
      vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/DoctrineValidationPass.php
  72. 0 0
      vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterEventListenersAndSubscribersPass.php
  73. 0 0
      vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/DependencyInjection/Security/UserProvider/EntityFactory.php
  74. 0 0
      vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php
  75. 0 0
      vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityLoaderInterface.php
  76. 0 0
      vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Form/ChoiceList/ORMQueryBuilderLoader.php
  77. 0 0
      vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Form/DataTransformer/CollectionToArrayTransformer.php
  78. 0 0
      vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Form/DoctrineOrmExtension.php
  79. 0 0
      vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Form/DoctrineOrmTypeGuesser.php
  80. 0 0
      vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Form/EventListener/MergeDoctrineCollectionListener.php
  81. 0 0
      vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php
  82. 0 0
      vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Form/Type/EntityType.php
  83. 0 0
      vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/HttpFoundation/DbalSessionHandler.php
  84. 0 0
      vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/HttpFoundation/DbalSessionHandlerSchema.php
  85. 0 0
      vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Logger/DbalLogger.php
  86. 0 0
      vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/ManagerRegistry.php
  87. 0 0
      vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/README.md
  88. 0 0
      vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/RegistryInterface.php
  89. 0 0
      vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Security/User/EntityUserProvider.php
  90. 0 0
      vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Tests/ContainerAwareEventManagerTest.php
  91. 0 0
      vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Tests/DataCollector/DoctrineDataCollectorTest.php
  92. 0 0
      vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Tests/DataFixtures/ContainerAwareLoaderTest.php
  93. 0 0
      vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/CompilerPass/RegisterEventListenersAndSubscribersPassTest.php
  94. 0 0
      vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Tests/DoctrineOrmTestCase.php
  95. 0 0
      vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Tests/Fixtures/AssociationEntity.php
  96. 0 0
      vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Tests/Fixtures/CompositeIdentEntity.php
  97. 0 0
      vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Tests/Fixtures/CompositeStringIdentEntity.php
  98. 0 0
      vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Tests/Fixtures/ContainerAwareFixture.php
  99. 0 0
      vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Tests/Fixtures/DoubleIdentEntity.php
  100. 0 0
      vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Tests/Fixtures/ItemGroupEntity.php

+ 13 - 0
app/Resources/translations/text.fr.yml View File

61
                       Cordialement,
61
                       Cordialement,
62
                       
62
                       
63
                       l'équipe de Muzi.ch
63
                       l'équipe de Muzi.ch
64
+
65
+help:
66
+  element_add_url:
67
+    title1:            Ajouter un partage: Adresse HTTP
68
+    text1:            |
69
+                      Vous devez mettre dans ce champ l'adresse de la page internet
70
+                      contenant la musique à partager. Faites bien attention a vous 
71
+                      trouver sur la page représentant la musique que vous souahitez 
72
+                      partager. Evitez par exemple de partager une adresse après 
73
+                      avoir effectué une recherche.
74
+    title2:           Exemple avec Youtube
75
+    title3:           Exemple avec Soundcloud
76
+                      

+ 2 - 0
app/Resources/translations/userui.fr.yml View File

148
     help:     |
148
     help:     |
149
               Copier ici le lien internet (http://) pointant sur la ressource 
149
               Copier ici le lien internet (http://) pointant sur la ressource 
150
               que vous souhaitez partager.
150
               que vous souhaitez partager.
151
+    more_help: Cliquez ici pour plus de détails
152
+              
151
   need_tags:
153
   need_tags:
152
     name:     Demander de l'aide pour tagger votre partage
154
     name:     Demander de l'aide pour tagger votre partage
153
   name:
155
   name:

+ 0 - 0
app/bootstrap.php.cache View File


+ 16 - 0
src/Muzich/CoreBundle/Controller/InfoController.php View File

52
     return array();
52
     return array();
53
   }
53
   }
54
   
54
   
55
+  public function helpboxAction($ressource_id)
56
+  {
57
+    if (!in_array($ressource_id, array(
58
+      'element_add_url'
59
+    )))
60
+    {
61
+      return $this->jsonNotFoundResponse();
62
+    }
63
+    
64
+    return $this->jsonResponse(array(
65
+      'status' => 'success',
66
+      'data'     => $this->render('MuzichCoreBundle:Helpbox:'.$ressource_id.'.html.twig')
67
+                      ->getContent()
68
+    ));
69
+  }
70
+  
55
 }
71
 }

+ 7 - 0
src/Muzich/CoreBundle/Resources/config/routing.yml View File

86
   pattern: /info/cgu
86
   pattern: /info/cgu
87
   defaults: { _controller: MuzichCoreBundle:Info:cgu }
87
   defaults: { _controller: MuzichCoreBundle:Info:cgu }
88
   
88
   
89
+### helper
90
+
91
+helpbox_bootstrap:
92
+  pattern: /info/help/{ressource_id}
93
+  defaults: { _controller: MuzichCoreBundle:Info:helpbox }
94
+
89
 ####
95
 ####
90
 
96
 
91
 element_edit:
97
 element_edit:
195
 url_get_embed_for_element:
201
 url_get_embed_for_element:
196
   pattern: /ajax/element/data/get/embed/{element_id}
202
   pattern: /ajax/element/data/get/embed/{element_id}
197
   defaults: { _controller: MuzichCoreBundle:Element:getEmbedCode, element_id: null }
203
   defaults: { _controller: MuzichCoreBundle:Element:getEmbedCode, element_id: null }
204
+

+ 67 - 0
src/Muzich/CoreBundle/Resources/public/css/main.css View File

1884
   font-weight: bold;
1884
   font-weight: bold;
1885
   text-decoration: none;
1885
   text-decoration: none;
1886
   color: black;
1886
   color: black;
1887
+}
1888
+
1889
+div#autoplay.popin_block
1890
+{
1891
+  width: 500px;
1892
+}
1893
+
1894
+div#helpbox
1895
+{
1896
+  width: 500px;
1897
+}
1898
+
1899
+div#helpbox h1
1900
+{
1901
+  margin-top: 0px;
1902
+}
1903
+
1904
+div#helpbox h2
1905
+{
1906
+  margin-top: 10px;
1907
+  margin-bottom: 10px;
1908
+}
1909
+
1910
+a#autoplay_previous
1911
+{
1912
+  float: left;
1913
+  text-decoration: none;
1914
+  margin-left: -120px;
1915
+  margin-top: 25px;
1916
+}
1917
+
1918
+a#autoplay_next
1919
+{
1920
+  float: right;
1921
+  text-decoration: none;
1922
+  margin-right: -120px;
1923
+  margin-top: 25px;
1924
+}
1925
+
1926
+a#autoplay_previous, a#autoplay_next, a#autoplay_close, a#helpbox_close
1927
+{
1928
+  background: #fff;
1929
+  padding: 5px;
1930
+  border: 10px solid #ddd;
1931
+  z-index: 99999;
1932
+  /*--Les différentes définitions de Box Shadow en CSS3--*/
1933
+  -webkit-box-shadow: 0px 0px 20px #000;
1934
+  -moz-box-shadow: 0px 0px 20px #000;
1935
+  box-shadow: 0px 0px 20px #000;
1936
+  /*--Coins arrondis en CSS3--*/
1937
+  -webkit-border-radius: 10px;
1938
+  -moz-border-radius: 10px;
1939
+  border-radius: 10px;
1940
+}
1941
+
1942
+a#autoplay_close, a#helpbox_close
1943
+{
1944
+  float: left;
1945
+  text-decoration: none;
1946
+  margin-top: 130px;
1947
+  margin-left: -110px;
1948
+  z-index: 99;
1949
+}
1950
+
1951
+a#helpbox_close
1952
+{
1953
+  margin-top: 10px;
1887
 }
1954
 }

+ 6 - 6
src/Muzich/CoreBundle/Resources/public/css/old.css View File

1333
   float: right;
1333
   float: right;
1334
   margin-top: -25px;
1334
   margin-top: -25px;
1335
 }
1335
 }
1336
-
1336
+/*
1337
 div#autoplay.popin_block
1337
 div#autoplay.popin_block
1338
 {
1338
 {
1339
   width: 500px;
1339
   width: 500px;
1340
-}
1340
+}*/
1341
 
1341
 
1342
-a#autoplay_previous
1342
+/*a#autoplay_previous
1343
 {
1343
 {
1344
   float: left;
1344
   float: left;
1345
   text-decoration: none;
1345
   text-decoration: none;
1361
   padding: 5px;
1361
   padding: 5px;
1362
   border: 10px solid #ddd;
1362
   border: 10px solid #ddd;
1363
   z-index: 99999;
1363
   z-index: 99999;
1364
-  /*--Les différentes définitions de Box Shadow en CSS3--*/
1364
+  --Les différentes définitions de Box Shadow en CSS3--
1365
   -webkit-box-shadow: 0px 0px 20px #000;
1365
   -webkit-box-shadow: 0px 0px 20px #000;
1366
   -moz-box-shadow: 0px 0px 20px #000;
1366
   -moz-box-shadow: 0px 0px 20px #000;
1367
   box-shadow: 0px 0px 20px #000;
1367
   box-shadow: 0px 0px 20px #000;
1368
-  /*--Coins arrondis en CSS3--*/
1368
+  --Coins arrondis en CSS3--
1369
   -webkit-border-radius: 10px;
1369
   -webkit-border-radius: 10px;
1370
   -moz-border-radius: 10px;
1370
   -moz-border-radius: 10px;
1371
   border-radius: 10px;
1371
   border-radius: 10px;
1378
   margin-top: 130px;
1378
   margin-top: 130px;
1379
   margin-left: -110px;
1379
   margin-left: -110px;
1380
   z-index: 99;
1380
   z-index: 99;
1381
-}
1381
+}*/
1382
 
1382
 
1383
 div#autoplay_title
1383
 div#autoplay_title
1384
 {
1384
 {

+ 28 - 0
src/Muzich/CoreBundle/Resources/public/js/muzich.js View File

2600
         top: '10%'
2600
         top: '10%'
2601
       });
2601
       });
2602
     $('#'+object_id).show();
2602
     $('#'+object_id).show();
2603
+    return 'fade';
2603
   }
2604
   }
2604
   
2605
   
2605
 /*
2606
 /*
2868
       }
2869
       }
2869
       
2870
       
2870
   });
2871
   });
2872
+  
2873
+  /* HELPBOX */
2874
+  $('.helpbox').live('click', function(){
2875
+    $('body').append(
2876
+      '<div id="helpbox" class="popin_block"><img src="/bundles/muzichcore/img/ajax-loader.gif" alt="loading..." /></div>'
2877
+    );
2878
+    open_popin_dialog('helpbox');
2879
+    JQueryJson($(this).attr('href'), {}, function(response){
2880
+      if (response.status == 'success')
2881
+      {
2882
+        $('div#helpbox').html(
2883
+          '<a href="javascript:void(0);" id="helpbox_close" >'+
2884
+            '<img src="/bundles/muzichcore/img/1317386146_cancel.png" alt="close" />'+
2885
+          '</a>'+
2886
+          response.data
2887
+        );
2888
+      }
2889
+    });
2890
+    
2891
+    return false;
2892
+  });
2893
+  $('a#helpbox_close').live('click', function(){
2894
+    // Fond gris
2895
+    $('#fade').fadeOut(1000, function(){$('#fade').remove();});
2896
+    // On cache le lecteur
2897
+    $('#helpbox').remove();
2898
+  });
2871
    
2899
    
2872
 });
2900
 });

+ 7 - 1
src/Muzich/CoreBundle/Resources/views/Element/form.add.html.twig View File

12
 
12
 
13
 <div id="form_add_first_part">
13
 <div id="form_add_first_part">
14
 
14
 
15
-  <span class="help">{{ 'element_add.url.help'|trans({}, 'userui') }}</span>
15
+  <span class="help">
16
+    {{ 'element_add.url.help'|trans({}, 'userui') }}
17
+    <a href="{{ path('helpbox_bootstrap', {'ressource_id':'element_add_url'}) }}" class="helpbox">
18
+      {{ 'element_add.url.more_help'|trans({}, 'userui') }}
19
+    </a>
20
+  </span>
21
+  
16
 
22
 
17
   <div class="field fom_add_url">
23
   <div class="field fom_add_url">
18
     {{ form_errors(form.url) }}
24
     {{ form_errors(form.url) }}

+ 15 - 0
src/Muzich/CoreBundle/Resources/views/Helpbox/element_add_url.html.twig View File

1
+<h1>{{ 'help.element_add_url.title1'|trans({}, 'text') }}</h1>
2
+
3
+<p>{{ 'help.element_add_url.text1'|trans({}, 'text') }}</p>
4
+
5
+<h2>{{ 'help.element_add_url.title2'|trans({}, 'text') }}</h2>
6
+
7
+<p style="text-align: center;">
8
+  <img src="{{ asset('img/capt1.png') }}" alt="capture1" />
9
+</p>
10
+
11
+<h2>{{ 'help.element_add_url.title3'|trans({}, 'text') }}</h2>
12
+
13
+<p style="text-align: center;">
14
+  <img src="{{ asset('img/capt2.png') }}" alt="capture2" />
15
+</p>

+ 0 - 0
src/Muzich/IndexBundle/Resources/views/Presubscription/confirm.txt.twig View File


+ 0 - 1
vendor/bin/doctrine View File

1
-../doctrine/orm/bin/doctrine

+ 4 - 0
vendor/bin/doctrine View File

1
+#!/usr/bin/env php
2
+<?php
3
+
4
+include('doctrine.php');

+ 0 - 1
vendor/bin/doctrine.php View File

1
-../doctrine/orm/bin/doctrine.php

+ 43 - 0
vendor/bin/doctrine.php View File

1
+<?php
2
+/*
3
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
4
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
5
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
6
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
7
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
8
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
9
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
10
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
11
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
12
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
13
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14
+ *
15
+ * This software consists of voluntary contributions made by many individuals
16
+ * and is licensed under the LGPL. For more information, see
17
+ * <http://www.doctrine-project.org>.
18
+ */
19
+
20
+(@include_once __DIR__ . '/../vendor/autoload.php') || @include_once __DIR__ . '/../../../autoload.php';
21
+$configFile = getcwd() . DIRECTORY_SEPARATOR . 'cli-config.php';
22
+
23
+$helperSet = null;
24
+if (file_exists($configFile)) {
25
+    if ( ! is_readable($configFile)) {
26
+        trigger_error(
27
+            'Configuration file [' . $configFile . '] does not have read permission.', E_ERROR
28
+        );
29
+    }
30
+
31
+    require $configFile;
32
+
33
+    foreach ($GLOBALS as $helperSetCandidate) {
34
+        if ($helperSetCandidate instanceof \Symfony\Component\Console\Helper\HelperSet) {
35
+            $helperSet = $helperSetCandidate;
36
+            break;
37
+        }
38
+    }
39
+}
40
+
41
+$helperSet = ($helperSet) ?: new \Symfony\Component\Console\Helper\HelperSet();
42
+
43
+\Doctrine\ORM\Tools\Console\ConsoleRunner::run($helperSet);

+ 0 - 1
vendor/gedmo/doctrine-extensions/schemas/orm/doctrine-extensions-mapping.xsd View File

1
-doctrine-extensions-mapping-2-2.xsd

+ 148 - 0
vendor/gedmo/doctrine-extensions/schemas/orm/doctrine-extensions-mapping.xsd View File

1
+<?xml version="1.0" encoding="UTF-8"?>
2
+
3
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
4
+    targetNamespace="http://gediminasm.org/schemas/orm/doctrine-extensions-mapping"
5
+    xmlns:gedmo="http://gediminasm.org/schemas/orm/doctrine-extensions-mapping"
6
+    elementFormDefault="qualified">
7
+
8
+  <xs:annotation>
9
+    <xs:documentation><![CDATA[
10
+       This is the XML Schema for the object/relational
11
+       mapping file used by the Doctrine Extensions by Gedmo
12
+       extensions
13
+       Doctrine component version support: 2.2.x
14
+     ]]></xs:documentation>
15
+  </xs:annotation>
16
+
17
+<!--
18
+It would be nice if we could force the gedmo with only necessary elements into each of doctrine elements.
19
+Patches that do that are more than welcome.
20
+Please note, that marking e.g filed element in xml document with xsi:type is not an option as we need to allow other
21
+people to push their own additional attributes/elements into the same field element and they should not extend our schema
22
+-->
23
+
24
+  <!-- entity -->
25
+  <xs:element name="translation" type="gedmo:translation"/>
26
+  <xs:element name="tree" type="gedmo:tree"/>
27
+  <xs:element name="tree-closure" type="gedmo:tree-closure"/>
28
+  <xs:element name="loggable" type="gedmo:loggable"/>
29
+  <xs:element name="soft-deleteable" type="gedmo:soft-deleteable"/>
30
+  <xs:element name="uploadable" type="gedmo:uploadable"/>
31
+  <!-- field -->
32
+  <xs:element name="slug" type="gedmo:slug"/>
33
+  <xs:element name="translatable" type="gedmo:translatable"/>
34
+  <xs:element name="timestampable" type="gedmo:timestampable"/>
35
+  <xs:element name="versioned" type="gedmo:emptyType"/>
36
+  <xs:element name="tree-left" type="gedmo:emptyType"/>
37
+  <xs:element name="tree-right" type="gedmo:emptyType"/>
38
+  <xs:element name="tree-level" type="gedmo:emptyType"/>
39
+  <xs:element name="tree-root" type="gedmo:emptyType"/>
40
+  <xs:element name="tree-parent" type="gedmo:emptyType"/>
41
+  <xs:element name="tree-path-source" type="gedmo:emptyType"/>
42
+  <xs:element name="tree-lock-time" type="gedmo:emptyType"/>
43
+  <xs:element name="sortable-group" type="gedmo:emptyType"/>
44
+  <xs:element name="sortable-position" type="gedmo:emptyType"/>
45
+  <xs:element name="uploadable-file-mime-type" type="gedmo:emptyType"/>
46
+  <xs:element name="uploadable-file-path" type="gedmo:emptyType"/>
47
+  <xs:element name="uploadable-file-size" type="gedmo:emptyType"/>
48
+
49
+  <xs:complexType name="translation">
50
+    <xs:attribute name="entity" type="xs:string" use="optional" />
51
+    <xs:attribute name="locale" type="xs:string" use="optional" />
52
+    <xs:attribute name="language" type="xs:string" use="optional" />
53
+  </xs:complexType>
54
+
55
+  <xs:complexType name="tree">
56
+    <xs:attribute name="type" type="gedmo:tree-type" default="nested" />
57
+    <xs:attribute name="activate-locking" type="xs:boolean" default="false" />
58
+    <xs:attribute name="locking-timeout" type="xs:integer" default="3" />
59
+  </xs:complexType>
60
+
61
+  <xs:complexType name="tree-closure">
62
+    <xs:attribute name="class" type="xs:string" use="required" />
63
+  </xs:complexType>
64
+
65
+  <xs:complexType name="tree-path">
66
+    <xs:attribute name="separator" type="xs:string" use="optional" default="|" />
67
+  </xs:complexType>
68
+
69
+  <xs:complexType name="loggable">
70
+    <xs:attribute name="log-entry-class" type="xs:string" use="optional" />
71
+  </xs:complexType>
72
+
73
+  <xs:complexType name="slug">
74
+    <xs:sequence>
75
+      <xs:element name="handler" type="gedmo:handler" minOccurs="0" maxOccurs="unbounded"/>
76
+    </xs:sequence>
77
+    <xs:attribute name="fields" type="xs:string" use="required"/>
78
+    <xs:attribute name="unique" type="xs:boolean" use="optional" />
79
+    <xs:attribute name="updatable" type="xs:boolean" use="optional" />
80
+    <xs:attribute name="separator" type="xs:string" use="optional" />
81
+    <xs:attribute name="style" type="gedmo:slug-style" use="optional" />
82
+  </xs:complexType>
83
+
84
+  <xs:complexType name="soft-deleteable">
85
+    <xs:attribute name="field-name" type="xs:string" use="required" />
86
+  </xs:complexType>
87
+  
88
+  <xs:complexType name="handler">
89
+    <xs:sequence>
90
+      <xs:element name="handler-option" type="gedmo:handler-option" minOccurs="0" maxOccurs="unbounded"/>
91
+    </xs:sequence>
92
+    <xs:attribute name="class" type="xs:string" use="required"/>
93
+  </xs:complexType>
94
+  
95
+  <xs:complexType name="handler-option">
96
+    <xs:attribute name="name" type="xs:string" use="required"/>
97
+    <xs:attribute name="value" type="xs:string" use="required"/>
98
+  </xs:complexType>
99
+
100
+  <xs:complexType name="timestampable">
101
+    <xs:attribute name="on" type="gedmo:timestampable-action" use="optional" />
102
+    <xs:attribute name="field" type="xs:string" use="optional" />
103
+    <xs:attribute name="value" type="xs:string" use="optional" />
104
+  </xs:complexType>
105
+
106
+  <xs:complexType name="translatable">
107
+    <xs:attribute name="fallback" type="xs:boolean" use="optional" />
108
+  </xs:complexType>
109
+
110
+  <xs:complexType name="emptyType">
111
+  </xs:complexType>
112
+
113
+  <xs:simpleType name="tree-type">
114
+    <xs:restriction base="xs:token">
115
+      <xs:enumeration value="nested"/>
116
+      <xs:enumeration value="closure"/>
117
+      <xs:enumeration value="materializedPath"/>
118
+    </xs:restriction>
119
+  </xs:simpleType>
120
+
121
+  <xs:simpleType name="slug-style">
122
+    <xs:restriction base="xs:token">
123
+      <xs:enumeration value="default"/>
124
+      <xs:enumeration value="camel"/>
125
+    </xs:restriction>
126
+  </xs:simpleType>
127
+
128
+  <xs:simpleType name="timestampable-action">
129
+    <xs:restriction base="xs:token">
130
+      <xs:enumeration value="create"/>
131
+      <xs:enumeration value="update"/>
132
+      <xs:enumeration value="change"/>
133
+    </xs:restriction>
134
+  </xs:simpleType>
135
+
136
+  <xs:complexType name="uploadable">
137
+    <xs:attribute name="allow-overwrite" type="xs:boolean" use="optional" />
138
+    <xs:attribute name="append-number" type="xs:boolean" use="optional" />
139
+    <xs:attribute name="callback" type="xs:string" use="optional" />
140
+    <xs:attribute name="path" type="xs:string" use="optional" />
141
+    <xs:attribute name="path-method" type="xs:string" use="optional" />
142
+    <xs:attribute name="filename-generator" type="xs:string" use="optional" />
143
+    <xs:attribute name="max-size" type="xs:double" use="optional" default="0" />
144
+    <xs:attribute name="allowed-types" type="xs:string" use="optional" />
145
+    <xs:attribute name="disallowed-types" type="xs:string" use="optional" />
146
+  </xs:complexType>
147
+
148
+</xs:schema>

+ 0 - 0
vendor/sonata-project/exporter/.gitignore View File


+ 0 - 0
vendor/sonata-project/exporter/.travis.yml View File


+ 0 - 0
vendor/sonata-project/exporter/README.md View File


+ 0 - 0
vendor/sonata-project/exporter/composer.json View File


+ 0 - 0
vendor/sonata-project/exporter/lib/Exporter/Exception/InvalidDataFormatException.php View File


+ 0 - 0
vendor/sonata-project/exporter/lib/Exporter/Exception/InvalidMethodCallException.php View File


+ 0 - 0
vendor/sonata-project/exporter/lib/Exporter/Handler.php View File


+ 0 - 0
vendor/sonata-project/exporter/lib/Exporter/Source/ArraySourceIterator.php View File


+ 0 - 0
vendor/sonata-project/exporter/lib/Exporter/Source/ChainSourceIterator.php View File


+ 0 - 0
vendor/sonata-project/exporter/lib/Exporter/Source/DoctrineDBALConnectionSourceIterator.php View File


+ 0 - 0
vendor/sonata-project/exporter/lib/Exporter/Source/DoctrineODMQuerySourceIterator.php View File


+ 0 - 0
vendor/sonata-project/exporter/lib/Exporter/Source/DoctrineORMQuerySourceIterator.php View File


+ 0 - 0
vendor/sonata-project/exporter/lib/Exporter/Source/IteratorSourceIterator.php View File


+ 0 - 0
vendor/sonata-project/exporter/lib/Exporter/Source/PDOStatementSourceIterator.php View File


+ 0 - 0
vendor/sonata-project/exporter/lib/Exporter/Source/SourceIteratorInterface.php View File


+ 0 - 0
vendor/sonata-project/exporter/lib/Exporter/Source/SymfonySitemapSourceIterator.php View File


+ 0 - 0
vendor/sonata-project/exporter/lib/Exporter/Writer/CsvWriter.php View File


+ 0 - 0
vendor/sonata-project/exporter/lib/Exporter/Writer/InMemoryWriter.php View File


+ 0 - 0
vendor/sonata-project/exporter/lib/Exporter/Writer/JsonWriter.php View File


+ 0 - 0
vendor/sonata-project/exporter/lib/Exporter/Writer/SitemapWriter.php View File


+ 0 - 0
vendor/sonata-project/exporter/lib/Exporter/Writer/WriterInterface.php View File


+ 0 - 0
vendor/sonata-project/exporter/lib/Exporter/Writer/XlsWriter.php View File


+ 0 - 0
vendor/sonata-project/exporter/lib/Exporter/Writer/XmlWriter.php View File


+ 0 - 0
vendor/sonata-project/exporter/phpunit.xml.dist View File


+ 0 - 0
vendor/sonata-project/exporter/test/Exporter/Test/HandlerTest.php View File


+ 0 - 0
vendor/sonata-project/exporter/test/Exporter/Test/Source/ArraySourceIteratorTest.php View File


+ 0 - 0
vendor/sonata-project/exporter/test/Exporter/Test/Source/ChainSourceIteratorTest.php View File


+ 0 - 0
vendor/sonata-project/exporter/test/Exporter/Test/Source/IteratorSourceIteratorTest.php View File


+ 0 - 0
vendor/sonata-project/exporter/test/Exporter/Test/Source/PDOStatementSourceIteratorTest.php View File


+ 0 - 0
vendor/sonata-project/exporter/test/Exporter/Test/Writer/CsvWriterTest.php View File


+ 0 - 0
vendor/sonata-project/exporter/test/Exporter/Test/Writer/JsonWriterTest.php View File


+ 0 - 0
vendor/sonata-project/exporter/test/Exporter/Test/Writer/SitemapWriterTest.php View File


+ 0 - 0
vendor/sonata-project/exporter/test/Exporter/Test/Writer/XlsWriterTest.php View File


+ 0 - 0
vendor/sonata-project/exporter/test/Exporter/Test/Writer/XmlWriterTest.php View File


+ 0 - 0
vendor/sonata-project/exporter/test/bootstrap.php View File


+ 0 - 0
vendor/symfony/symfony/.editorconfig View File


+ 0 - 0
vendor/symfony/symfony/.gitignore View File


+ 0 - 0
vendor/symfony/symfony/.travis.yml View File


+ 0 - 0
vendor/symfony/symfony/CHANGELOG-2.0.md View File


+ 0 - 0
vendor/symfony/symfony/CHANGELOG-2.1.md View File


+ 0 - 0
vendor/symfony/symfony/CONTRIBUTING.md View File


+ 0 - 0
vendor/symfony/symfony/CONTRIBUTORS.md View File


+ 0 - 0
vendor/symfony/symfony/README.md View File


+ 0 - 0
vendor/symfony/symfony/UPGRADE-2.1.md View File


+ 0 - 0
vendor/symfony/symfony/autoload.php.dist View File


+ 0 - 0
vendor/symfony/symfony/composer.json View File


+ 0 - 0
vendor/symfony/symfony/phpunit.xml.dist View File


+ 0 - 0
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/CHANGELOG.md View File


+ 0 - 0
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/CacheWarmer/ProxyCacheWarmer.php View File


+ 0 - 0
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/ContainerAwareEventManager.php View File


+ 0 - 0
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php View File


+ 0 - 0
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/DataFixtures/ContainerAwareLoader.php View File


+ 0 - 0
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php View File


+ 0 - 0
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/DoctrineValidationPass.php View File


+ 0 - 0
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterEventListenersAndSubscribersPass.php View File


+ 0 - 0
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/DependencyInjection/Security/UserProvider/EntityFactory.php View File


+ 0 - 0
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php View File


+ 0 - 0
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityLoaderInterface.php View File


+ 0 - 0
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Form/ChoiceList/ORMQueryBuilderLoader.php View File


+ 0 - 0
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Form/DataTransformer/CollectionToArrayTransformer.php View File


+ 0 - 0
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Form/DoctrineOrmExtension.php View File


+ 0 - 0
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Form/DoctrineOrmTypeGuesser.php View File


+ 0 - 0
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Form/EventListener/MergeDoctrineCollectionListener.php View File


+ 0 - 0
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php View File


+ 0 - 0
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Form/Type/EntityType.php View File


+ 0 - 0
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/HttpFoundation/DbalSessionHandler.php View File


+ 0 - 0
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/HttpFoundation/DbalSessionHandlerSchema.php View File


+ 0 - 0
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Logger/DbalLogger.php View File


+ 0 - 0
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/ManagerRegistry.php View File


+ 0 - 0
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/README.md View File


+ 0 - 0
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/RegistryInterface.php View File


+ 0 - 0
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Security/User/EntityUserProvider.php View File


+ 0 - 0
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Tests/ContainerAwareEventManagerTest.php View File


+ 0 - 0
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Tests/DataCollector/DoctrineDataCollectorTest.php View File


+ 0 - 0
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Tests/DataFixtures/ContainerAwareLoaderTest.php View File


+ 0 - 0
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/CompilerPass/RegisterEventListenersAndSubscribersPassTest.php View File


+ 0 - 0
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Tests/DoctrineOrmTestCase.php View File


+ 0 - 0
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Tests/Fixtures/AssociationEntity.php View File


+ 0 - 0
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Tests/Fixtures/CompositeIdentEntity.php View File


+ 0 - 0
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Tests/Fixtures/CompositeStringIdentEntity.php View File


+ 0 - 0
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Tests/Fixtures/ContainerAwareFixture.php View File


+ 0 - 0
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Tests/Fixtures/DoubleIdentEntity.php View File


+ 0 - 0
vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Tests/Fixtures/ItemGroupEntity.php View File


Some files were not shown because too many files changed in this diff