123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- <?php
- namespace ZN\Services;
- interface FTPInterface
- {
- //----------------------------------------------------------------------------------------------------
- //
- // Yazar : Ozan UYKUN <ozanbote@windowslive.com> | <ozanbote@gmail.com>
- // Site : www.zntr.net
- // Lisans : The MIT License
- // Telif Hakkı: Copyright (c) 2012-2016, zntr.net
- //
- //----------------------------------------------------------------------------------------------------
-
- //----------------------------------------------------------------------------------------------------
- // connect()
- //----------------------------------------------------------------------------------------------------
- //
- // @param array $config: empty
- //
- //----------------------------------------------------------------------------------------------------
- public function connect($con);
-
- //----------------------------------------------------------------------------------------------------
- // close()
- //----------------------------------------------------------------------------------------------------
- //
- // @param void
- //
- //----------------------------------------------------------------------------------------------------
- public function close();
-
- //----------------------------------------------------------------------------------------------------
- // createFolder()
- //----------------------------------------------------------------------------------------------------
- //
- // @param string $path: empty
- //
- //----------------------------------------------------------------------------------------------------
- public function createFolder($path);
-
- //----------------------------------------------------------------------------------------------------
- // deleteFolder()
- //----------------------------------------------------------------------------------------------------
- //
- // @param string $path: empty
- //
- //----------------------------------------------------------------------------------------------------
- public function deleteFolder($path);
-
- //----------------------------------------------------------------------------------------------------
- // changeFolder()
- //----------------------------------------------------------------------------------------------------
- //
- // @param string $path: empty
- //
- //----------------------------------------------------------------------------------------------------
- public function changeFolder($path);
-
- //----------------------------------------------------------------------------------------------------
- // rename()
- //----------------------------------------------------------------------------------------------------
- //
- // @param string $oldName: empty
- // @param string $newName: empty
- //
- //----------------------------------------------------------------------------------------------------
- public function rename($oldName, $newName);
-
- //----------------------------------------------------------------------------------------------------
- // deleteFile()
- //----------------------------------------------------------------------------------------------------
- //
- // @param string $path: empty
- //
- //----------------------------------------------------------------------------------------------------
- public function deleteFile($path);
-
- //----------------------------------------------------------------------------------------------------
- // upload()
- //----------------------------------------------------------------------------------------------------
- //
- // @param string $localPath : empty
- // @param string $remotePath: empty
- // @param string $type : binary, ascii
- //
- //----------------------------------------------------------------------------------------------------
- public function upload($localPath, $remotePath, $type);
-
- //----------------------------------------------------------------------------------------------------
- // dowload()
- //----------------------------------------------------------------------------------------------------
- //
- // @param string $remotePath: empty
- // @param string $localPath : empty
- // @param string $type : binary, ascii
- //
- //----------------------------------------------------------------------------------------------------
- public function download($remotePath, $localPath, $type);
-
- //----------------------------------------------------------------------------------------------------
- // permission()
- //----------------------------------------------------------------------------------------------------
- //
- // @param string $path: empty
- // @param int $type : 0755
- //
- //----------------------------------------------------------------------------------------------------
- public function permission($path, $type);
-
- //----------------------------------------------------------------------------------------------------
- // files()
- //----------------------------------------------------------------------------------------------------
- //
- // @param string $path : empty
- // @param string $extension: empty
- //
- //----------------------------------------------------------------------------------------------------
- public function files($path, $extension);
-
- //----------------------------------------------------------------------------------------------------
- // fileSize()
- //----------------------------------------------------------------------------------------------------
- //
- // @param string $path : empty
- // @param string $type : b, kb, mb, gb
- // @param int $decimal: 2
- //
- //----------------------------------------------------------------------------------------------------
- public function fileSize($path, $type, $decimal);
- }
|