Skip to content

Commit

Permalink
📝 BASE melhorando documentação addFileField
Browse files Browse the repository at this point in the history
  • Loading branch information
bjverde committed Jun 8, 2023
1 parent d10abde commit f1368bc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion base/classes/webform/TFile.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,15 @@ class TFile extends TEdit {
private $msgUploadException;



/**
* Classe para fazer upload de arquivo
*
* @param string $strName - 1: ID do campo
* @param integer $intSize
* @param [type] $boolRequired
* @param [type] $strAllowedFileTypes
* @param [type] $strMaxSize
*/
public function __construct($strName,$intSize=null,$boolRequired=null,$strAllowedFileTypes=null,$strMaxSize=null) {
$intSize= is_null($intSize) ? 50 : $intSize;
parent::__construct($strName,null,5000,$boolRequired,$intSize);
Expand Down
4 changes: 2 additions & 2 deletions base/classes/webform/TFileAsync.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ class TFileAsync extends TEdit
* O parametro $strJsCallBack define a função javascript que será chamada quando o upload assincrono terminar.
* Esta função receberá, como parametros, o nome do arquivo temporário e o nome do arquivo anexado.
*
* @param string $strName
* @param string $strName - 1: ID do campo
* @param integer $intSize
* @param boolean $boolRequired
* @param string $strAllowedFileTypes
* @param string $strMaxSize
* @param integer $intWidth
* @param $strJsCallBack
* @param $strJsCallBack Define a função javascript que será chamada quando o upload assincrono terminar.
* @return TFileAsync
*/
public function __construct($strName,$intSize=null,$boolRequired=null,$strAllowedFileTypes=null,$strMaxSize=null,$intWidth=null,$strJsCallBack=null,$strMessageInvalidFileType=null)
Expand Down

0 comments on commit f1368bc

Please sign in to comment.