Atualizando Documents.class.php
This commit is contained in:
parent
65c47d1368
commit
53ebe98938
1 changed files with 4 additions and 1 deletions
|
|
@ -17,7 +17,10 @@ try{
|
|||
$DocumentsValidate = new DocumentsValidate();
|
||||
|
||||
/** Parametros de entrada */
|
||||
$companyId = isset($_POST['company_id']) ? (int)$Main->antiInjection(filter_input(INPUT_POST, 'company_id', FILTER_SANITIZE_NUMBER_INT)) : 0;
|
||||
$companyId = isset($_POST['company_id']) ? (int)$Main->antiInjection(filter_input(INPUT_POST, 'company_id', FILTER_SANITIZE_NUMBER_INT)) : 0;
|
||||
$start = strtolower(isset($_POST['start']) ? (int)$Main->antiInjection( filter_input(INPUT_POST,'start', FILTER_SANITIZE_SPECIAL_CHARS) ) : 0);
|
||||
$page = strtolower(isset($_POST['page']) ? (int)$Main->antiInjection( filter_input(INPUT_POST,'page', FILTER_SANITIZE_SPECIAL_CHARS) ) : 0);
|
||||
$max = isset($config->{'app'}->{'datagrid'}->{'rows'}) ? $config->{'app'}->{'datagrid'}->{'rows'} : 20;
|
||||
|
||||
/** Valida o campo */
|
||||
$DocumentsValidate->setcompanyId($companyId);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue