> > I needed this so I've added small mp3 type recognition to blob datatype.
Now
> > it adds "mp3info" subarray to every "blob" array when filename ends with
> > ".mp3". "mp3info" array contains :
> >
> > Array
> > (
> >     [bitrate] => 128
> >     [frequency] => 44
> >     [stereo] => Stereo
> >     [time] => 0:27
> > )
>
> First of all: I am not a developer. But I'll throw in my 2 cents anyways.
I don't think this should be added this particular way you described while
it might be a usabe feature. Maybe one could think of a more general way to
add informations abount certain filetypes instead of blob["mp3info"],
blob["ogginfo"], blob["aviinfo"], ...
> Not that I do have a good idea atm how one should handle this, but this
definitely seems to be the wrong list to discuss stuff like that :)

Please, read carefully. I've written that I needed it that way and so I did
it. Next I suggested a child class to datamanager_blob to handle additional
info about attachments. For example

class midcom_helper_datamanager_datatype_blob_extra_info extends
midcom_helper_datamanager_datatype {

  function _constructor ($attid){

   switch($this->_value["mimetype"]){

    case "audio/mpeg":
      $this->_value["fileinfo"]=$this->mp3info($attid);
      break;
   .....

   }
.....
}



Solt


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to