# HG changeset patch # User cavaliet # Date 1330077301 -3600 # Node ID 021131fbe2c571695ce3bac8f1ff26ccae33cc72 # Parent bb7808e180c36f859a9d986d6639d87504c9e71e# Parent ca2a145e67f350ba8d00c9ff62e9ad001f2c1c8e merge diff -r bb7808e180c3 -r 021131fbe2c5 .buildpath --- a/.buildpath Thu Feb 23 18:52:59 2012 +0100 +++ b/.buildpath Fri Feb 24 10:55:01 2012 +0100 @@ -1,3 +1,11 @@ + diff -r bb7808e180c3 -r 021131fbe2c5 .hgignore --- a/.hgignore Thu Feb 23 18:52:59 2012 +0100 +++ b/.hgignore Fri Feb 24 10:55:01 2012 +0100 @@ -1,3 +1,11 @@ +## +# This file is part of the WikiTagBundle package. +# +# (c) IRI +# +# For the full copyright and license information, please view the LICENSE +# file that was distributed with this source code. +## syntax: regexp ^\.settings$ .*\.orig$ diff -r bb7808e180c3 -r 021131fbe2c5 .project --- a/.project Thu Feb 23 18:52:59 2012 +0100 +++ b/.project Fri Feb 24 10:55:01 2012 +0100 @@ -1,3 +1,11 @@ + wikitag diff -r bb7808e180c3 -r 021131fbe2c5 Command/CreateSchemaDoctrineCommand.php --- a/Command/CreateSchemaDoctrineCommand.php Thu Feb 23 18:52:59 2012 +0100 +++ b/Command/CreateSchemaDoctrineCommand.php Fri Feb 24 10:55:01 2012 +0100 @@ -1,5 +1,4 @@ -* -* For the full copyright and license information, please view the LICENSE -* file that was distributed with this source code. -*/ + * This file is part of the WikiTagBundle package. + * + * (c) IRI + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ namespace IRI\Bundle\WikiTagBundle\Controller; diff -r bb7808e180c3 -r 021131fbe2c5 DependencyInjection/Configuration.php --- a/DependencyInjection/Configuration.php Thu Feb 23 18:52:59 2012 +0100 +++ b/DependencyInjection/Configuration.php Fri Feb 24 10:55:01 2012 +0100 @@ -1,5 +1,12 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ namespace IRI\Bundle\WikiTagBundle\DependencyInjection; use Symfony\Component\Config\Definition\ScalarNode; diff -r bb7808e180c3 -r 021131fbe2c5 DependencyInjection/WikiTagExtension.php --- a/DependencyInjection/WikiTagExtension.php Thu Feb 23 18:52:59 2012 +0100 +++ b/DependencyInjection/WikiTagExtension.php Fri Feb 24 10:55:01 2012 +0100 @@ -1,4 +1,12 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ namespace IRI\Bundle\WikiTagBundle\DependencyInjection; diff -r bb7808e180c3 -r 021131fbe2c5 Entity/Category.php --- a/Entity/Category.php Thu Feb 23 18:52:59 2012 +0100 +++ b/Entity/Category.php Fri Feb 24 10:55:01 2012 +0100 @@ -1,4 +1,12 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ namespace IRI\Bundle\WikiTagBundle\Entity; diff -r bb7808e180c3 -r 021131fbe2c5 Entity/CategoryRepository.php --- a/Entity/CategoryRepository.php Thu Feb 23 18:52:59 2012 +0100 +++ b/Entity/CategoryRepository.php Fri Feb 24 10:55:01 2012 +0100 @@ -1,4 +1,12 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ namespace IRI\Bundle\WikiTagBundle\Entity; diff -r bb7808e180c3 -r 021131fbe2c5 Entity/DocumentRepository.php --- a/Entity/DocumentRepository.php Thu Feb 23 18:52:59 2012 +0100 +++ b/Entity/DocumentRepository.php Fri Feb 24 10:55:01 2012 +0100 @@ -1,4 +1,12 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ namespace IRI\Bundle\WikiTagBundle\Entity; diff -r bb7808e180c3 -r 021131fbe2c5 Entity/DocumentTag.php --- a/Entity/DocumentTag.php Thu Feb 23 18:52:59 2012 +0100 +++ b/Entity/DocumentTag.php Fri Feb 24 10:55:01 2012 +0100 @@ -1,4 +1,12 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ namespace IRI\Bundle\WikiTagBundle\Entity; diff -r bb7808e180c3 -r 021131fbe2c5 Entity/DocumentTagRepository.php --- a/Entity/DocumentTagRepository.php Thu Feb 23 18:52:59 2012 +0100 +++ b/Entity/DocumentTagRepository.php Fri Feb 24 10:55:01 2012 +0100 @@ -1,4 +1,12 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ namespace IRI\Bundle\WikiTagBundle\Entity; diff -r bb7808e180c3 -r 021131fbe2c5 Entity/Tag.php --- a/Entity/Tag.php Thu Feb 23 18:52:59 2012 +0100 +++ b/Entity/Tag.php Fri Feb 24 10:55:01 2012 +0100 @@ -1,4 +1,12 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ namespace IRI\Bundle\WikiTagBundle\Entity; diff -r bb7808e180c3 -r 021131fbe2c5 Entity/TagRepository.php --- a/Entity/TagRepository.php Thu Feb 23 18:52:59 2012 +0100 +++ b/Entity/TagRepository.php Fri Feb 24 10:55:01 2012 +0100 @@ -1,4 +1,12 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ namespace IRI\Bundle\WikiTagBundle\Entity; @@ -36,8 +44,10 @@ public function getCompletion($seed) { $qb = $this->getEntityManager()->createQueryBuilder(); - $qb->select('DISTINCT t.label'); + $qb->select('t.label', 'COUNT(dt.id) AS nb_docs'); $qb->from('WikiTagBundle:Tag','t'); + $qb->leftJoin('t.documents', 'dt', 'WITH', 't = dt.tag'); + $qb->addGroupBy('t.label'); $qb->where($qb->expr()->orx( $qb->expr()->like('t.label',$qb->expr()->literal(addcslashes(mysql_real_escape_string($seed),"%_")."%")), $qb->expr()->like('t.label',$qb->expr()->literal("%".addcslashes(mysql_real_escape_string($seed),"%_"))), diff -r bb7808e180c3 -r 021131fbe2c5 Model/DocumentInterface.php --- a/Model/DocumentInterface.php Thu Feb 23 18:52:59 2012 +0100 +++ b/Model/DocumentInterface.php Fri Feb 24 10:55:01 2012 +0100 @@ -1,5 +1,4 @@ +# +# For the full copyright and license information, please view the LICENSE +# file that was distributed with this source code. +## + IRI\Bundle\WikiTagBundle\Entity\Category: type: entity repositoryClass: IRI\Bundle\WikiTagBundle\Entity\CategoryRepository diff -r bb7808e180c3 -r 021131fbe2c5 Resources/config/doctrine/Document.orm.yml --- a/Resources/config/doctrine/Document.orm.yml Thu Feb 23 18:52:59 2012 +0100 +++ b/Resources/config/doctrine/Document.orm.yml Fri Feb 24 10:55:01 2012 +0100 @@ -1,3 +1,12 @@ +## +# This file is part of the WikiTagBundle package. +# +# (c) IRI +# +# For the full copyright and license information, please view the LICENSE +# file that was distributed with this source code. +## + IRI\Bundle\WikiTagBundle\Entity\Document: type: entity repositoryClass: IRI\Bundle\WikiTagBundle\Entity\DocumentRepository diff -r bb7808e180c3 -r 021131fbe2c5 Resources/config/doctrine/DocumentTag.orm.yml --- a/Resources/config/doctrine/DocumentTag.orm.yml Thu Feb 23 18:52:59 2012 +0100 +++ b/Resources/config/doctrine/DocumentTag.orm.yml Fri Feb 24 10:55:01 2012 +0100 @@ -1,3 +1,12 @@ +## +# This file is part of the WikiTagBundle package. +# +# (c) IRI +# +# For the full copyright and license information, please view the LICENSE +# file that was distributed with this source code. +## + IRI\Bundle\WikiTagBundle\Entity\DocumentTag: type: entity repositoryClass: IRI\Bundle\WikiTagBundle\Entity\DocumentTagRepository diff -r bb7808e180c3 -r 021131fbe2c5 Resources/config/doctrine/Tag.orm.yml --- a/Resources/config/doctrine/Tag.orm.yml Thu Feb 23 18:52:59 2012 +0100 +++ b/Resources/config/doctrine/Tag.orm.yml Fri Feb 24 10:55:01 2012 +0100 @@ -1,3 +1,12 @@ +## +# This file is part of the WikiTagBundle package. +# +# (c) IRI +# +# For the full copyright and license information, please view the LICENSE +# file that was distributed with this source code. +## + IRI\Bundle\WikiTagBundle\Entity\Tag: type: entity repositoryClass: IRI\Bundle\WikiTagBundle\Entity\TagRepository diff -r bb7808e180c3 -r 021131fbe2c5 Resources/config/routing.yml --- a/Resources/config/routing.yml Thu Feb 23 18:52:59 2012 +0100 +++ b/Resources/config/routing.yml Fri Feb 24 10:55:01 2012 +0100 @@ -1,3 +1,12 @@ +## +# This file is part of the WikiTagBundle package. +# +# (c) IRI +# +# For the full copyright and license information, please view the LICENSE +# file that was distributed with this source code. +## + wikitag_home: pattern: / defaults: { _controller: WikiTagBundle:WikiTag:index } diff -r bb7808e180c3 -r 021131fbe2c5 Resources/config/services.yml --- a/Resources/config/services.yml Thu Feb 23 18:52:59 2012 +0100 +++ b/Resources/config/services.yml Fri Feb 24 10:55:01 2012 +0100 @@ -1,3 +1,12 @@ +## +# This file is part of the WikiTagBundle package. +# +# (c) IRI +# +# For the full copyright and license information, please view the LICENSE +# file that was distributed with this source code. +## + parameters: # wiki_tag.example.class: IRI\Bundle\WikiTagBundle\Example wiki_tag.document_listener.class: IRI\Bundle\WikiTagBundle\Listener\DocumentListener diff -r bb7808e180c3 -r 021131fbe2c5 Resources/public/css/clickmenu.css --- a/Resources/public/css/clickmenu.css Thu Feb 23 18:52:59 2012 +0100 +++ b/Resources/public/css/clickmenu.css Fri Feb 24 10:55:01 2012 +0100 @@ -1,3 +1,12 @@ +/* + * This file is part of the WikiTagBundle package. + * + * (c) IRI + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + div.cmDiv { border: 1px solid black; diff -r bb7808e180c3 -r 021131fbe2c5 Resources/public/css/wikiTag.css --- a/Resources/public/css/wikiTag.css Thu Feb 23 18:52:59 2012 +0100 +++ b/Resources/public/css/wikiTag.css Fri Feb 24 10:55:01 2012 +0100 @@ -1,3 +1,12 @@ +/* + * This file is part of the WikiTagBundle package. + * + * (c) IRI + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + @charset "UTF-8"; .wikitag_hand_cursor, .wikitag_reset_wp_info { diff -r bb7808e180c3 -r 021131fbe2c5 Resources/public/js/wikiTag.js --- a/Resources/public/js/wikiTag.js Thu Feb 23 18:52:59 2012 +0100 +++ b/Resources/public/js/wikiTag.js Fri Feb 24 10:55:01 2012 +0100 @@ -1,4 +1,13 @@ // -*- coding: utf-8 -*- +/* + * This file is part of the WikiTagBundle package. + * + * (c) IRI + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + function wikitag_init_tags_events() { // Tag simple operations : activate/unactivate wp link, reset wp info, remove wp link, remove tag from list diff -r bb7808e180c3 -r 021131fbe2c5 Resources/translations/messages.fr.xliff --- a/Resources/translations/messages.fr.xliff Thu Feb 23 18:52:59 2012 +0100 +++ b/Resources/translations/messages.fr.xliff Fri Feb 24 10:55:01 2012 +0100 @@ -1,3 +1,11 @@ + diff -r bb7808e180c3 -r 021131fbe2c5 Resources/views/WikiTag/TagList.html.twig --- a/Resources/views/WikiTag/TagList.html.twig Thu Feb 23 18:52:59 2012 +0100 +++ b/Resources/views/WikiTag/TagList.html.twig Fri Feb 24 10:55:01 2012 +0100 @@ -1,3 +1,11 @@ +{# + This file is part of the WikiTagBundle package. + + (c) IRI + + For the full copyright and license information, please view the LICENSE + file that was distributed with this source code. +#}

