Re: [phpOpenTracker-User] How to read out the add_data thing?

Sebastian Bergmann <[email protected]> Tue, 16 Dec 2003 15:20:44 +0100
Newsgroups gmane.comp.web.phpopentracker.general
Organization www.sebastian-bergmann.de
Message-ID <[email protected]>
Daniel Schönland wrote:
> first of all I'd like to thank the developer-team of phpopentracker for
> the great job they have done.

  Thank you.

> We read out the screen-solution and color deepth using the add_data-
> directive. The data are stored correctly, but we havn't figured out,
> how to read them out by using the templates.

  The 'top' API call [1] supports data stored in the additional_data
  table out of the box.

  For instance when you store data with data_field=resolution you can
  perform queries like

    $documents = phpOpenTracker::get(
      array(
        'api_call' => 'top',
        'what'     => 'document',
        'range'    => 'total',
        'limit'    => 10
      )
    );

    print_r($documents);

  HTH,
Sebastian

  --
  [1] http://phpopentracker.de/docs/en/api-reference.api-calls.top.html

-- 
Sebastian Bergmann
http://sebastian-bergmann.de/                   http://phpOpenTracker.de/

Das Buch zu PHP 5: http://professionelle-softwareentwicklung-mit-php5.de/


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/