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

Class: Net_CDDB_Reader_test

Source Location: /Net_CDDB-0.3.0/CDDB/Reader/test.php

Class Overview


Driver class for testing the CDDB service, returns fake TOC for audio CDs


Methods


Inherited Variables

Inherited Methods


Class Details

[line 17]
Driver class for testing the CDDB service, returns fake TOC for audio CDs


[ Top ]


Method Detail

calcTrackOffsets   [line 36]

array calcTrackOffsets( boolean $use_sudo, string $device)

Fakes querying the CD-ROM drive and returns fake TOC based on the device

This class is simply used for testing, it fakes reading an audio CD from your CD-ROM drive and returns different sets of track offsets/lengths based on the device you pass it. You can pass it any one of these devices:

  • /dev/acd0
  • /dev/acd1
  • /dev/acd2
  • /dev/acd3


Parameters:

boolean   $use_sudo   — 
string   $device   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:56:54 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.