thirdparty/Zend/Validate/File/MimeType.php
public function setMagicFile($file)
    {
        if (empty($file)) {
            $this->_magicfile = null;
        } else if (!is_readable($file)) {
            require_once 'Zend/Validate/Exception.php';
            throw new Zend_Validate_Exception('The given magicfile can not be read');
        } else {
            $this->_magicfile = (string) $file;
        }

        return $this;
    }
public function setMagicFile($file)
    {
        if (empty($file)) {
            $this->_magicfile = null;
        } else if (!is_readable($file)) {
            require_once 'Zend/Validate/Exception.php';
            throw new Zend_Validate_Exception('The given magicfile can not be read');
        } else {
            $this->_magicfile = (string) $file;
        }

        return $this;
    }
public function setMagicFile ( $ file ) { if ( empty ( $ file ) ) { $ this -> _magicfile = null ; } else if ( ! is_readable ( $ file ) ) { require_once 'Zend/Validate/Exception.php' ; throw new Zend_Validate_Exception ( 'The given magicfile can not be read' ) ; } else { $ this -> _magicfile = ( string ) $ file ; } return $ this ; }
Sets the magicfile to use
if null, the MAGIC constant from php is used

@param  string $file
@return Zend_Validate_File_MimeType Provides fluid interface
Sets the magicfile to use if null the MAGIC constant from php is used