[dev] Turba: js function sortby()

Michael Cochrane mike@graftonhall.co.nz
Sat, 12 Jan 2002 23:18:01 +0000


I don't think it has ever existed. I can't find any record of it being there in
CVS. 
- Mike

Quoting Jan Schneider <jan@horde.org>:

> Does anybody know when or why the javascript function sortby() disappeared 
> from Turba? It is still called when you click on the column header but I 
> found it nowhere in the sources.
> 
> Jan.
> 
> --
> ::::::::::::::::::::::::::::::::::::::::
> AMMMa AG - discover your knowledge
> :::::::::::::::::::::::::::
> Detmolder Str. 25-33 :: D-33604 Bielefeld
> fon +49.521.96878-0 :: fax  +49.521.96878-20
> http://www.ammma.de
> ::::::::::::::::::::::::::::::::::::::::::::::
> 
> -- 
> Horde Developers mailing list: http://horde.org/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: dev-unsubscribe@lists.horde.org
> 
> 




>From pgc@ucecom.com Date: 14 Jan 2002 15:04:07 -0500
Return-Path: <pgc@ucecom.com>
Mailing-List: contact dev-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list dev@lists.horde.org
Received: (qmail 66326 invoked from network); 14 Jan 2002 14:59:15 -0000
Received: from unknown (HELO ucecom.com) (195.8.161.130)
  by clark.horde.org with SMTP; 14 Jan 2002 14:59:15 -0000
Received: from hankey.ucecom.com ([140.4.2.19]) by stan.ucecom.com
          (Netscape Messaging Server 3.6)  with ESMTP id AAA369D5
          for <dev@lists.horde.org>; Mon, 14 Jan 2002 15:47:22 +0000
From: "Paul Cooper" <pgc@ucecom.com>
To: dev@lists.horde.org
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0.1 
Date: 14 Jan 2002 15:04:07 -0500
Message-Id: <1011038648.23936.48.camel@hankey.ucecom.com>
Mime-Version: 1.0
Subject: Groups and Categories

So I noticed some end of year changes to Group.php and Category.php and
I started playing again. So i've been able to add groups and subgroups
again but when I try to add users I get confused.

Suppose I have a CategoryObject_Group $cog and I try,

$cog->addUser("fred");

then this adds the user successfully to the object but doesn't update
the data in the database. What I find confusing is;

$cog->addUser("fred") is 

function addUser($username)
{
   $this->data['users'][$username] = 1;
   $this->groupOb->updateGroup($this);
}

//Group::updateGroup
function updateGroup($group)
{
  if (!((get_class($group) == 'categoryobject_group') ||
              is_subclass_of($group, 'CategoryObject_Group'))) {
    return PEAR::raiseError('Groups must be CategoryObject_Group objects
or extend that class.');
  }
    return $this->groups->updateCategory($group, $group);
}

$cog->groupOb->groups is a category_sql object but the updateCategory
that gets executed is from the category class (which doesn't/shouldn't
have any sql) not the category_sql class. Am I going mad? (i'm tired so
this is my suspicion ;-) 

Paul

-- 
-----------------------------------------------------------------
Paul Cooper                             |  Tel: 0121 331 7858
Senior Programmer and Database Engineer |  Fax: 0121 331 7859
UCEcom                                  |  mailto:pgc@ucecom.com
University of Central England           |  http://www.ucecom.com
Birmingham, B4 7DX                      |
-----------------------------------------------------------------