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

Class: MusicLibrary

Source Location: /Testing_FIT-0.2.2/example/fixture/Music/MusicLibrary.php

Class Overview


FIT Music library


Author(s):

Version:

  • 0.1.0

Methods


Inherited Variables

Inherited Methods


Class Details

[line 24]
FIT Music library

Example music library loader

  • Version: 0.1.0


[ Top ]


Method Detail

album   [line 155]

void album( string 0)

receive current song's album
  • Access: public

Parameters:

string   0   —  song's album

[ Top ]

artist   [line 145]

void artist( string 0)

receive current song's artist
  • Access: public

Parameters:

string   0   —  song's artist

[ Top ]

count   [line 221]

int count( )

count entries in library

[ Top ]

genre   [line 175]

void genre( string 0)

receive current song's genre
  • Access: public

Parameters:

string   0   —  song's genre

[ Top ]

getSelection   [line 231]

array getSelection( )

list of content
  • Return: music items

[ Top ]

load   [line 51]

void load( string $path)

load music database

Database is a tab-separated list (CSV-file)

  • Access: public

Parameters:

string   $path   —  to file

[ Top ]

select   [line 112]

void select( int $pos, bool 1)

select a song

Parameters:

int   $pos   — 
bool   1   —  true on success

[ Top ]

size   [line 185]

void size( int 0)

receive current song's size
  • Access: public

Parameters:

int   0   —  song's size

[ Top ]

time   [line 210]

float time( )

plaing time
  • Access: public

[ Top ]

title   [line 135]

void title( string 0)

receive current song's title
  • Access: public

Parameters:

string   0   —  song's title

[ Top ]

track   [line 196]

string track( )

receive track number as shown on display

e.g. "5 of 10"

  • Access: public

[ Top ]

year   [line 165]

void year( string 0)

receive current song's year
  • Access: public

Parameters:

string   0   —  song's year

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:09:48 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.