Permalink
Browse files

[swToolboxPlugin] remove swDynamicForm files

git-svn-id: http://svn.symfony-project.com/plugins/swToolboxPlugin/sf1.2/trunk@21678 ee427ae8-e902-0410-961c-c3ed070cd9f9
  • Loading branch information...
1 parent a52ee1f commit 8c27c1d0530bccf49c332ba9029c81587830056c @rande committed Sep 3, 2009
View
@@ -2,34 +2,7 @@
<xliff version="1.0">
<file orginal="global" source-language="en_EN" datatype="plaintext">
<body>
-
- <!-- swWidgetFormDoctrineSelectNestedSetPosition -->
- <trans-unit id="1">
- <source>label_first_child_of</source>
- <target>First child of</target>
- </trans-unit>
- <trans-unit id="1">
- <source>label_last_child_of</source>
- <target>Last child of</target>
- </trans-unit>
- <trans-unit id="1">
- <source>label_previous_sibling_of</source>
- <target>Previous sibling of</target>
- </trans-unit>
- <trans-unit id="1">
- <source>label_next_sibling_of</source>
- <target>Next sibling of</target>
- </trans-unit>
- <trans-unit id="1">
- <source>label_parent_of</source>
- <target>Parent of</target>
- </trans-unit>
- <trans-unit id="1">
- <source>label_change_position</source>
- <target>Change position</target>
- </trans-unit>
- </body>
-
+
<!-- Notice messages -->
<trans-unit id="1">
<source>notice_your_change_has_been_saved</source>
@@ -44,20 +17,5 @@
<target>Element deleted !</target>
</trans-unit>
- <!-- Trilean Selector -->
- <trans-unit id="1">
- <source>label_no</source>
- <target>No</target>
- </trans-unit>
- <trans-unit id="1">
- <source>label_yes</source>
- <target>Yes</target>
- </trans-unit>
- <trans-unit id="1">
- <source>label_not_defined</source>
- <target>Not defined</target>
- </trans-unit>
-
-
</file>
</xliff>
View
@@ -2,32 +2,6 @@
<xliff version="1.0">
<file orginal="global" source-language="en_EN" datatype="plaintext">
<body>
-
- <!-- swWidgetFormDoctrineSelectNestedSetPosition -->
- <trans-unit id="1">
- <source>label_first_child_of</source>
- <target>Premier enfant</target>
- </trans-unit>
- <trans-unit id="1">
- <source>label_last_child_of</source>
- <target>Dernier enfant</target>
- </trans-unit>
- <trans-unit id="1">
- <source>label_previous_sibling_of</source>
- <target>Avant l'élément</target>
- </trans-unit>
- <trans-unit id="1">
- <source>label_next_sibling_of</source>
- <target>Aprés l'élément</target>
- </trans-unit>
- <trans-unit id="1">
- <source>label_parent_of</source>
- <target>Comme parent de</target>
- </trans-unit>
- <trans-unit id="1">
- <source>label_change_position</source>
- <target>Modifier la position</target>
- </trans-unit>
<!-- Notice messages -->
<trans-unit id="1">
@@ -42,20 +16,6 @@
<source>notice_element_deleted</source>
<target>Elément supprimé !</target>
</trans-unit>
-
- <!-- Trilean Selector -->
- <trans-unit id="1">
- <source>label_no</source>
- <target>Non</target>
- </trans-unit>
- <trans-unit id="1">
- <source>label_yes</source>
- <target>Oui</target>
- </trans-unit>
- <trans-unit id="1">
- <source>label_not_defined</source>
- <target>Pas définie</target>
- </trans-unit>
</body>
</file>
</xliff>
@@ -1,166 +0,0 @@
-<?php
-/*
- * $Id$
- *
- * (c) 2008 Thomas Rabaix <thomas.rabaix@soleoweb.com>
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * This software consists of voluntary contributions made by many individuals
- * and is licensed under the LGPL. For more information, see
- * <http://www.soleoweb.com>.
- */
-
-/**
- *
- * @package swToolboxPlugin
- * @author Thomas Rabaix <thomas.rabaix@soleoweb.com>
- * @version SVN: $Id$
- */
-class swMenuElement
-{
-
- static
- $idx = array();
-
- protected
- $name = null,
- $route = null,
- $child = array(),
- $selected = false,
- $uid = null,
- $module = null,
- $formatter = null,
- $bound = false,
- $style = '',
- $class = '',
- $id = '',
- $parent = ''
- ;
-
- public function __construct(array $options = array())
- {
- $this->name = isset($options['name']) ? $options['name'] : null;
- $this->route = isset($options['route']) ? $options['route'] : null;
- $this->id = isset($options['id']) ? $options['id'] : null;
- $this->style = isset($options['style']) ? $options['style'] : null;
- $this->class = isset($options['class']) ? $options['class'] : null;
- }
-
- public function getFormatter()
- {
- if(!$this->formatter instanceof swMenuElementFormatter)
- {
- $this->formatter = new swMenuElementFormatter;
- }
-
- return $this->formatter;
- }
-
- public function setFormatter(swMenuElementFormatter $formatter)
- {
- $this->formatter = $formatter;
- }
-
- public function render($level = 0)
- {
-
- return $this->getFormatter()->render($this, $level);
- }
-
- public function addChild(swMenuElement $child_element)
- {
- if(!is_null($child_element->getId()))
- {
- if(isset(self::$idx[$child_element->getId()]))
- {
- foreach($child_element->getChildren() as $child)
- {
- self::$idx[$child_element->getId()]->addChild($child);
- }
-
- return;
- }
- else
- {
- self::$idx[$child_element->getId()] = $child_element;
- }
- }
-
- $this->child[] = $child_element;
- }
-
-
- public function getRoute()
- {
-
- return $this->route;
- }
-
- public function setRoute($route)
- {
- $this->route = $route;
- }
-
- public function getLinkParams()
- {
-
- return array();
- }
-
- public function setBound($bool)
- {
- $this->bound = $bool;
- }
-
- public function isBound()
- {
-
- return $this->bound;
- }
-
- public function getClass()
- {
-
- return $this->class;
- }
-
- public function getStyle()
- {
-
- return $this->style;
- }
-
- public function getId()
- {
-
- return $this->id;
- }
-
- public function setName($name)
- {
- $this->name = $name;
- }
-
- public function getName()
- {
-
- return $this->name;
- }
-
- public function getChildren()
- {
-
- return $this->child;
- }
-}
@@ -1,80 +0,0 @@
-<?php
-
-/*
- * $Id$
- *
- * (c) 2008 Thomas Rabaix <thomas.rabaix@soleoweb.com>
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * This software consists of voluntary contributions made by many individuals
- * and is licensed under the LGPL. For more information, see
- * <http://www.soleoweb.com>.
- */
-
-/**
- *
- * @package swToolboxPlugin
- * @author Thomas Rabaix <thomas.rabaix@soleoweb.com>
- * @version SVN: $Id$
- */
-class swMenuElementFormatter
-{
-
- public function renderLink($element, $level = 0)
- {
- $name = str_repeat("&nbsp;&nbsp;", $level * 2).$element->getName();
- $link_to = $name;
-
- if($element->getRoute())
- {
- $link_to = link_to($name, $element->getRoute(), $element->getLinkParams());
- }
-
- return $link_to;
- }
-
- public function render(swMenuElement $element, $level = 0)
- {
-
- $html = '';
-
- if($level > 0)
- {
- $html .= sprintf("<li class='%s' style='%s' id='%s'>%s",
- $element->getClass(),
- $element->getStyle(),
- $element->getId(),
- $this->renderLink($element, $level))
- ;
- }
-
- if(count($element->getChildren()) > 0)
- {
- $html .= sprintf("<ul class='sw-menu-element sw-menu-element-group-level-%s'>", $level);
- foreach($element->getChildren() as $child)
- {
- $html .= $child->render($level + 1);
- }
-
- $html .= "</ul>";
- }
-
- if($level > 0)
- {
- $html .= "</li>";
- }
-
- return $html;
- }
-}
@@ -1,37 +0,0 @@
-<?php
-/*
- * $Id$
- *
- * (c) 2008 Thomas Rabaix <thomas.rabaix@soleoweb.com>
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * This software consists of voluntary contributions made by many individuals
- * and is licensed under the LGPL. For more information, see
- * <http://www.soleoweb.com>.
- */
-
-/**
- *
- * @package swToolboxPlugin
- * @author Thomas Rabaix <thomas.rabaix@soleoweb.com>
- * @version SVN: $Id$
- */
-class swMenuHandler
-{
- public function canBuild(array $menus, sfActionStackEntry $action_entry)
- {
-
- return true;
- }
-}
Oops, something went wrong.

0 comments on commit 8c27c1d

Please sign in to comment.