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

Class: Music

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

Class Overview


FIT Example Music


Author(s):

Version:

  • 0.1.0

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 22]
FIT Example Music

Simple entry of music

  • Version: 0.1.0


[ Top ]


Class Variables

$album =

[line 46]

album name
  • Access: public

Type:   string


[ Top ]

$artist =

[line 40]

track's artist
  • Access: public

Type:   string


[ Top ]

$date =

[line 88]

track's release data
  • Access: public

Type:   string


[ Top ]

$genre =

[line 52]

track's genre
  • Access: public

Type:   string


[ Top ]

$seconds =

[line 64]

track's length in seconds
  • Access: public

Type:   string


[ Top ]

$selected =  false

[line 94]

tells whether this track is selected or not
  • Access: public

Type:   bool


[ Top ]

$size =

[line 58]

track's size
  • Access: public

Type:   string


[ Top ]

$status =  'ready'

[line 28]

current status
  • Access: public

Type:   string


[ Top ]

$title =

[line 34]

track title
  • Access: public

Type:   string


[ Top ]

$trackCount =

[line 76]

total no of tracks
  • Access: public

Type:   string


[ Top ]

$trackNumber =

[line 70]

track no
  • Access: public

Type:   string


[ Top ]

$year =

[line 82]

track's release date (year)
  • Access: public

Type:   string


[ Top ]



Method Detail

map   [line 142]

music map( array $list)

Convert index data to internal structure ` The given list will be transformed to public member variables
  • Return: object
  • Access: public

Parameters:

array   $list   — 

[ Top ]

parse   [line 128]

music parse( string $line)

Convert raw, string data to internal structure ` Actually, explode a TAB-separated string of well-known format and return the so parsed record.
  • Return: object
  • Access: public

Parameters:

string   $line   —  tab separated list hodling one set of data

[ Top ]

time   [line 113]

float time( )

plaing time
  • Access: public

[ Top ]

track   [line 103]

string track( )

receive track number as shown on display

e.g. "5 of 10"

  • Access: public

[ Top ]


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