Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #9089

Re: Help with searching arrays of objects

From "M. Strobel" <sorry_no_mail_here@nowhere.dee>
Newsgroups comp.lang.php
Subject Re: Help with searching arrays of objects
Date 2013-04-19 10:18 +0200
Message-ID <atccvhF3dnlU1@mid.uni-berlin.de> (permalink)
References <11982693-fefb-4ee3-97ee-1f7b7abd7ca4@googlegroups.com> <kkos1r$4m9$1@dont-email.me> <63fdbbe0-a8e5-43ad-ba78-2155c41777a5@googlegroups.com>

Show all headers | View raw


Am 18.04.2013 17:35, schrieb daveh@allheller.net:
> ==================
> 
> Yeah I know its still a work in progress. the objects in question are properties of a database protocol over tcp/ip (do a google search for GT.M mumps) of which I am trying to upgrade a database driver written in 2001 using php version 4.0.6. The original code was intended to document how the protocol works and provide access to it using php. The code was very poorly written and made heavy use of the $GLOBALS superglobal to access  variables by doing stuff like this "$GLOBALS[$m_name]->my_method" blah blah blah and did not use proper OOP methodology mostly because it was not available at that time. Ironically the mumps database names its database objects globals! which made reading the code even more confusing .
> 

A good hint, you could have said this in the first post, because it explains a lot.

MUMPS is "persistent global variables" as I read it. Maybe you could use the
array_walk* functions to search the global data, and use the newest closure with
"use" keyword to parametrize your search.

/Str.

Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Help with searching arrays of objects daveh@allheller.net - 2013-04-17 17:47 -0700
  Re: Help with searching arrays of objects Jerry Stuckle <jstucklex@attglobal.net> - 2013-04-18 09:24 -0400
    Re: Help with searching arrays of objects daveh@allheller.net - 2013-04-18 08:35 -0700
      Re: Help with searching arrays of objects Denis McMahon <denismfmcmahon@gmail.com> - 2013-04-18 18:10 +0000
        Re: Help with searching arrays of objects The Natural Philosopher <tnp@invalid.invalid> - 2013-04-18 19:29 +0100
      Re: Help with searching arrays of objects Jerry Stuckle <jstucklex@attglobal.net> - 2013-04-18 14:20 -0400
      Re: Help with searching arrays of objects "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2013-04-19 10:18 +0200

csiph-web