Ignore:
Timestamp:
Mar 3, 2010, 9:55:15 PM (14 years ago)
Author:
grum
Message:

Manage multiple lenses for one Id for Pentax camera
Add some minors features

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AMetaData/JpegMetaData/Common/MakerNotesSignatures.class.php

    r4705 r5038  
    3737 * This class provides theses public functions :
    3838 *  - (static) getMaker
    39  *  - (static) setExifMaker
    40  *  - (static) getExifMaker
    4139 *
    4240 * -----------------------------------------------------------------------------
     
    9189    const UnknownHeaderSize   = 0;
    9290
    93     static private $exifMaker = "";
    9491
    9592    static public function getMaker($datas)
     
    121118    }
    122119
    123     /**
    124      * this function is used by IFD Reader to store all information about maker
    125      * and camera model
    126      *
    127      * the stored value if used within a grep like "/canon/i" to determine the
    128      * maker note.
    129      * For more information about this tricks see the how the tag 0x927c is
    130      * managed in the function "processSpecialTag" of the file
    131      * IfdReader.class.php
    132      *
    133      * @param String $value : the maker or the camera model
    134      */
    135     static public function setExifMaker($value)
    136     {
    137       if(is_array($value))
    138       {
    139         foreach($value as $val)
    140         {
    141           self::$exifMaker.=$val." ";
    142         }
    143       }
    144       else
    145       {
    146         self::$exifMaker.=$value." ";
    147       }
    148       return(self::$exifMaker);
    149     }
    150 
    151     /**
    152      * this function is used by IFD Reader to store all information about maker
    153      * and camera model
    154      *
    155      * @return String
    156      */
    157     static public function getExifMaker()
    158     {
    159       return(self::$exifMaker);
    160     }
    161 
    162120  }
    163121
Note: See TracChangeset for help on using the changeset viewer.