Chercher : {% for k,v in search_def %} diff -r bb7808e180c3 -r 021131fbe2c5 Resources/views/WikiTag/TagListTable.html.twig --- a/Resources/views/WikiTag/TagListTable.html.twig Thu Feb 23 18:52:59 2012 +0100 +++ b/Resources/views/WikiTag/TagListTable.html.twig Fri Feb 24 10:55:01 2012 +0100 @@ -1,3 +1,11 @@ +{# + This file is part of the WikiTagBundle package. + + (c) IRI + + For the full copyright and license information, please view the LICENSE + file that was distributed with this source code. +#} {% block tag_table %} diff -r bb7808e180c3 -r 021131fbe2c5 Resources/views/WikiTag/contextSearchDiv.html.twig --- a/Resources/views/WikiTag/contextSearchDiv.html.twig Thu Feb 23 18:52:59 2012 +0100 +++ b/Resources/views/WikiTag/contextSearchDiv.html.twig Fri Feb 24 10:55:01 2012 +0100 @@ -1,3 +1,11 @@ +{# + This file is part of the WikiTagBundle package. + + (c) IRI + + For the full copyright and license information, please view the LICENSE + file that was distributed with this source code. +#} {# partial display for context search div #}

Choisissez le tag à ajouterX

diff -r bb7808e180c3 -r 021131fbe2c5 Resources/views/WikiTag/css.html.twig --- a/Resources/views/WikiTag/css.html.twig Thu Feb 23 18:52:59 2012 +0100 +++ b/Resources/views/WikiTag/css.html.twig Fri Feb 24 10:55:01 2012 +0100 @@ -1,3 +1,11 @@ +{# + This file is part of the WikiTagBundle package. + + (c) IRI + + For the full copyright and license information, please view the LICENSE + file that was distributed with this source code. +#} {# partial display to add the needed CSS #} diff -r bb7808e180c3 -r 021131fbe2c5 Resources/views/WikiTag/documentTags.html.twig --- a/Resources/views/WikiTag/documentTags.html.twig Thu Feb 23 18:52:59 2012 +0100 +++ b/Resources/views/WikiTag/documentTags.html.twig Fri Feb 24 10:55:01 2012 +0100 @@ -1,3 +1,11 @@ +{# + This file is part of the WikiTagBundle package. + + (c) IRI + + For the full copyright and license information, please view the LICENSE + file that was distributed with this source code. +#} {# partial display document's tags #} {% block document_tags %}
diff -r bb7808e180c3 -r 021131fbe2c5 Resources/views/WikiTag/javascript.html.twig --- a/Resources/views/WikiTag/javascript.html.twig Thu Feb 23 18:52:59 2012 +0100 +++ b/Resources/views/WikiTag/javascript.html.twig Fri Feb 24 10:55:01 2012 +0100 @@ -1,3 +1,11 @@ +{# + This file is part of the WikiTagBundle package. + + (c) IRI + + For the full copyright and license information, please view the LICENSE + file that was distributed with this source code. +#} {# partial display to add the needed Javascript #} diff -r bb7808e180c3 -r 021131fbe2c5 Resources/views/WikiTag/javascriptForContextSearch.html.twig --- a/Resources/views/WikiTag/javascriptForContextSearch.html.twig Thu Feb 23 18:52:59 2012 +0100 +++ b/Resources/views/WikiTag/javascriptForContextSearch.html.twig Fri Feb 24 10:55:01 2012 +0100 @@ -1,3 +1,11 @@ +{# + This file is part of the WikiTagBundle package. + + (c) IRI + + For the full copyright and license information, please view the LICENSE + file that was distributed with this source code. +#} {# partial display to add the needed Javascript for context search #} {# We suppose the all the JS (jquery and stuffs and wikiTag.js) have already been loaded. See javascript.html.twig #}
id