cvs: pear /MP3_Id MP3_Id.php

From: Date: Mon, 15 Oct 2001 23:48:19 +0000
Subject: cvs: pear /MP3_Id MP3_Id.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-1032@lists.php.net to get a copy of this message
alexmerz Mon Oct 15 19:48:19 2001 EDT Modified files: /pear/MP3_Id MP3_Id.php Log: change the name of the accessor functions ( more intuitive) Index: pear/MP3_Id/MP3_Id.php diff -u pear/MP3_Id/MP3_Id.php:1.3 pear/MP3_Id/MP3_Id.php:1.4 --- pear/MP3_Id/MP3_Id.php:1.3 Mon Oct 15 19:42:19 2001 +++ pear/MP3_Id/MP3_Id.php Mon Oct 15 19:48:19 2001 @@ -11,7 +11,7 @@ // | Authors: Sandy McArthur Jr. <Leknor@Leknor.com> | // +----------------------------------------------------------------------+ // -// $Id: MP3_Id.php,v 1.3 2001/10/15 23:42:19 alexmerz Exp $ +// $Id: MP3_Id.php,v 1.4 2001/10/15 23:48:19 alexmerz Exp $ // // Uncomment the folling define if you want the class to automatically @@ -263,7 +263,7 @@ /** * sets a field * - * possible names of fields are: + * possible names of tags are: * artists - Name of band or artist * album - Name of the album * year - publishing year of the album or song @@ -272,12 +272,12 @@ * genre - genre of the song * genreno - Number of the genre * - * @param mixed $name Name of the field to set or hash with the key as fieldname + * @param mixed $name Name of the tag to set or hash with the key as fieldname * @param mixed $value the value to set * * @access public */ - function setField($name, $value) { + function setTag($name, $value) { if( is_array($name)) { foreach( $name as $n => $v) { $this -> $n = $v ; @@ -288,16 +288,16 @@ } /** - * get the value of a field + * get the value of a tag * * @param string $name the name of the field to get * @param mixed $default returned if the field not exists * * @return mixed The value of the field * @access public - * @see setField + * @see setTag */ - function getField($name, $default = 0) { + function getTag($name, $default = 0) { if(empty($this -> $name)) { return $default ; } else {

« previous php.pear.cvs (#1032) next »