This file contains hidden or 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
<?php | |
public function onSave($param = null) | |
{ | |
try | |
{ | |
$object->store(); | |
PessoaGrupo::where('cliente_id', '=', $object->id)->delete(); |
This file contains hidden or 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
<?php | |
public function onReload($param = NULL) | |
{ | |
$systemUser = SystemUsers::find(TSession::getValue('userid')); | |
if ($systemUser) | |
{ | |
$arrayEmpresaID = array(); | |
$EmpresasUuario = $systemUser->getEmpresasUuario(); | |
if ($EmpresasUuario) |
This file contains hidden or 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
<?php | |
return [ | |
'host' => "localhost", | |
'user' => "user", | |
'pass' => "pass", | |
'type' => "pgsql", | |
'port' => "", | |
'name' => "banco", | |
'prep' => "1", |
This file contains hidden or 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
<?php | |
public static function gerarParcelas($param = null) | |
{ | |
try | |
{ | |
(new TRequiredValidator)->validate('DATA INICIAL', $param['data_inicio']); | |
(new TRequiredValidator)->validate('DATA FINAL', $param['data_final']); | |
(new TRequiredValidator)->validate('VALOR TOTAL', $param['valor_total']); | |
This file contains hidden or 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
<?php | |
$iframe = new TElement('iframe'); | |
$iframe->src = $pdf; | |
$iframe->type = 'application/pdf'; | |
$iframe->style = "width: 100%; height:700px"; | |
$this->element_preview_pdf->add($iframe); |
This file contains hidden or 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
C:\laragon\bin\apache\httpd-2.4.54-win64-VS16\bin\httpd.exe -k install |
This file contains hidden or 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
<?php | |
// CONSTRUCT | |
$quantidade = new TSpinner('exemplo'); | |
$quantidade->setExitAction(new TAction([$this,'onFuncao','static'=>1])); | |
//<userCustomFunctions> | |
public static function onFuncao($param = null) | |
{ | |
This file contains hidden or 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
<?php | |
TTransaction::open(self::$database); | |
$sequencia = ''; | |
$PlanoConta = PlanoConta::where('pai_id', '=', $param['key'])->orderBy('sequencia', 'desc')->first(); | |
if ($PlanoConta) | |
{ | |
$partes = explode('.', $PlanoConta->sequencia); |
This file contains hidden or 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
border-left: 4px solid #eb4946; |
This file contains hidden or 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
C: > Users > PC > AppData > Roaming > Code > User > profiles > 31ff1cf3 > snippets > | |
— adianti.code-snippets |