mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-15 18:36:43 +08:00
Original unminified source code (dev folder - js, css, less) (fixes #6) Grunt build system Multiple identities correction (fixes #9) Compose html editor (fixes #12) New general settings - Loading Description New warning about default admin password Split general and login screen settings
72 lines
1.3 KiB
PHP
72 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace RainLoop\Providers\Files;
|
|
|
|
interface FilesInterface
|
|
{
|
|
/**
|
|
* @param \RainLoop\Account $oAccount
|
|
* @param string $sKey
|
|
* @param resource $rSource
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function PutFile($oAccount, $sKey, $rSource);
|
|
|
|
/**
|
|
* @param CAccount $oAccount
|
|
* @param string $sKey
|
|
* @param string $sSource
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function MoveUploadedFile($oAccount, $sKey, $sSource);
|
|
|
|
/**
|
|
* @param \RainLoop\Account $oAccount
|
|
* @param string $sKey
|
|
* @param string $sOpenMode = 'rb'
|
|
*
|
|
* @return resource|bool
|
|
*/
|
|
public function GetFile($oAccount, $sKey, $sOpenMode = 'rb');
|
|
|
|
/**
|
|
* @param \RainLoop\Account $oAccount
|
|
* @param string $sKey
|
|
*
|
|
* @return string|bool
|
|
*/
|
|
public function GetFileName($oAccount, $sKey);
|
|
|
|
/**
|
|
* @param \RainLoop\Account $oAccount
|
|
* @param string $sKey
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function Clear($oAccount, $sKey);
|
|
|
|
/**
|
|
* @param \RainLoop\Account $oAccount
|
|
* @param string $sKey
|
|
*
|
|
* @return int | bool
|
|
*/
|
|
public function FileSize($oAccount, $sKey);
|
|
|
|
/**
|
|
* @param \RainLoop\Account $oAccount
|
|
* @param string $sKey
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function FileExists($oAccount, $sKey);
|
|
|
|
/**
|
|
* @param int $iTimeToClearInHours = 24
|
|
|
|
* @return bool
|
|
*/
|
|
public function GC($iTimeToClearInHours = 24);
|
|
}
|