This repository has been archived by the owner on Sep 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- nova função que cria a pasta de destino automaticamente quando ela …
…não for encontrada. - nova função que possibilita o upload de arquivos em webp. - nova função de escolher a extensão que deseja salvar o arquivo. - melhorias nos testes unitários - correções gerais de todos os arquivos phpDoc - atualização da documentação
- Loading branch information
1 parent
f4a8e76
commit b376adb
Showing
39 changed files
with
588 additions
and
361 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* This file is part of the Upload Manipulation package. | ||
* | ||
* @link http://github.com/fernandozueet/upload-and-image-manipulation | ||
* @copyright 2017 | ||
* @copyright 2018 | ||
* @license MIT License | ||
* @author Fernando Zueet <[email protected]> | ||
*/ | ||
|
@@ -23,70 +23,70 @@ class Core | |
*-------------------------------------------------------------------------------------*/ | ||
|
||
/** | ||
* array class validates | ||
* Array class validates | ||
* | ||
* @var array | ||
*/ | ||
private $objValids = []; | ||
|
||
/** | ||
* class Validate | ||
* Class Validate | ||
* | ||
* @var Validate | ||
*/ | ||
private $validate; | ||
|
||
/** | ||
* class Messages | ||
* Class Messages | ||
* | ||
* @var class | ||
*/ | ||
private $message; | ||
|
||
/** | ||
* status upload multiple | ||
* Status upload multiple | ||
* | ||
* @var boolean | ||
*/ | ||
private $uploadMultiple = false; | ||
|
||
/** | ||
* class file | ||
* Class file | ||
* | ||
* @var File | ||
*/ | ||
private $fileClass; | ||
|
||
/** | ||
* array de files | ||
* Array de files | ||
* | ||
* @var array | ||
*/ | ||
private $file = []; | ||
|
||
/** | ||
* file active | ||
* File active | ||
* | ||
* @var array | ||
*/ | ||
private $fileActive = []; | ||
|
||
/** | ||
* status validate | ||
* Status validate | ||
* | ||
* @var boolean | ||
*/ | ||
private $statusValidate = false; | ||
|
||
/** | ||
* array class executes | ||
* Array class executes | ||
* | ||
* @var array | ||
*/ | ||
private $classExecutes = []; | ||
|
||
/** | ||
* union executes | ||
* Union executes | ||
* | ||
* @var boolean | ||
*/ | ||
|
@@ -97,7 +97,7 @@ class Core | |
*-------------------------------------------------------------------------------------*/ | ||
|
||
/** | ||
* get array class validates | ||
* Get array class validates | ||
* | ||
* @return array | ||
*/ | ||
|
@@ -107,7 +107,7 @@ public function getObjValids() : array | |
} | ||
|
||
/** | ||
* set array class validates | ||
* Set array class validates | ||
* | ||
* @param array $objValids | ||
* @return void | ||
|
@@ -124,7 +124,7 @@ public function setObjValids(array $objValids) | |
} | ||
|
||
/** | ||
* get class Validate | ||
* Get class Validate | ||
* | ||
* @return Validate | ||
*/ | ||
|
@@ -134,7 +134,7 @@ public function getValidate() : Validate | |
} | ||
|
||
/** | ||
* set class Validate | ||
* Set class Validate | ||
* | ||
* @return Validate | ||
*/ | ||
|
@@ -145,7 +145,7 @@ public function setValidate(Validate $validate) | |
} | ||
|
||
/** | ||
* get class Messages | ||
* Get class Messages | ||
* | ||
* @return void | ||
*/ | ||
|
@@ -155,7 +155,7 @@ public function getMessage() : MessagesInterface | |
} | ||
|
||
/** | ||
* set class Messages | ||
* Set class Messages | ||
* | ||
* @param class $message | ||
* @return void | ||
|
@@ -167,7 +167,7 @@ public function setMessage(MessagesInterface $message) | |
} | ||
|
||
/** | ||
* get status upload multiple | ||
* Get status upload multiple | ||
* | ||
* @return bool | ||
*/ | ||
|
@@ -177,7 +177,7 @@ public function getUploadMultiple() : bool | |
} | ||
|
||
/** | ||
* set status upload multiple | ||
* Set status upload multiple | ||
* | ||
* @param bool $uploadMultiple | ||
* @return void | ||
|
@@ -189,7 +189,7 @@ public function setUploadMultiple(bool $uploadMultiple) | |
} | ||
|
||
/** | ||
* get class File | ||
* Get class File | ||
* | ||
* @return File | ||
*/ | ||
|
@@ -199,7 +199,7 @@ public function getFileClass() : File | |
} | ||
|
||
/** | ||
* set class File | ||
* Set class File | ||
* | ||
* @param File $fileClass | ||
* @return void | ||
|
@@ -211,7 +211,7 @@ public function setFileClass(File $fileClass) | |
} | ||
|
||
/** | ||
* get file array | ||
* Get file array | ||
* | ||
* @return array | ||
*/ | ||
|
@@ -221,7 +221,7 @@ public function getFile() : array | |
} | ||
|
||
/** | ||
* set file array | ||
* Set file array | ||
* | ||
* @param array $file | ||
* @return void | ||
|
@@ -233,7 +233,7 @@ public function setFile(array $file) | |
} | ||
|
||
/** | ||
* get file active | ||
* Get file active | ||
* | ||
* @return array | ||
*/ | ||
|
@@ -243,7 +243,7 @@ public function getFileActive() : array | |
} | ||
|
||
/** | ||
* set file active | ||
* Set file active | ||
* | ||
* @param array $fileActive | ||
* @return void | ||
|
@@ -255,7 +255,7 @@ public function setFileActive(array $fileActive) | |
} | ||
|
||
/** | ||
* get status validate | ||
* Get status validate | ||
* | ||
* @return bool | ||
*/ | ||
|
@@ -265,7 +265,7 @@ public function getStatusValidate() : bool | |
} | ||
|
||
/** | ||
* set status validate | ||
* Set status validate | ||
* | ||
* @param bool $statusValidate | ||
* @return void | ||
|
@@ -277,7 +277,7 @@ public function setStatusValidate(bool $statusValidate) | |
} | ||
|
||
/** | ||
* get class executes | ||
* Get class executes | ||
* | ||
* @return array | ||
*/ | ||
|
@@ -287,7 +287,7 @@ public function getClassExecutes() : array | |
} | ||
|
||
/** | ||
* set class executes | ||
* Set class executes | ||
* | ||
* @param array $classExecutes | ||
* @return void | ||
|
@@ -302,7 +302,7 @@ public function setClassExecutes(array $classExecutes) | |
} | ||
|
||
/** | ||
* get union executes | ||
* Get union executes | ||
* | ||
* @return bool | ||
*/ | ||
|
@@ -312,7 +312,7 @@ public function getUnionExecutes() : bool | |
} | ||
|
||
/** | ||
* set union executes | ||
* Set union executes | ||
* | ||
* @param bool $unionExecutes | ||
* @return void | ||
|
@@ -328,7 +328,7 @@ public function setUnionExecutes(bool $unionExecutes) | |
*-------------------------------------------------------------------------------------*/ | ||
|
||
/** | ||
* initial settings and set data in the application container | ||
* Initial settings and set data in the application container | ||
* | ||
* @return void | ||
*/ | ||
|
@@ -341,7 +341,7 @@ public function init() | |
} | ||
|
||
/** | ||
* get errors upload | ||
* Get errors upload | ||
* | ||
* @return array | ||
*/ | ||
|
@@ -354,7 +354,7 @@ public function getErrors() : array | |
} | ||
|
||
/** | ||
* validate functions files | ||
* Validate functions files | ||
* | ||
* @return void | ||
*/ | ||
|
@@ -407,7 +407,7 @@ public function validate() | |
} | ||
|
||
/** | ||
* validate functions upload | ||
* Validate functions upload | ||
* | ||
* @param array $arrayExecutes | ||
* @return void | ||
|
@@ -448,7 +448,7 @@ public function validExecute(array $arrayExecutes) | |
} | ||
|
||
/** | ||
* upload functions execute | ||
* Upload functions execute | ||
* | ||
* @return bool | ||
*/ | ||
|
@@ -488,7 +488,7 @@ public function execute() : bool | |
} | ||
|
||
/** | ||
* delete files error upload function | ||
* Delete files error upload function | ||
* | ||
* @return void | ||
*/ | ||
|
Oops, something went wrong.