[ class tree: plugins ] [ index: plugins ] [ all elements ]

Procedural File: search_statistics.php

Source Location: /zp-extensions/search_statistics.php

Page Details

Collects and analyzes searches

Note on the analysis of the data: Dynamic album searches are ignored Analysis presumes that the Theme does a "uniform" set of object retrievals. That is the search.php script will always request albums, images, pages, and/or news consistently. Data collection happens for each of these objects so to "normalize" the data the analysis will divide the data by the number of objects searched.

So, if for instance, you sometimes enable Zenpage results, sometimes there will be results for images, albums, pages, and news; and other times there will just be results for images and albums. In this case the reports will under value the searches done when Zenpage results were not enabled.

Author:  Stephen Billard (sbillard)
Classes
Class Description
search_statistics Option handler class
Functions
search_statistics_button  [line 75]
Parameters:
   $buttons: 


void search_statistics_button( $buttons  )

[ Top ]
search_statistics_handler  [line 100]

Logs User searches

Parameters:
array   $search_statistics:  the search criteria
string   $type:  'album', 'image', etc.
bool   $success:  did the search return a result
bool   $dynamic:  was it from a dynamic album
int   $iteration:  count of the filters since the search engine instantiation


void search_statistics_handler( array $search_statistics, string $type, bool $success, bool $dynamic, int $iteration  )

[ Top ]


Documentation generated on Tue, 20 Dec 2011 16:08:01 +0100 by phpDocumentor 1.4.3