Horde_UI:: -> Horde_Ui
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 19 Nov 2009 20:09:19 +0000 (13:09 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 19 Nov 2009 20:09:19 +0000 (13:09 -0700)
48 files changed:
ansel/faces/gallery.php
ansel/faces/search/all.php
ansel/faces/search/image_search.php
ansel/faces/search/name.php
ansel/faces/search/named.php
ansel/faces/search/owner.php
ansel/faces/search/tabs.php
ansel/group.php
ansel/lib/Block/cloud.php
ansel/lib/View/GalleryRenderer/Gallery.php
ansel/lib/View/GalleryRenderer/GalleryLightbox.php
ansel/lib/View/List.php
ansel/lib/View/Results.php
babel/view.php
beatnik/listzones.php
fima/lib/UI/VarRenderer/fima.php
fima/postings.php
folks/account/tabs.php
folks/activity.php
folks/birthday.php
folks/edit/tabs.php
folks/list.php
folks/new.php
folks/online.php
folks/popularity.php
folks/search.php
gollem/manager.php
imp/search.php
ingo/lib/UI/VarRenderer/ingo.php
ingo/spam.php
koward/lib/Koward/Controller/ObjectController.php
koward/package.xml
kronolith/attendees.php
kronolith/lib/Event.php
kronolith/lib/Kronolith.php
nag/lib/UI/VarRenderer/nag.php
nag/list.php
news/admin/tabs.php
news/lib/Forms/Search.php
news/lib/Search.php
news/lib/TagCloud.php
skoli/entry.php
turba/contact.php
turba/docs/CHANGES
turba/lib/ListView.php
turba/templates/browse/search.inc
vilma/lib/Vilma.php
vilma/users/index.php

index 21a2aa6..04c4807 100644 (file)
@@ -40,7 +40,7 @@ $customurl = Horde_Util::addParameter(Horde::applicationUrl('faces/custom.php'),
 $face = Ansel_Faces::factory();
 $autogenerate = $face->canAutogenerate();
 $vars = Horde_Variables::getDefaultVariables();
-$pager = new Horde_UI_Pager(
+$pager = new Horde_Ui_Pager(
     'page', $vars,
     array('num' => $gallery->countImages(),
           'url' => 'faces/gallery.php',
index 332b36a..bb01dad 100644 (file)
@@ -25,7 +25,7 @@ if (is_a($count, 'PEAR_Error')) {
 }
 
 $vars = Horde_Variables::getDefaultVariables();
-$pager = new Horde_UI_Pager(
+$pager = new Horde_Ui_Pager(
     'page', $vars,
     array('num' => $count,
           'url' => 'faces/search/all.php',
index d3775ff..2682491 100644 (file)
@@ -39,7 +39,7 @@ if (is_a($results, 'PEAR_Error')) {
 
 $title = _("Photo search");
 $vars = Horde_Variables::getDefaultVariables();
-$pager = new Horde_UI_Pager(
+$pager = new Horde_Ui_Pager(
     'page', $vars,
     array('num' => count($results),
           'url' => 'faces/search/image_search.php',
index 6c10f09..823d6d7 100644 (file)
@@ -34,7 +34,7 @@ if (!empty($name)) {
 }
 
 $vars = Horde_Variables::getDefaultVariables();
-$pager = new Horde_UI_Pager(
+$pager = new Horde_Ui_Pager(
     'page', $vars,
     array('num' => $count,
             'url' => 'faces/search/name.php',
index 3bae697..46d9b44 100644 (file)
@@ -24,7 +24,7 @@ if (is_a($count, 'PEAR_Error')) {
 }
 
 $vars = Horde_Variables::getDefaultVariables();
-$pager = new Horde_UI_Pager(
+$pager = new Horde_Ui_Pager(
     'page', $vars,
     array('num' => $count,
           'url' => 'faces/search/named.php',
index 715efaf..de12591 100644 (file)
@@ -30,7 +30,7 @@ if (is_a($count, 'PEAR_Error')) {
 }
 
 $vars = Horde_Variables::getDefaultVariables();
-$pager = new Horde_UI_Pager(
+$pager = new Horde_Ui_Pager(
     'page', $vars,
     array('num' => $count,
             'url' => 'faces/search/owner.php',
index 7b6f52e..2869448 100644 (file)
@@ -19,7 +19,7 @@ if (!Horde_Auth::isauthenticated()) {
 
 /* Show tabs */
 $vars = Horde_Variables::getDefaultVariables();
-$tabs = new Horde_UI_Tabs('search_faces', $vars);
+$tabs = new Horde_Ui_Tabs('search_faces', $vars);
 $tabs->addTab(_("All faces"), Horde::applicationUrl('faces/search/all.php'), 'all');
 $tabs->addTab(_("From my galleries"), Horde::applicationUrl('faces/search/owner.php'), 'owner');
 $tabs->addTab(_("Named faces"), Horde::applicationUrl('faces/search/named.php'), 'named');
index f31c164..68f2e7d 100644 (file)
@@ -68,7 +68,7 @@ default:
 
 // Set up pager.
 $vars = Horde_Variables::getDefaultVariables();
-$group_pager = new Horde_UI_Pager('gbpage', $vars,
+$group_pager = new Horde_Ui_Pager('gbpage', $vars,
                                   array('num' => $num_groups,
                                         'url' => 'group.php',
                                         'perpage' => $groups_perpage));
index 5b64b40..2ae5c5d 100644 (file)
@@ -40,7 +40,7 @@ class Horde_Block_ansel_cloud extends Horde_Block {
         /* Get the tags */
         $tags = Ansel_Tags::listTagInfo(null, $this->_params['count']);
         if (count($tags)) {
-            $cloud = new Horde_UI_TagCloud();
+            $cloud = new Horde_Ui_TagCloud();
             foreach ($tags as $id => $tag) {
                 $link = Ansel::getUrlFor('view', array('view' => 'Results',
                                                        'tag' => $tag['tag_name']));
index 752dc1a..ac26969 100644 (file)
@@ -88,7 +88,7 @@ class Ansel_View_GalleryRenderer_Gallery extends Ansel_View_GalleryRenderer_Base
                         'perpage' => $this->perpage,
                         'url_callback' => $callback);
 
-        $pager = new Horde_UI_Pager('page', $vars, $params);
+        $pager = new Horde_Ui_Pager('page', $vars, $params);
 
         // Note that we can't use Horde_Util::bufferOutput() here since the include
         // file would be included inside that method's scope, and not this one.
index 0cd2dd8..f4b904d 100644 (file)
@@ -114,7 +114,7 @@ class Ansel_View_GalleryRenderer_GalleryLightbox extends Ansel_View_GalleryRende
                         'perpage' => $this->perpage,
                         'url_callback' => $callback);
 
-        $pager = new Horde_UI_Pager('page', $vars, $params);
+        $pager = new Horde_Ui_Pager('page', $vars, $params);
 
         /* Start buffering */
         ob_start();
index b6a6c51..1dbc5d8 100644 (file)
@@ -205,7 +205,7 @@ class Ansel_View_List extends Ansel_View_Base
         if ($override) {
             $p_params['url_callback'] = null;
         }
-        $pager = new Horde_UI_Pager('page', $vars, $p_params);
+        $pager = new Horde_Ui_Pager('page', $vars, $p_params);
         $preserve = array('sort_dir' => $sortdir);
         if (!empty($sortby)) {
             $preserve['sort'] = $sortby;
index 09db9bf..c968d70 100644 (file)
@@ -265,7 +265,7 @@ class Ansel_View_Results extends Ansel_View_Base
 
         $pagestart = ($page * $perpage) + 1;
         $pageend = min($pagestart + $numimages - 1, $pagestart + $perpage - 1);
-        $pager = new Horde_UI_Pager('page', $vars, array('num' => $total,
+        $pager = new Horde_Ui_Pager('page', $vars, array('num' => $total,
                                                          'url' => $viewurl,
                                                          'perpage' => $perpage));
         ob_start();
index 741793e..23eded1 100644 (file)
@@ -488,7 +488,7 @@ $viewurl = Horde_Util::addParameter($viewurl, array('editmode' => $editmode,
                                              'module' => $app,
                                              'filter' => $filter,
                                              'search' => $search));
- $pager = new Horde_UI_Pager('page', $vars, array('num' => $numitem, 'url' => $viewurl, 'page_count' => 10, 'perpage' => $perpage));
+ $pager = new Horde_Ui_Pager('page', $vars, array('num' => $numitem, 'url' => $viewurl, 'page_count' => 10, 'perpage' => $perpage));
  echo $pager->render($page, $numitem, $viewurl);
 ?>
 </td></tr></table>
index 364cac4..00de039 100644 (file)
@@ -29,7 +29,7 @@ $_SESSION['beatnik']['curpage'] = $page;
 $pager_vars = Horde_Variables::getDefaultVariables();
 $pager_vars->set('page', $page);
 $perpage = $prefs->getValue('domains_perpage');
-$pager = new Horde_UI_Pager('page', $pager_vars,
+$pager = new Horde_Ui_Pager('page', $pager_vars,
                             array('num' => count($domains),
                                   'url' => 'listzones.php',
                                   'page_count' => 10,
index a9a164f..717f1c9 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * This file contains all Horde_UI_VarRenderer extensions required for editing
+ * This file contains all Horde_Ui_VarRenderer extensions required for editing
  * accounts.
  *
  * $Horde: fima/lib/UI/VarRenderer/fima.php,v 1.0 2008/06/19 20:58:27 trt Exp $
  * @package Fima
  */
 
-/** Horde_UI_VarRenderer */
-require_once 'Horde/UI/VarRenderer.php';
-
-/** Horde_UI_VarRenderer_html */
-require_once 'Horde/UI/VarRenderer/html.php';
-
 /**
- * The Horde_UI_VarRenderer_fima class provides additional methods for
+ * The Horde_Ui_VarRenderer_fima class provides additional methods for
  * rendering Fima specific Horde_Form_Type fields.
  *
  * @author  Thomas Trethan <thomas@trethan.net>
  * @package Fima
  */
-class Horde_UI_VarRenderer_fima extends Horde_UI_VarRenderer_html {
+class Horde_Ui_VarRenderer_Fima extends Horde_Ui_VarRenderer_Html {
 
-    function _renderVarInput_fima_dspostings($form, &$var, &$vars)
+    protected function _renderVarInput_fima_dspostings($form, &$var, &$vars)
     {
         $varname = @htmlspecialchars($var->getVarName(), ENT_QUOTES, $this->_charset);
         $value = $var->getValue($vars);
@@ -46,7 +40,7 @@ class Horde_UI_VarRenderer_fima extends Horde_UI_VarRenderer_html {
             . Fima::buildAccountWidget($varname . '[account]', $value['account'], 'onchange="document.getElementsByName(\'dspostings[type]\')[1].checked = true;"', false, false, array(array('type', $vars->get('type'))));
     }
 
-    function _renderVarInput_fima_dssubaccounts($form, &$var, &$vars)
+    protected function _renderVarInput_fima_dssubaccounts($form, &$var, &$vars)
     {
         $varname = @htmlspecialchars($var->getVarName(), ENT_QUOTES, $this->_charset);
         $value = $var->getValue($vars);
index 3e12521..75804ec 100644 (file)
@@ -698,8 +698,7 @@ if ($pageOb['mode'] == 'edit') {
 
 /* Generate tabs. */
 if ($pageOb['mode'] != 'transfer' && !$print_view) {
-    require_once 'Horde/UI/Tabs.php';
-    $tabs = new Horde_UI_Tabs('postingtype', $vars);
+    $tabs = new Horde_Ui_Tabs('postingtype', $vars);
     $postingtypes = Fima::getPostingTypes();
     foreach ($postingtypes as $typeValue => $typeLabel) {
         $tabs->addTab($typeLabel, $pageOb['url'], $typeValue);
index 7c2f67c..fb17225 100644 (file)
@@ -16,7 +16,7 @@ require_once dirname(__FILE__) . '/../lib/base.php';
 $auth = Horde_Auth::singleton($conf['auth']['driver']);
 
 $vars = Horde_Variables::getDefaultVariables();
-$tabs = new Horde_UI_Tabs('what', $vars);
+$tabs = new Horde_Ui_Tabs('what', $vars);
 $tabs->addTab(_("Login"), Horde::applicationUrl('login.php'), 'login');
 
 if ($conf['signup']['allow'] === true && $auth->hasCapability('add')) {
index 7f260cd..5085afb 100644 (file)
@@ -31,7 +31,7 @@ if ($users instanceof PEAR_Error) {
 }
 
 $vars = Horde_Variables::getDefaultVariables();
-$pager = new Horde_UI_Pager('page',
+$pager = new Horde_Ui_Pager('page',
                             $vars, array('num' => $count,
                                          'url' => 'activity.php',
                                          'perpage' => $perpage));
index f2f7c3b..89bad27 100644 (file)
@@ -43,7 +43,7 @@ if ($users instanceof PEAR_Error) {
 }
 
 $vars = Horde_Variables::getDefaultVariables();
-$pager = new Horde_UI_Pager('page',
+$pager = new Horde_Ui_Pager('page',
                             $vars, array('num' => $count,
                                          'url' => 'birthday.php',
                                          'perpage' => $perpage));
index 05fc153..19da846 100644 (file)
@@ -16,7 +16,7 @@ if (!Horde_Auth::isAuthenticated()) {
 }
 
 $vars = Horde_Variables::getDefaultVariables();
-$tabs = new Horde_UI_Tabs('what', $vars);
+$tabs = new Horde_Ui_Tabs('what', $vars);
 $tabs->addTab(_("Edit my profile"), Horde::applicationUrl('edit/edit.php'), 'edit');
 $tabs->addTab(_("Privacy"), Horde::applicationUrl('edit/privacy.php'), 'privacy');
 $tabs->addTab(_("Blacklist"), Horde::applicationUrl('edit/friends/blacklist.php'), 'blacklist');
index 94b9403..1c055ff 100644 (file)
@@ -43,7 +43,7 @@ if ($users instanceof PEAR_Error) {
 }
 
 $vars = Horde_Variables::getDefaultVariables();
-$pager = new Horde_UI_Pager('page',
+$pager = new Horde_Ui_Pager('page',
                             $vars, array('num' => $count,
                                          'url' => 'list.php',
                                          'perpage' => $perpage));
index 8de12b9..5996834 100644 (file)
@@ -31,7 +31,7 @@ if ($users instanceof PEAR_Error) {
 }
 
 $vars = Horde_Variables::getDefaultVariables();
-$pager = new Horde_UI_Pager('page',
+$pager = new Horde_Ui_Pager('page',
                             $vars, array('num' => $count,
                                          'url' => 'new.php',
                                          'perpage' => $perpage));
index a412c98..b761dc3 100644 (file)
@@ -43,7 +43,7 @@ if ($users instanceof PEAR_Error) {
 }
 
 $vars = Horde_Variables::getDefaultVariables();
-$pager = new Horde_UI_Pager('page',
+$pager = new Horde_Ui_Pager('page',
                             $vars, array('num' => $count,
                                          'url' => 'online.php',
                                          'perpage' => $perpage));
index 6fcbe00..8faec75 100644 (file)
@@ -31,7 +31,7 @@ if ($users instanceof PEAR_Error) {
 }
 
 $vars = Horde_Variables::getDefaultVariables();
-$pager = new Horde_UI_Pager('page',
+$pager = new Horde_Ui_Pager('page',
                             $vars, array('num' => $count,
                                          'url' => 'popularity.php',
                                          'perpage' => $perpage));
index 08d5b78..046df1e 100644 (file)
@@ -60,7 +60,7 @@ if (!empty($criteria)) {
     }
 
     $vars = Horde_Variables::getDefaultVariables();
-    $pager = new Horde_UI_Pager('page',
+    $pager = new Horde_Ui_Pager('page',
                                 $vars, array('num' => $count,
                                             'url' => 'search.php',
                                             'perpage' => $perpage));
index f98d074..6a9fdaa 100644 (file)
@@ -452,7 +452,7 @@ if (is_array($list) && $numitem && $read_perms) {
 
         $vars = Horde_Variables::getDefaultVariables();
         $vars->set('page', $page);
-        $pager = new Horde_UI_Pager('page', $vars, array('num' => $total, 'url' => $refresh_url, 'page_count' => 10, 'perpage' => $perpage));
+        $pager = new Horde_Ui_Pager('page', $vars, array('num' => $total, 'url' => $refresh_url, 'page_count' => 10, 'perpage' => $perpage));
         $page_caption = $pager->render();
     }
 
index c0f8d6e..4fc1f1c 100644 (file)
@@ -175,7 +175,7 @@ foreach ($imp_search->flagFields() as $key => $val) {
 }
 $t->set('f_fields', $f_fields);
 
-Horde_UI_JsCalendar::init();
+Horde_Ui_JsCalendar::init();
 
 /* Gettext strings for this page. */
 $gettext_strings = array(
@@ -194,7 +194,7 @@ $gettext_strings = array(
 
 /* Javascript data for this page. */
 $js_data = array(
-    'months' => Horde_UI_JsCalendar::months(),
+    'months' => Horde_Ui_JsCalendar::months(),
     'searchmbox' => $search_mailbox,
     'types' => $types
 );
index f4d77cc..36a7382 100644 (file)
@@ -11,9 +11,9 @@
  * @author  Jan Schneider <jan@horde.org>
  * @package Ingo
  */
-class Horde_UI_VarRenderer_ingo extends Horde_UI_VarRenderer_html
+class Horde_Ui_VarRenderer_Ingo extends Horde_Ui_VarRenderer_Html
 {
-    function _renderVarInput_ingo_folders(&$form, &$var, &$vars)
+    protected function _renderVarInput_ingo_folders(&$form, &$var, &$vars)
     {
         return Ingo::flistSelect($var->type->getFolder(), 'horde_form', 'folder');
     }
index c7467e2..617f221 100644 (file)
@@ -14,7 +14,7 @@
 /**
  * Dummy class to hold the select box created by {@link Ingo::flistSelect()}.
  *
- * @see Horde_UI_VarRenderer_ingo
+ * @see Horde_Ui_VarRenderer_Ingo
  * @see Ingo::flistSelect()
  */
 class Horde_Form_Type_ingo_folders extends Horde_Form_Type {
index 7a70358..85cee30 100644 (file)
@@ -47,14 +47,14 @@ class ObjectController extends Koward_Controller_Application
                                                                      $params);
             foreach ($this->objectlist as $uid => $info) {
                 $this->objectlist[$uid]['edit_url'] = Horde::link(
-                    $this->urlFor(array('controller' => 'object', 
+                    $this->urlFor(array('controller' => 'object',
                                         'action' => 'edit',
                                         'id' => $uid)),
                     _("Edit")) . Horde::img('edit.png', _("Edit"), '',
                                             $GLOBALS['registry']->getImageDir('horde'))
                     . '</a>';
                 $this->objectlist[$uid]['delete_url'] = Horde::link(
-                    $this->urlFor(array('controller' => 'object', 
+                    $this->urlFor(array('controller' => 'object',
                                         'action' => 'delete',
                                         'id' => $uid)),
                     _("Delete")) . Horde::img('delete.png', _("Delete"), '',
@@ -62,20 +62,20 @@ class ObjectController extends Koward_Controller_Application
                     . '</a>';
                 if ($this->koward->hasAccess('object/view/' . $this->object_type, Koward::PERM_READ)) {
                     $this->objectlist[$uid]['view_url'] = Horde::link(
-                        $this->urlFor(array('controller' => 'object', 
+                        $this->urlFor(array('controller' => 'object',
                                             'action' => 'view',
                                             'id' => $uid)), _("View"));
                 }
             }
         }
 
-        $this->tabs = new Horde_UI_Tabs(null, Horde_Variables::getDefaultVariables());
+        $this->tabs = new Horde_Ui_Tabs(null, Horde_Variables::getDefaultVariables());
         foreach ($this->koward->objects as $key => $configuration) {
             if (!$this->koward->hasAccess($this->getPermissionId() . '/' . $key)) {
                 continue;
             }
             $this->tabs->addTab($configuration['list_label'],
-                                $this->urlFor(array('controller' => 'object', 
+                                $this->urlFor(array('controller' => 'object',
                                                     'action' => 'listall',
                                                     'id' => $key)),
                                 $key);
@@ -100,7 +100,7 @@ class ObjectController extends Koward_Controller_Application
                                                         'action' => 'delete',
                                                         'id' => $this->params->id,
                                                         'token' => $this->koward->getRequestToken('object.delete')));
-                $this->return_url = $this->urlFor(array('controller' => 'object', 
+                $this->return_url = $this->urlFor(array('controller' => 'object',
                                                         'action' => 'listall'));
 
                 if (!empty($this->params->token)) {
@@ -119,7 +119,7 @@ class ObjectController extends Koward_Controller_Application
                         $this->koward->notification->push(_("Failed to delete the object."),
                                                           'horde.error');
                     }
-                    header('Location: ' . $this->urlFor(array('controller' => 'object', 
+                    header('Location: ' . $this->urlFor(array('controller' => 'object',
                                                               'action' => 'listall')));
                     exit;
                 }
@@ -153,7 +153,7 @@ class ObjectController extends Koward_Controller_Application
                     try {
                         $this->actions = new Koward_Form_Actions($this->object, $buttons);
 
-                        $this->post = $this->urlFor(array('controller' => 'object', 
+                        $this->post = $this->urlFor(array('controller' => 'object',
                                                          'action' => 'view',
                                                          'id' => $this->params->id));
 
@@ -175,7 +175,7 @@ class ObjectController extends Koward_Controller_Application
                                 $this->koward->notification->push(_("Failed to delete the object."),
                                                                   'horde.error');
                             }
-                            header('Location: ' . $this->urlFor(array('controller' => 'object', 
+                            header('Location: ' . $this->urlFor(array('controller' => 'object',
                                                                       'action' => 'view',
                                                                       'id' => $this->params->id)));
                             exit;
@@ -197,7 +197,7 @@ class ObjectController extends Koward_Controller_Application
                                                                     'id' => $this->params->id,
                                                                     'action' => $action,
                                                                     'token' => $this->koward->getRequestToken('object.' . $action)));
-                            $this->return_url = $this->urlFor(array('controller' => 'object', 
+                            $this->return_url = $this->urlFor(array('controller' => 'object',
                                                                     'action' => 'view',
                                                                     'id' => $this->params->id));
                         }
@@ -210,7 +210,7 @@ class ObjectController extends Koward_Controller_Application
                 $this->form = new Koward_Form_Object($this->vars, $this->object,
                                                     array('title' => _("View object")));
                 $this->edit = Horde::link(
-                    $this->urlFor(array('controller' => 'object', 
+                    $this->urlFor(array('controller' => 'object',
                                         'action' => 'edit',
                                         'id' => $this->params->id)),
                     _("Edit")) . Horde::img('edit.png', _("Edit"), '',
@@ -297,7 +297,7 @@ class ObjectController extends Koward_Controller_Application
                 $object = $this->form->execute();
 
                 if (!empty($object)) {
-                    header('Location: ' . $this->urlFor(array('controller' => 'object', 
+                    header('Location: ' . $this->urlFor(array('controller' => 'object',
                                                               'action' => 'view',
                                                               'id' => $object->get(Horde_Kolab_Server_Object::ATTRIBUTE_UID))));
                     exit;
@@ -307,7 +307,7 @@ class ObjectController extends Koward_Controller_Application
             $this->koward->notification->push($e->getMessage(), 'horde.error');
         }
 
-        $this->post = $this->urlFor(array('controller' => $this->params['controller'], 
+        $this->post = $this->urlFor(array('controller' => $this->params['controller'],
                                           'action' => $this->params['action'],
                                           'id' => $this->params->id));
 
@@ -343,7 +343,7 @@ class ObjectController extends Koward_Controller_Application
                 $uids = array_keys($this->objectlist);
 
                 if (count($uids) == 1) {
-                    header('Location: ' . $this->urlFor(array('controller' => 'object', 
+                    header('Location: ' . $this->urlFor(array('controller' => 'object',
                                                               'action' => 'view',
                                                               'id' => $uids[0])));
                     exit;
@@ -352,21 +352,21 @@ class ObjectController extends Koward_Controller_Application
                 } else {
                     foreach ($this->objectlist as $uid => $info) {
                         $this->objectlist[$uid]['edit_url'] = Horde::link(
-                            $this->urlFor(array('controller' => 'object', 
+                            $this->urlFor(array('controller' => 'object',
                                                 'action' => 'edit',
                                                 'id' => $uid)),
                             _("Edit")) . Horde::img('edit.png', _("Edit"), '',
                                                     $GLOBALS['registry']->getImageDir('horde'))
                             . '</a>';
                         $this->objectlist[$uid]['delete_url'] = Horde::link(
-                            $this->urlFor(array('controller' => 'object', 
+                            $this->urlFor(array('controller' => 'object',
                                                 'action' => 'delete',
                                                 'id' => $uid)),
                             _("Delete")) . Horde::img('delete.png', _("Delete"), '',
                                                       $GLOBALS['registry']->getImageDir('horde'))
                             . '</a>';
                         $this->objectlist[$uid]['view_url'] = Horde::link(
-                            $this->urlFor(array('controller' => 'object', 
+                            $this->urlFor(array('controller' => 'object',
                                                 'action' => 'view',
                                                 'id' => $uid)), _("View"));
                         $this->objectlist[$uid]['__id'] = $uid;
@@ -381,7 +381,7 @@ class ObjectController extends Koward_Controller_Application
             $this->koward->notification->push($e->getMessage(), 'horde.error');
         }
 
-        $this->post = $this->urlFor(array('controller' => 'object', 
+        $this->post = $this->urlFor(array('controller' => 'object',
                                           'action' => 'search'));
 
         $this->render();
index 9adbdf6..52b543f 100644 (file)
@@ -259,7 +259,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
     <channel>pear.horde.org</channel>
    </package>
    <package>
-    <name>Horde_UI</name>
+    <name>Ui</name>
     <channel>pear.horde.org</channel>
    </package>
    <package>
index 0171b2e..14ba3fe 100644 (file)
@@ -241,7 +241,7 @@ $delimg = Horde::img('delete.png', _("Remove Attendee"), null,
 $ident = &Identity::singleton();
 $identities = $ident->getAll('id');
 $vars = Horde_Variables::getDefaultVariables();
-$tabs = new Horde_UI_Tabs(null, $vars);
+$tabs = new Horde_Ui_Tabs(null, $vars);
 $tabs->addTab(_("Day"), 'javascript:switchView(\'Day\')', 'Day');
 $tabs->addTab(_("Work Week"), 'javascript:switchView(\'Workweek\')', 'Workweek');
 $tabs->addTab(_("Week"), 'javascript:switchView(\'Week\')', 'Week');
index 6b2e1be..e9c1206 100644 (file)
@@ -223,7 +223,7 @@ abstract class Kronolith_Event
     /**
      * The VarRenderer class to use for printing select elements.
      *
-     * @var Horde_UI_VarRenderer
+     * @var Horde_Ui_VarRenderer
      */
     private $_varRenderer;
 
@@ -2225,7 +2225,7 @@ abstract class Kronolith_Event
         }
 
         if (!$this->_varRenderer) {
-            $this->_varRenderer = Horde_UI_VarRenderer::factory('html');
+            $this->_varRenderer = Horde_Ui_VarRenderer::factory('Html');
         }
 
         return '<label for="' . $this->_formIDEncode($property) . '" class="hidden">' . $label . '</label>' .
index 80aeae0..7654757 100644 (file)
@@ -1764,7 +1764,7 @@ class Kronolith
         $date = self::currentDate();
         $date_stamp = $date->dateString();
 
-        $tabs = new Horde_UI_Tabs('view', Horde_Variables::getDefaultVariables());
+        $tabs = new Horde_Ui_Tabs('view', Horde_Variables::getDefaultVariables());
         $tabs->preserve('date', $date_stamp);
 
         $tabs->addTab(_("Day"), Horde::applicationUrl('day.php'),
@@ -1794,7 +1794,7 @@ class Kronolith
             return;
         }
 
-        $tabs = new Horde_UI_Tabs('event', Horde_Variables::getDefaultVariables());
+        $tabs = new Horde_Ui_Tabs('event', Horde_Variables::getDefaultVariables());
 
         $date = self::currentDate();
         $tabs->preserve('datetime', $date->dateString());
index 0178e37..71a94ab 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * This file contains all Horde_UI_VarRenderer extensions required for editing
+ * This file contains all Horde_Ui_VarRenderer extensions required for editing
  * tasks.
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -9,23 +9,17 @@
  * @package Nag
  */
 
-/** Horde_UI_VarRenderer */
-require_once 'Horde/UI/VarRenderer.php';
-
-/** Horde_UI_VarRenderer_html */
-require_once 'Horde/UI/VarRenderer/html.php';
-
 /**
- * The Horde_UI_VarRenderer_nag class provides additional methods for
+ * The Horde_Ui_VarRenderer_nag class provides additional methods for
  * rendering Horde_Form_Type_alarm fields.
  *
  * @todo    Clean this hack up with Horde_Form/H4
  * @author  Jan Schneider <jan@horde.org>
  * @package Nag
  */
-class Horde_UI_VarRenderer_nag extends Horde_UI_VarRenderer_html {
+class Horde_Ui_VarRenderer_nag extends Horde_Ui_VarRenderer_html {
 
-    function _renderVarInput_nag_method($form, &$var, &$vars)
+    protected function _renderVarInput_nag_method($form, &$var, &$vars)
     {
         $varname = @htmlspecialchars($var->getVarName(), ENT_QUOTES, $this->_charset);
         $varvalue = $var->getValue($vars);
@@ -85,7 +79,7 @@ class Horde_UI_VarRenderer_nag extends Horde_UI_VarRenderer_html {
         }
     }
 
-    function _renderVarInput_nag_start($form, &$var, &$vars)
+    protected function _renderVarInput_nag_start($form, &$var, &$vars)
     {
         $var->type->getInfo($vars, $var, $task_start);
         if ($task_start == 0) {
@@ -118,7 +112,7 @@ echo Horde::link('#', _("Select a date"), '', '', 'openCalendar(\'startimg\', \'
 <?php
     }
 
-    function _renderVarInput_nag_due($form, &$var, &$vars)
+    protected function _renderVarInput_nag_due($form, &$var, &$vars)
     {
         $var->type->getInfo($vars, $var, $task_due);
         if ($task_due == 0) {
@@ -172,7 +166,7 @@ echo Horde::link('#', _("Select a date"), '', '', 'openCalendar(\'dueimg\', \'du
 <?php
     }
 
-    function _renderVarInput_nag_alarm($form, &$var, &$vars)
+    protected function _renderVarInput_nag_alarm($form, &$var, &$vars)
     {
         $varname = @htmlspecialchars($var->getVarName(), ENT_QUOTES, $this->_charset);
         $value = $var->getValue($vars);
@@ -230,7 +224,7 @@ echo Horde::link('#', _("Select a date"), '', '', 'openCalendar(\'dueimg\', \'du
      *
      * @return string  The HTML <select> widget.
      */
-    function buildDayWidget($name, $default = null, $params = null)
+    public function buildDayWidget($name, $default = null, $params = null)
     {
         $id = str_replace(array('[', ']'), array('_', ''), $name);
 
@@ -259,7 +253,7 @@ echo Horde::link('#', _("Select a date"), '', '', 'openCalendar(\'dueimg\', \'du
      *
      * @return string  The HTML <select> widget.
      */
-    function buildMonthWidget($name, $default = null, $params = null)
+    public function buildMonthWidget($name, $default = null, $params = null)
     {
         $id = str_replace(array('[', ']'), array('_', ''), $name);
 
@@ -291,7 +285,7 @@ echo Horde::link('#', _("Select a date"), '', '', 'openCalendar(\'dueimg\', \'du
      *
      * @return string  The HTML <select> widget.
      */
-    function buildYearWidget($name, $years, $default = null, $params = null)
+    public function buildYearWidget($name, $years, $default = null, $params = null)
     {
         $curr_year = date('Y');
         $yearlist = array();
@@ -332,7 +326,7 @@ echo Horde::link('#', _("Select a date"), '', '', 'openCalendar(\'dueimg\', \'du
      *
      * @return string  The HTML <select> widget.
      */
-    function buildHourWidget($name, $default = null, $params = null)
+    public function buildHourWidget($name, $default = null, $params = null)
     {
         global $prefs;
         if (!$prefs->getValue('twentyFour')) {
@@ -356,7 +350,7 @@ echo Horde::link('#', _("Select a date"), '', '', 'openCalendar(\'dueimg\', \'du
         return $html . '</select>';
     }
 
-    function buildAmPmWidget($name, $default = 'am', $amParams = null, $pmParams = null)
+    public function buildAmPmWidget($name, $default = 'am', $amParams = null, $pmParams = null)
     {
         global $prefs;
         if ($prefs->getValue('twentyFour')) {
@@ -391,7 +385,7 @@ echo Horde::link('#', _("Select a date"), '', '', 'openCalendar(\'dueimg\', \'du
      *
      * @return string  The HTML <select> widget.
      */
-    function buildMinuteWidget($name, $increment = 1, $default = null,
+    public function buildMinuteWidget($name, $increment = 1, $default = null,
                                $params = null)
     {
         $html = '<select id="' . $name . '" name="' . $name. '"';
index 3d24066..6c1b4b8 100644 (file)
@@ -94,7 +94,7 @@ echo '<div id="page">';
 
 if (!$prefs->isLocked('show_completed')) {
     $listurl = Horde::applicationUrl('list.php');
-    $tabs = new Horde_UI_Tabs('show_completed', $vars);
+    $tabs = new Horde_Ui_Tabs('show_completed', $vars);
     $tabs->addTab(_("_All tasks"), $listurl, Nag::VIEW_ALL);
     $tabs->addTab(_("Incom_plete tasks"), $listurl, Nag::VIEW_INCOMPLETE);
     $tabs->addTab(_("_Future tasks"), $listurl, Nag::VIEW_FUTURE);
index 0efc853..895be18 100644 (file)
@@ -17,7 +17,7 @@ if (!Horde_Auth::isAdmin('news:admin')) {
 }
 
 $vars = Horde_Variables::getDefaultVariables();
-$tabs = new Horde_UI_Tabs('admin', $vars);
+$tabs = new Horde_Ui_Tabs('admin', $vars);
 
 $tabs->addTab(_("Sources"), Horde::applicationUrl('admin/sources/index.php'), 'sources');
 $tabs->addTab(_("Categories"), Horde::applicationUrl('admin/categories/index.php'), 'categories');
index d53b412..53c33f3 100644 (file)
@@ -60,7 +60,7 @@ class News_Search extends Horde_Form {
      */
     public function getPager($info, $count, $url)
     {
-        $pager = new Horde_UI_Pager('news_page',
+        $pager = new Horde_Ui_Pager('news_page',
                                     Horde_Variables::getDefaultVariables(),
                                     array('num' => $count,
                                           'url' => $url,
index ed8ea47..89cb70a 100644 (file)
@@ -63,7 +63,7 @@ class News_Search extends Horde_Form {
      */
     static public function getPager($info, $count, $url)
     {
-        $pager = new Horde_UI_Pager('news_page',
+        $pager = new Horde_Ui_Pager('news_page',
                                     Horde_Variables::getDefaultVariables(),
                                     array('num' => $count,
                                           'url' => $url,
index 1d1e868..3206a81 100644 (file)
@@ -12,7 +12,7 @@
  * @author  Duck <duck@obala.net>
  * @package News
  */
-class News_TagCloud extends Horde_UI_TagCloud {
+class News_TagCloud extends Horde_Ui_TagCloud {
 
     /**
      * create a Element of HTML part
@@ -21,9 +21,8 @@ class News_TagCloud extends Horde_UI_TagCloud {
      * @param   array  $tag
      * @param   string $type css class of time line param
      * @param   int    $fontsize
-     * @access  private
      */
-    function _createHTMLTag($tag, $type, $fontsize)
+    protected function _createHTMLTag($tag, $type, $fontsize)
     {
         return sprintf("<a class=\"%s\" href=\"%s\">%s</a>\n",
                        $type,
@@ -36,9 +35,8 @@ class News_TagCloud extends Horde_UI_TagCloud {
      *
      * @return  string
      * @param   string $html
-     * @access  private
      */
-    function _wrapDiv($html)
+    protected function _wrapDiv($html)
     {
         return $html;
     }
index 853588e..5b509b9 100644 (file)
@@ -84,7 +84,7 @@ if ($actionID == 'delete') {
 
 // Get tabs.
 $url = Horde_Util::addParameter(Horde::applicationUrl('entry.php'), 'entry', $entry['object_id']);
-$tabs = new Horde_UI_Tabs('view', $vars);
+$tabs = new Horde_Ui_Tabs('view', $vars);
 $tabs->addTab(_("View"), $url, array('tabname' => 'Entry', 'id' => 'tabEntry'));
 if ($share->hasPermission(Horde_Auth::getAuth(), PERMS_EDIT)) {
     $tabs->addTab(_("Edit"), $url, array('tabname' => 'EditEntry', 'id' => 'tabEditEntry'));
index 032186c..3e35fd9 100644 (file)
@@ -73,7 +73,7 @@ case 'DeleteContact':
 
 // Get tabs.
 $url = $contact->url();
-$tabs = new Horde_UI_Tabs('view', $vars);
+$tabs = new Horde_Ui_Tabs('view', $vars);
 $tabs->addTab(_("_View"), $url,
               array('tabname' => 'Contact', 'id' => 'tabContact', 'onclick' => 'return ShowTab(\'Contact\');'));
 if ($contact->hasPermission(PERMS_EDIT)) {
index 962a589..1dc04d6 100644 (file)
@@ -16,7 +16,7 @@ v2.3.3-cvs
 [jan] Add and fix Oracle-specific SQL scripts.
 [jan] Add Croatian translation (Matej Vela <matej.vela@carnet.hr>,
       Iva Rumora <iva.rumora@zg.t-com.hr>).
-[mjr] Fix permission checking for virtual address books. 
+[mjr] Fix permission checking for virtual address books.
 [jan] Update deleted attributes during synchronization (lst_hoe02@kwsoft.de,
       Request #6658).
 [jan] Support X-ANNIVERSARY, X-CHILDREN, and X-SPOUSE vCard fields
index fd4e11c..81bdb71 100644 (file)
@@ -61,7 +61,7 @@ class Turba_ListView {
     /**
      * The HTML renderer.
      *
-     * @var Horde_UI_VarRenderer_html
+     * @var Horde_Ui_VarRenderer_Html
      */
     var $renderer;
 
@@ -114,7 +114,7 @@ class Turba_ListView {
         $this->list = &$list;
         $this->setControls($controls);
 
-        $this->renderer = Horde_UI_VarRenderer::factory('html');
+        $this->renderer = Horde_Ui_VarRenderer::factory('Html');
         $this->vars = new Horde_Variables();
     }
 
@@ -217,7 +217,7 @@ class Turba_ListView {
             $viewurl = urldecode(Horde_Util::addParameter('search.php', $params));
 
             $vars = Horde_Variables::getDefaultVariables();
-            $pager = new Horde_UI_Pager('page', $vars,
+            $pager = new Horde_Ui_Pager('page', $vars,
                                         array('num' => $numitem,
                                               'url' => $viewurl,
                                               'page_limit' => $maxpage,
index 8d34d1e..ff9feb9 100644 (file)
@@ -41,7 +41,7 @@ foreach (Turba::getAddressBooks() as $key => $entry) {
 require_once 'Horde/UI/Tabs.php';
 $sUrl = Horde::applicationUrl('search.php');
 $vars = Horde_Variables::getDefaultVariables();
-$tabs = new Horde_UI_Tabs('search_mode', $vars);
+$tabs = new Horde_Ui_Tabs('search_mode', $vars);
 $tabs->addTab(_("Basic Search"), $sUrl, 'basic');
 $tabs->addTab(_("Advanced Search"), $sUrl, 'advanced');
 echo $tabs->render($_SESSION['turba']['search_mode']);
index 442b5ce..db4846e 100644 (file)
@@ -74,12 +74,12 @@ class Vilma {
     /**
      * Create tabs to navigate the user manager area
      *
-     * return object Horde_UI_Tabs object
+     * return object Horde_Ui_Tabs object
      */
     function getUserMgrTabs(&$vars)
     {
         $url = Horde::applicationUrl('users/index.php');
-        $tabs = &new Horde_UI_Tabs('section', $vars);
+        $tabs = &new Horde_Ui_Tabs('section', $vars);
         foreach (Vilma::getUserMgrTypes() as $section => $desc) {
             $tabs->addTab($desc['plural'], $url, $section);
         }
index ac90734..abe2171 100644 (file)
@@ -42,7 +42,7 @@ $page = Horde_Util::getGet('page', 0);
 $perpage = $prefs->getValue('addresses_perpage');
 $url = 'users/index.php';
 $url = Horde_Util::addParameter($url, 'section', $section);
-$pager = new Horde_UI_Pager('page',
+$pager = new Horde_Ui_Pager('page',
                             Horde_Variables::getDefaultVariables(),
                             array('num' => count($addresses),
                                   'url' => $url,