web/lib/Zend/Validate/File/IsImage.php
changeset 1230 68c69c656a2c
parent 807 877f952ae2bd
equal deleted inserted replaced
1229:5a6b6e770365 1230:68c69c656a2c
    12  * obtain it through the world-wide-web, please send an email
    12  * obtain it through the world-wide-web, please send an email
    13  * to license@zend.com so we can send you a copy immediately.
    13  * to license@zend.com so we can send you a copy immediately.
    14  *
    14  *
    15  * @category  Zend
    15  * @category  Zend
    16  * @package   Zend_Validate
    16  * @package   Zend_Validate
    17  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    17  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
    18  * @license   http://framework.zend.com/license/new-bsd     New BSD License
    18  * @license   http://framework.zend.com/license/new-bsd     New BSD License
    19  * @version   $Id: IsImage.php 24593 2012-01-05 20:35:02Z matthew $
    19  * @version   $Id$
    20  */
    20  */
    21 
    21 
    22 /**
    22 /**
    23  * @see Zend_Validate_File_MimeType
    23  * @see Zend_Validate_File_MimeType
    24  */
    24  */
    27 /**
    27 /**
    28  * Validator which checks if the file already exists in the directory
    28  * Validator which checks if the file already exists in the directory
    29  *
    29  *
    30  * @category  Zend
    30  * @category  Zend
    31  * @package   Zend_Validate
    31  * @package   Zend_Validate
    32  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    32  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
    33  * @license   http://framework.zend.com/license/new-bsd     New BSD License
    33  * @license   http://framework.zend.com/license/new-bsd     New BSD License
    34  */
    34  */
    35 class Zend_Validate_File_IsImage extends Zend_Validate_File_MimeType
    35 class Zend_Validate_File_IsImage extends Zend_Validate_File_MimeType
    36 {
    36 {
    37     /**
    37     /**
    51     );
    51     );
    52 
    52 
    53     /**
    53     /**
    54      * Sets validator options
    54      * Sets validator options
    55      *
    55      *
    56      * @param  string|array|Zend_Config $mimetype
    56      * @param string|array|Zend_Config $mimetype
    57      * @return void
       
    58      */
    57      */
    59     public function __construct($mimetype = array())
    58     public function __construct($mimetype = array())
    60     {
    59     {
    61         if ($mimetype instanceof Zend_Config) {
    60         if ($mimetype instanceof Zend_Config) {
    62             $mimetype = $mimetype->toArray();
    61             $mimetype = $mimetype->toArray();