Location: PHPKode > scripts > class_playlist > class_playlist/class_audioFile_data.php
<?php
/****************************************************************
*****************************************************************

class_log.php: create to work with log file (create and search).
Copyright (C) 2003  Matthieu MARY hide@address.com

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

You can found more information about GPL licence at:
http://www.gnu.org/licenses/gpl.html

for contact me: hide@address.com
****************************************************************
****************************************************************/
/**
 * create the : july 9th 2003.
 * @author      Matthieu MARY
 * @since       1.0
 */
require_once "class_audioFile.php";
class audiofile_data extends AudioFile{
    /**
	 * object Audiofile
	 *
     * @type AudioFile
	 **/
      var $AF;

    /**
	 * Builder
	 * create a new object audiofile and get the properties
	 *
	 * @public
	 * @param string $loadFilename, required, the path to the audiofile
     * @type void
	 **/
      function audiofile_data($loadFilename)
      {
       $this->AF = new AudioFile();
       $this->AF->loadFile($loadFilename);
       $this->AF->getSampleInfo();
      }
      
    /**
	 * Function that return the duration of the audio file
	 *
	 * @public
     * @type int
	 **/
      function GET_length(){
               return $this->AF->wave_length;
      }
    /**
	 * Method that clean the object
	 *
	 * @public
     * @type void
	 **/
      function clear(){
               unset($this->AF);
      }
}//class

?>
Return current item: class_playlist