/search.php

Description

This file contains the function tracks_for_search(), which enables searching the catalog.

  • author: KavaSoft
Functions
tracks_for_search (line 67)

Returns an array of songs whose artist, album or song name match the given string.

The search string is broken up into individual terms, so <tt>'pink moon'</tt> will match all tracks on Pink Floyd's The Dark Side of the Moon and 'pink moon gig' will match "The Great Gig in the Sky."

Sends add_time_and_size() to each of the songs.

  • return: an array of Songs
array tracks_for_search (string $search_term)
  • string $search_term: the search string

Documentation generated on Sun, 12 Feb 2006 19:27:56 +0100 by phpDocumentor 1.2.3