Decrypts a given file and stores the decrypted file content

category Zend
package Zend_Filter
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License
inherited_from \Zend_Filter_Decrypt

 Methods

Calls adapter methods

__call(string $method, string|array $options) 
Inherited

Parameters

$method

string

Method to call

$options

stringarray

Options for this method

Class constructor

__construct(string|array $options = null
Inherited

Parameters

$options

stringarray

(Optional) Options to set, if null mcrypt is used

Defined by Zend_Filter_Interface

filter(string $value) : string

Decrypts the file $value with the defined settings

inherited_from \Zend_Filter_Decrypt::filter()

Parameters

$value

string

Full path of file to change

Returns

stringThe filename which has been set, or false when there were errors

Defined by Zend_Filter_Interface

filter(string $value) : string
Inherited

Encrypts the content $value with the defined settings

inherited_from \Zend_Filter_Interface::filter()

Parameters

$value

string

Content to encrypt

Returns

stringThe encrypted content

Returns the name of the set adapter

getAdapter() : string
Inherited

Returns

string

Returns the new filename where the content will be stored

getFilename() : string

Returns

string

Sets new encryption options

setAdapter(string|array $options = null) : \Zend_Filter_Encrypt
Inherited

Parameters

$options

stringarray

(Optional) Encryption options

Returns

\Zend_Filter_Encrypt

Sets the new filename where the content will be stored

setFilename(string $filename = null) : \Zend_Filter_File_Encryt

Parameters

$filename

string

(Optional) New filename to set

Returns

\Zend_Filter_File_Encryt

 Properties

 

Encryption adapter

$_adapter 

Default

 

New filename to set

$_filename : string

Default