Author: ornicar2
Date: 2010-02-12 22:06:13 +0100 (Fri, 12 Feb 2010)
New Revision: 27986

Removed:
   plugins/diemPlugin/trunk/dmCorePlugin/lib/view/html/dmRecursivePageList.php
Modified:
   plugins/diemPlugin/trunk/
Log:
[Diem] preparing migration to git...
- removed svn:external to dmFlowPlayerPlugin
- removed deprecated class dmRecursivePageList


Property changes on: plugins/diemPlugin/trunk
___________________________________________________________________
Modified: svn:externals
   - symfony http://svn.symfony-project.com/branches/1.4/
dmCorePlugin/plugins/sfImageTransformPlugin 
http://svn.symfony-project.com/plugins/sfImageTransformPlugin/trunk/
dmCorePlugin/plugins/sfWebBrowserPlugin 
http://svn.symfony-project.com/plugins/sfWebBrowserPlugin/trunk/
dmCorePlugin/test/project/plugins/dmFlowPlayerPlugin 
http://svn.symfony-project.com/plugins/dmFlowPlayerPlugin/
dmCorePlugin/test/project/plugins/dmTagPlugin 
http://svn.symfony-project.com/plugins/dmTagPlugin/
dmCorePlugin/plugins/sfFeed2Plugin 
http://svn.symfony-project.com/plugins/sfFeed2Plugin/branches/1.2/
dmCorePlugin/plugins/sfFormExtraPlugin 
http://svn.symfony-project.com/plugins/sfFormExtraPlugin/tags/RELEASE_1_1_1/

   + symfony http://svn.symfony-project.com/branches/1.4/
dmCorePlugin/plugins/sfImageTransformPlugin 
http://svn.symfony-project.com/plugins/sfImageTransformPlugin/trunk/
dmCorePlugin/plugins/sfWebBrowserPlugin 
http://svn.symfony-project.com/plugins/sfWebBrowserPlugin/trunk/
dmCorePlugin/test/project/plugins/dmTagPlugin 
http://svn.symfony-project.com/plugins/dmTagPlugin/
dmCorePlugin/plugins/sfFeed2Plugin 
http://svn.symfony-project.com/plugins/sfFeed2Plugin/branches/1.2/
dmCorePlugin/plugins/sfFormExtraPlugin 
http://svn.symfony-project.com/plugins/sfFormExtraPlugin/tags/RELEASE_1_1_1/


Deleted: 
plugins/diemPlugin/trunk/dmCorePlugin/lib/view/html/dmRecursivePageList.php
===================================================================
--- plugins/diemPlugin/trunk/dmCorePlugin/lib/view/html/dmRecursivePageList.php 
2010-02-12 20:58:21 UTC (rev 27985)
+++ plugins/diemPlugin/trunk/dmCorePlugin/lib/view/html/dmRecursivePageList.php 
2010-02-12 21:06:13 UTC (rev 27986)
@@ -1,90 +0,0 @@
-<?php
-
-abstract class dmRecursivePageList
-{
-  protected
-  $tree,
-  $options,
-  $culture,
-  $html,
-  $level,
-  $lastLevel;
-
-  public function __construct($culture = null)
-  {
-    $this->culture  = null === $this->culture ? dm::getUser()->getCulture() : 
$culture;
-    $this->tree     = $this->getTree();
-  }
-
-  protected function getTree()
-  {
-    $pageTable = dmDb::table('DmPage');
-
-    $q = $pageTable->createQuery('page')
-    ->withI18n($this->culture)
-    ->select('page.id, page.action, pageTranslation.name, 
pageTranslation.slug');
-
-    $treeObject = $pageTable->getTree();
-    $treeObject->setBaseQuery($q);
-    $tree = $treeObject->fetchTree(array(), Doctrine_Core::HYDRATE_NONE);
-    $treeObject->resetBaseQuery();
-
-    return $tree;
-  }
-
-  public function render($options = array())
-  {
-    $this->options = dmString::toArray($options, true);
-
-    $this->html = isset($this->options['class'])
-    ? '<ul class="'.dmArray::get($this->options, 'class').'">'
-    : '<ul>';
-
-    $this->lastLevel = false;
-    foreach($this->tree as $node)
-    {
-      $this->level = $node[4];
-      $this->html .= $this->renderNode($node);
-      $this->lastLevel = $this->level;
-    }
-
-    $this->html .= str_repeat('</li></ul>', $this->lastLevel+1);
-
-    return $this->html;
-  }
-
-  protected function renderNode(array $page)
-  {
-    $id = $page[0];
-
-    /*
-     * First time, don't insert nothing
-     */
-    if ($this->lastLevel === false)
-    {
-      $html = '';
-    }
-    else
-    {
-      if ($this->level === $this->lastLevel)
-      {
-        $html = '</li>';
-      }
-      elseif ($this->level > $this->lastLevel)
-      {
-        $html = '<ul>';
-      }
-      else // $this->level < $this->lastLevel
-      {
-        $html = str_repeat('</li></ul>', $this->lastLevel - 
$this->level).'</li>';
-      }
-    }
-
-    $html .= '<li id="dmp'.$id.'">';
-
-    $html .= $this->getPageLink($page);
-
-    return $html;
-  }
-
-}
\ No newline at end of file

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to