Source for file Browser.php

Documentation is available at Browser.php

  1. <?php
  2.  
  3.  
  4. # Copyright (c) 2002-2005 Cunningham & Cunningham, Inc.
  5. # Released under the terms of the GNU General Public License version 2 or later.
  6. #
  7. # PHP5 translation by Luis A. Floreani <luis.floreani@gmail.com>
  8.  
  9. require_once ("config.php");
  10. require_once (PHPFIT_DIR.LIB_FIT_DIR."Fixture.php");
  11. require_once ("MusicLibrary.php");
  12.  
  13. class Browser extends Fixture {
  14.  
  15. // Library //////////////////////////////////
  16.  
  17. /**
  18. * @param string path
  19. */
  20.  
  21. public function library($path) {
  22. MusicLibrary :: load($path);
  23. }
  24.  
  25. public function totalSongs() {
  26. return count(MusicLibrary :: $library);
  27. }
  28.  
  29. // Select Detail ////////////////////////////
  30.  
  31. public function select($i) {
  32. MusicLibrary :: select(MusicLibrary :: $library[$i -1]);
  33. }
  34.  
  35. public function title() {
  36. return MusicLibrary :: $looking->title;
  37. }
  38. public function artist() {
  39. return MusicLibrary :: $looking->artist;
  40. }
  41. public function album() {
  42. return MusicLibrary :: $looking->album;
  43. }
  44. public function year() {
  45. return MusicLibrary :: $looking->year;
  46. }
  47.  
  48. public function time() {
  49. return MusicLibrary :: $looking->time();
  50. }
  51. public function track() {
  52. return MusicLibrary :: $looking->track();
  53. }
  54. public $typeDict = array (
  55. "totalSongs" => "integer",
  56. "title" => "string",
  57. "artist" => "string",
  58. "album" => "string",
  59. "year" => "string",
  60. "time" => "double",
  61. "track" => "string",
  62. );
  63. }
  64. ?>

Documentation generated on Sun, 02 Apr 2006 16:01:02 +0200 by phpDocumentor 1.3.0RC5