Util
in package
Table of Contents
Constants
- EXCEL_FORMAT_DATE_AA_MM_DD = 6
- EXCEL_FORMAT_DATE_AAAA_MM_DD = 5
- EXCEL_FORMAT_DATE_DD_MM_AA = 3
- EXCEL_FORMAT_DATE_DD_MM_AAAA = 1
- EXCEL_FORMAT_DATE_MM_DD_AA = 4
- EXCEL_FORMAT_DATE_MM_DD_AAAA = 2
- VIEW_AGENDA = 36
- VIEW_AGENDA_CONTATOS_CHAMADO = 7
- VIEW_ASSUNTO_GED = 30
- VIEW_AVALIACAO_CHAMADO = 6
- VIEW_CATEGORIA_PROCESSO = 22
- VIEW_CHAMADOS_EM_ABERTO = 17
- VIEW_CLASSIFICACAO_CHAMADO = 5
- VIEW_DASHBOARD_CHAMADO = 1
- VIEW_EMAIL_MENSAGEM_PADRAO_AGENDA = 42
- VIEW_FORMULARIO_PROCESSO = 21
- VIEW_GED = 29
- VIEW_GRUPO_MOTIVO_CHAMADO = 4
- VIEW_LISTAGEM_LOCAIS_AGENDA = 38
- VIEW_MEUS_CHAMADOS = 2
- VIEW_MINHAS_SOLICITACOES_EM_ABERTO_CHAMADO = 18
- VIEW_MOTIVOS_CHAMADO = 3
- VIEW_NOVA_AVALIACAO_CHAMADO = 16
- VIEW_NOVA_CATEGORIA_PROCESSO = 26
- VIEW_NOVA_CLASSIFICACAO_CHAMADO = 13
- VIEW_NOVA_PASTA_GED = 35
- VIEW_NOVA_PRIORIDADE_CHAMADO = 12
- VIEW_NOVA_SOLICITACAO_PROCESSO = 23
- VIEW_NOVO_ASSUNTO_GED = 32
- VIEW_NOVO_CHAMADO = 11
- VIEW_NOVO_DOCUMENTO_GED = 34
- VIEW_NOVO_EVENTO_AGENDA = 39
- VIEW_NOVO_FORMULARIO_PROCESSO = 25
- VIEW_NOVO_GRUPO_MOTIVO_CHAMADO = 15
- VIEW_NOVO_LOCAL_AGENDA = 41
- VIEW_NOVO_MOTIVO_CHAMADO = 14
- VIEW_NOVO_PROCESSO = 24
- VIEW_NOVO_TIPO_AGENDA = 40
- VIEW_NOVO_TIPO_GED = 33
- VIEW_OPORTUNIDADE = 43
- VIEW_PRIORIDADE_CHAMADO = 10
- VIEW_PROCESSO = 19
- VIEW_RELATORIO_CHAMADO = 8
- VIEW_RELATORIO_HORAS_GASTAS_CHAMADO = 9
- VIEW_SOLICITACAO = 28
- VIEW_SOLICITACAO_PROCESSO_MINHAS_PENDENCIAS = 20
- VIEW_SOLICITACAO_PROCESSO_MINHAS_SOLICITACOES_ABERTO = 27
- VIEW_TIPO_AGENDA = 37
- VIEW_TIPO_GED = 31
Properties
- $sendmail_debug_level : mixed
- $sendmail_debug_message : mixed
Methods
- addFolderToZip() : mixed
- array_clone() : mixed
- ArrayToObject() : mixed
- AtividadeProjetoStatus() : mixed
- average_time() : mixed
- calcular_qtde_dias() : mixed
- ChamadoDescSituacaoHumano() : mixed
- CleanWhereException() : mixed
- Colors() : mixed
- ColorsGrafico() : mixed
- ConstMail() : mixed
- DateNow() : mixed
- decimal_para_horas() : mixed
- dia_semana() : mixed
- DiferencaDatasDias() : mixed
- diff_calcula_horas() : mixed
- Excel_Format_Date() : mixed
- Excel_Format_Date_Export() : mixed
- FilesArray() : mixed
- fix_html() : string
- Ajusta código HTML com tags inconsistentes
- FixPathDir() : mixed
- format_date_time() : string
- Formata um DateTime do MySQL (aaaa-mm-dd hh:mm:ss) para o padrão brasileiro (dd/mm/aaaa hh:mm)
- format_time() : mixed
- format_time_apontamento() : mixed
- formatar_decimal() : mixed
- formate_date() : string
- Formata um Date do MySQL (aaaa-mm-dd)
- gera_grafico() : mixed
- gera_token() : mixed
- gerar_grafico_barras() : mixed
- get_dates_in_range() : mixed
- Retorna todas as datas entre duas datas
- get_obj_campo_formulario() : mixed
- get_temp_path() : mixed
- GetAnexoByFormulario() : mixed
- Responsavél por buscar os dados de anexos e carregar para o formulario
- GetTableBy_codigo_tela() : mixed
- GetWheres_FiltroPersonalizado() : mixed
- Hoje() : mixed
- horas_para_minutos() : mixed
- Html2Text() : mixed
- human_filesize() : mixed
- imap_mime_text_decode() : string
- Converte um texto mime (utf8, iso, etc) para o padrão do PHP
- IPAddr() : mixed
- is_html() : string
- Verifica se um texto é HTML.
- isExecutor() : mixed
- isGerente() : mixed
- json_encode_alternativo() : mixed
- linhas_campo_tabela_formulario() : mixed
- MailFontFace() : mixed
- mask() : mixed
- mime_type() : mixed
- ObjectToArray() : mixed
- randomPassword() : mixed
- recast() : mixed
- recast stdClass object to an object with type
- remove_acentos() : mixed
- remover_caracteres_especiais_arquivo() : mixed
- retorna_versao_grupo_formulario() : mixed
- return_bytes() : mixed
- sec_to_strtime() : string
- Converte segundos para uma string de horas
- SendMail() : bool
- Envia um e-mail
- str_zeros_esquerda() : mixed
- string_to_array() : array<string|int, mixed>
- Converte texto para um array de acordo com os delimitadores
- strtime_to_sec() : int
- Converte uma string de horas para segundos
- subtrair_horas() : mixed
- sum_the_time() : string
- Soma duas strings de horas
- tratar_php_word() : mixed
- valida_data() : mixed
- validaCPF() : mixed
- validar_idioma() : mixed
- valor_campo_formulario() : mixed
- valor_campo_tabela_formulario() : mixed
- xml_format_time() : mixed
Constants
EXCEL_FORMAT_DATE_AA_MM_DD
public
mixed
EXCEL_FORMAT_DATE_AA_MM_DD
= 6
EXCEL_FORMAT_DATE_AAAA_MM_DD
public
mixed
EXCEL_FORMAT_DATE_AAAA_MM_DD
= 5
EXCEL_FORMAT_DATE_DD_MM_AA
public
mixed
EXCEL_FORMAT_DATE_DD_MM_AA
= 3
EXCEL_FORMAT_DATE_DD_MM_AAAA
public
mixed
EXCEL_FORMAT_DATE_DD_MM_AAAA
= 1
EXCEL_FORMAT_DATE_MM_DD_AA
public
mixed
EXCEL_FORMAT_DATE_MM_DD_AA
= 4
EXCEL_FORMAT_DATE_MM_DD_AAAA
public
mixed
EXCEL_FORMAT_DATE_MM_DD_AAAA
= 2
VIEW_AGENDA
public
mixed
VIEW_AGENDA
= 36
VIEW_AGENDA_CONTATOS_CHAMADO
public
mixed
VIEW_AGENDA_CONTATOS_CHAMADO
= 7
VIEW_ASSUNTO_GED
public
mixed
VIEW_ASSUNTO_GED
= 30
VIEW_AVALIACAO_CHAMADO
public
mixed
VIEW_AVALIACAO_CHAMADO
= 6
VIEW_CATEGORIA_PROCESSO
public
mixed
VIEW_CATEGORIA_PROCESSO
= 22
VIEW_CHAMADOS_EM_ABERTO
public
mixed
VIEW_CHAMADOS_EM_ABERTO
= 17
VIEW_CLASSIFICACAO_CHAMADO
public
mixed
VIEW_CLASSIFICACAO_CHAMADO
= 5
VIEW_DASHBOARD_CHAMADO
public
mixed
VIEW_DASHBOARD_CHAMADO
= 1
VIEW_EMAIL_MENSAGEM_PADRAO_AGENDA
public
mixed
VIEW_EMAIL_MENSAGEM_PADRAO_AGENDA
= 42
VIEW_FORMULARIO_PROCESSO
public
mixed
VIEW_FORMULARIO_PROCESSO
= 21
VIEW_GED
public
mixed
VIEW_GED
= 29
VIEW_GRUPO_MOTIVO_CHAMADO
public
mixed
VIEW_GRUPO_MOTIVO_CHAMADO
= 4
VIEW_LISTAGEM_LOCAIS_AGENDA
public
mixed
VIEW_LISTAGEM_LOCAIS_AGENDA
= 38
VIEW_MEUS_CHAMADOS
public
mixed
VIEW_MEUS_CHAMADOS
= 2
VIEW_MINHAS_SOLICITACOES_EM_ABERTO_CHAMADO
public
mixed
VIEW_MINHAS_SOLICITACOES_EM_ABERTO_CHAMADO
= 18
VIEW_MOTIVOS_CHAMADO
public
mixed
VIEW_MOTIVOS_CHAMADO
= 3
VIEW_NOVA_AVALIACAO_CHAMADO
public
mixed
VIEW_NOVA_AVALIACAO_CHAMADO
= 16
VIEW_NOVA_CATEGORIA_PROCESSO
public
mixed
VIEW_NOVA_CATEGORIA_PROCESSO
= 26
VIEW_NOVA_CLASSIFICACAO_CHAMADO
public
mixed
VIEW_NOVA_CLASSIFICACAO_CHAMADO
= 13
VIEW_NOVA_PASTA_GED
public
mixed
VIEW_NOVA_PASTA_GED
= 35
VIEW_NOVA_PRIORIDADE_CHAMADO
public
mixed
VIEW_NOVA_PRIORIDADE_CHAMADO
= 12
VIEW_NOVA_SOLICITACAO_PROCESSO
public
mixed
VIEW_NOVA_SOLICITACAO_PROCESSO
= 23
VIEW_NOVO_ASSUNTO_GED
public
mixed
VIEW_NOVO_ASSUNTO_GED
= 32
VIEW_NOVO_CHAMADO
public
mixed
VIEW_NOVO_CHAMADO
= 11
VIEW_NOVO_DOCUMENTO_GED
public
mixed
VIEW_NOVO_DOCUMENTO_GED
= 34
VIEW_NOVO_EVENTO_AGENDA
public
mixed
VIEW_NOVO_EVENTO_AGENDA
= 39
VIEW_NOVO_FORMULARIO_PROCESSO
public
mixed
VIEW_NOVO_FORMULARIO_PROCESSO
= 25
VIEW_NOVO_GRUPO_MOTIVO_CHAMADO
public
mixed
VIEW_NOVO_GRUPO_MOTIVO_CHAMADO
= 15
VIEW_NOVO_LOCAL_AGENDA
public
mixed
VIEW_NOVO_LOCAL_AGENDA
= 41
VIEW_NOVO_MOTIVO_CHAMADO
public
mixed
VIEW_NOVO_MOTIVO_CHAMADO
= 14
VIEW_NOVO_PROCESSO
public
mixed
VIEW_NOVO_PROCESSO
= 24
VIEW_NOVO_TIPO_AGENDA
public
mixed
VIEW_NOVO_TIPO_AGENDA
= 40
VIEW_NOVO_TIPO_GED
public
mixed
VIEW_NOVO_TIPO_GED
= 33
VIEW_OPORTUNIDADE
public
mixed
VIEW_OPORTUNIDADE
= 43
VIEW_PRIORIDADE_CHAMADO
public
mixed
VIEW_PRIORIDADE_CHAMADO
= 10
VIEW_PROCESSO
public
mixed
VIEW_PROCESSO
= 19
VIEW_RELATORIO_CHAMADO
public
mixed
VIEW_RELATORIO_CHAMADO
= 8
VIEW_RELATORIO_HORAS_GASTAS_CHAMADO
public
mixed
VIEW_RELATORIO_HORAS_GASTAS_CHAMADO
= 9
VIEW_SOLICITACAO
public
mixed
VIEW_SOLICITACAO
= 28
VIEW_SOLICITACAO_PROCESSO_MINHAS_PENDENCIAS
public
mixed
VIEW_SOLICITACAO_PROCESSO_MINHAS_PENDENCIAS
= 20
VIEW_SOLICITACAO_PROCESSO_MINHAS_SOLICITACOES_ABERTO
public
mixed
VIEW_SOLICITACAO_PROCESSO_MINHAS_SOLICITACOES_ABERTO
= 27
VIEW_TIPO_AGENDA
public
mixed
VIEW_TIPO_AGENDA
= 37
VIEW_TIPO_GED
public
mixed
VIEW_TIPO_GED
= 31
Properties
$sendmail_debug_level
public
static mixed
$sendmail_debug_level
= -1
$sendmail_debug_message
public
static mixed
$sendmail_debug_message
= []
Methods
addFolderToZip()
public
static addFolderToZip(mixed $dir, mixed $zipArchive[, mixed $zipdir = '' ]) : mixed
Parameters
- $dir : mixed
- $zipArchive : mixed
- $zipdir : mixed = ''
array_clone()
public
static array_clone(mixed $array) : mixed
Parameters
- $array : mixed
ArrayToObject()
public
static ArrayToObject(mixed $d) : mixed
Parameters
- $d : mixed
AtividadeProjetoStatus()
public
static AtividadeProjetoStatus(mixed $status_id) : mixed
Parameters
- $status_id : mixed
average_time()
public
static average_time(mixed $total, mixed $count[, mixed $rounding = 0 ]) : mixed
Parameters
- $total : mixed
- $count : mixed
- $rounding : mixed = 0
calcular_qtde_dias()
public
static calcular_qtde_dias(mixed $data_inicial, mixed $data_final) : mixed
Parameters
- $data_inicial : mixed
- $data_final : mixed
ChamadoDescSituacaoHumano()
public
static ChamadoDescSituacaoHumano(mixed $situacao[, mixed $usuario_tipo = null ]) : mixed
Parameters
- $situacao : mixed
- $usuario_tipo : mixed = null
CleanWhereException()
public
static CleanWhereException(mixed $condicao) : mixed
Parameters
- $condicao : mixed
Colors()
public
static Colors([mixed $index = null ]) : mixed
Parameters
- $index : mixed = null
ColorsGrafico()
public
static ColorsGrafico([mixed $index = null ]) : mixed
Parameters
- $index : mixed = null
ConstMail()
public
static ConstMail() : mixed
DateNow()
public
static DateNow([mixed $modify = null ]) : mixed
Parameters
- $modify : mixed = null
decimal_para_horas()
public
static decimal_para_horas(mixed $decimal) : mixed
Parameters
- $decimal : mixed
dia_semana()
public
static dia_semana(mixed $dia) : mixed
Parameters
- $dia : mixed
DiferencaDatasDias()
public
static DiferencaDatasDias(mixed $inicio, mixed $fim) : mixed
Parameters
- $inicio : mixed
- $fim : mixed
diff_calcula_horas()
public
static diff_calcula_horas(mixed $inicio, mixed $fim, mixed $intervalo_inicial, mixed $intervalo_final[, mixed $traslado = null ]) : mixed
Parameters
- $inicio : mixed
- $fim : mixed
- $intervalo_inicial : mixed
- $intervalo_final : mixed
- $traslado : mixed = null
Excel_Format_Date()
public
static Excel_Format_Date(mixed $date[, mixed $type = 0 ]) : mixed
Parameters
- $date : mixed
- $type : mixed = 0
Excel_Format_Date_Export()
public
static Excel_Format_Date_Export(mixed $date) : mixed
Parameters
- $date : mixed
FilesArray()
public
static FilesArray(mixed $arquivos) : mixed
Parameters
- $arquivos : mixed
fix_html()
Ajusta código HTML com tags inconsistentes
public
static fix_html(string $string) : string
Parameters
- $string : string
-
Código HTML
Return values
string —Código HTML
FixPathDir()
public
static FixPathDir([mixed $caminho = '' ]) : mixed
Parameters
- $caminho : mixed = ''
format_date_time()
Formata um DateTime do MySQL (aaaa-mm-dd hh:mm:ss) para o padrão brasileiro (dd/mm/aaaa hh:mm)
public
static format_date_time( $date[, mixed $formato_americano = false ]) : string
Parameters
Return values
string —data/hora no formato dd/mm/aaaa hh:mm. Caso a data/hora informada seja inválida o retorno será uma string vazia.
format_time()
public
static format_time(mixed $horas_valor[, mixed $considera_negativo = false ]) : mixed
Parameters
- $horas_valor : mixed
- $considera_negativo : mixed = false
format_time_apontamento()
public
static format_time_apontamento(mixed $horas_valor) : mixed
Parameters
- $horas_valor : mixed
formatar_decimal()
public
static formatar_decimal(mixed $value) : mixed
Parameters
- $value : mixed
formate_date()
Formata um Date do MySQL (aaaa-mm-dd)
public
static formate_date( $date[, $format_americam = false ]) : string
Parameters
- $date :
-
string data no formato do MySQL aaaa-mm-dd
- $format_americam : = false
-
bool Se TRUE, formatará no padrão americano (aaaa-mm-dd). Se FALSE, formatará no padrão brasileiro (dd/mm/aaaa).
Return values
string —data no formato dd/mm/aaaa hh:mm. Caso a data informada seja inválida o retorno será uma string vazia.
gera_grafico()
public
static gera_grafico(mixed $valores[, mixed $cor = null ], mixed $nome[, mixed $width = null ][, mixed $height = null ][, mixed $legendas = null ][, mixed $title = null ]) : mixed
Parameters
- $valores : mixed
- $cor : mixed = null
- $nome : mixed
- $width : mixed = null
- $height : mixed = null
- $legendas : mixed = null
- $title : mixed = null
gera_token()
public
static gera_token() : mixed
gerar_grafico_barras()
public
static gerar_grafico_barras(mixed $valores, mixed $grupos, mixed $nome[, mixed $cor = null ][, mixed $title = null ][, mixed $width = null ][, mixed $height = null ][, mixed $format = null ]) : mixed
Parameters
- $valores : mixed
- $grupos : mixed
- $nome : mixed
- $cor : mixed = null
- $title : mixed = null
- $width : mixed = null
- $height : mixed = null
- $format : mixed = null
get_dates_in_range()
Retorna todas as datas entre duas datas
public
static get_dates_in_range(mixed $data_inicio, mixed $data_fim) : mixed
Exemplo: Desde o dia 01 de Janeiro até 28 de Fevereiro RESULTADO: 2023-01-01, 2023-01-02, 2023-01-03 ... 2023-01-31 ... 2023-02-20 ... 2023-02-28
Referência: https://www.itsolutionstuff.com/post/how-to-get-all-dates-between-two-dates-in-phpexample.html
Parameters
- $data_inicio : mixed
- $data_fim : mixed
get_obj_campo_formulario()
public
static get_obj_campo_formulario(mixed &$formulario[, mixed $campo_id = null ][, mixed $elem_key = null ]) : mixed
Parameters
- $formulario : mixed
- $campo_id : mixed = null
- $elem_key : mixed = null
get_temp_path()
public
static get_temp_path() : mixed
GetAnexoByFormulario()
Responsavél por buscar os dados de anexos e carregar para o formulario
public
static GetAnexoByFormulario(mixed $formulario) : mixed
Parameters
- $formulario : mixed
GetTableBy_codigo_tela()
public
static GetTableBy_codigo_tela(mixed $codigo_tela) : mixed
Parameters
- $codigo_tela : mixed
GetWheres_FiltroPersonalizado()
public
static GetWheres_FiltroPersonalizado([mixed $condicoes = array() ]) : mixed
Parameters
- $condicoes : mixed = array()
Hoje()
public
static Hoje([mixed $modify = null ]) : mixed
Parameters
- $modify : mixed = null
horas_para_minutos()
public
static horas_para_minutos(mixed $horas) : mixed
Parameters
- $horas : mixed
Html2Text()
public
static Html2Text(mixed $html[, mixed $quebra_linha = false ]) : mixed
Parameters
- $html : mixed
- $quebra_linha : mixed = false
human_filesize()
public
static human_filesize(mixed $bytes[, mixed $decimals = 2 ]) : mixed
Parameters
- $bytes : mixed
- $decimals : mixed = 2
imap_mime_text_decode()
Converte um texto mime (utf8, iso, etc) para o padrão do PHP
public
static imap_mime_text_decode(string $string) : string
Parameters
- $string : string
-
Texto a ser convertido
Return values
string —Texto convertido
IPAddr()
public
static IPAddr() : mixed
is_html()
Verifica se um texto é HTML.
public
static is_html(string $string) : string
Parameters
- $string : string
-
Texto a ser verificado
Return values
string —Se true
é um HTML, caso não será retornado false
isExecutor()
public
static isExecutor(mixed $usuario_id, mixed $atividade_projeto_id) : mixed
Parameters
- $usuario_id : mixed
- $atividade_projeto_id : mixed
isGerente()
public
static isGerente(mixed $usuario_id, mixed $atividade_projeto_id) : mixed
Parameters
- $usuario_id : mixed
- $atividade_projeto_id : mixed
json_encode_alternativo()
public
static json_encode_alternativo(mixed $elemento) : mixed
Parameters
- $elemento : mixed
linhas_campo_tabela_formulario()
public
static linhas_campo_tabela_formulario(mixed &$formulario, mixed $campo_id) : mixed
Parameters
- $formulario : mixed
- $campo_id : mixed
MailFontFace()
public
static MailFontFace() : mixed
mask()
public
static mask(mixed $val, mixed $mask) : mixed
Parameters
- $val : mixed
- $mask : mixed
mime_type()
public
static mime_type(mixed $filename) : mixed
Parameters
- $filename : mixed
ObjectToArray()
public
static ObjectToArray(mixed $d) : mixed
Parameters
- $d : mixed
randomPassword()
public
static randomPassword([mixed $len = 8 ]) : mixed
Parameters
- $len : mixed = 8
recast()
recast stdClass object to an object with type
public
static recast(string $className, stdClass $object) : mixed
Parameters
- $className : string
- $object : stdClass
Tags
Return values
mixed —new, typed object
remove_acentos()
public
static remove_acentos(mixed $str) : mixed
Parameters
- $str : mixed
remover_caracteres_especiais_arquivo()
public
static remover_caracteres_especiais_arquivo(mixed $str) : mixed
Parameters
- $str : mixed
retorna_versao_grupo_formulario()
public
static retorna_versao_grupo_formulario(mixed $solicitacao_atividade_model, mixed $anexos) : mixed
Parameters
- $solicitacao_atividade_model : mixed
- $anexos : mixed
return_bytes()
public
static return_bytes(mixed $size_str) : mixed
Parameters
- $size_str : mixed
sec_to_strtime()
Converte segundos para uma string de horas
public
static sec_to_strtime(int $sec[, int $hour_lengh = 2 ][, bool $show_seconds = false ]) : string
Parameters
- $sec : int
-
Segundos
- $hour_lengh : int = 2
-
Quantidade de zeros à esqueda na hora que serão adicionados se necessário
- $show_seconds : bool = false
-
Exibir segundos
Return values
string —String de horas [-]h..hh:mm[:ss]. Exemplos: 2356:12:34, 12:00, 8, -565:46
SendMail()
Envia um e-mail
public
static SendMail(string $from_name, string $to, string $subject, string $body_subject, string $body[, array<string|int, string> $responder_para = null ][, array<string|int, array<string|int, mixed>> $documentos = null ][, string $link_direto = null ][, bool $layout_customizado = false ][, bool $arquivo_ics = false ]) : bool
Parameters
- $from_name : string
-
Nome Remetente
- $to : string
-
E-mail do Destinatário
- $subject : string
-
Assunto do e-mail
- $body_subject : string
-
Título exibido no corpo do e-mail
- $body : string
-
Corpo HTML do e-mail
- $responder_para : array<string|int, string> = null
-
E-mails utilizados quando o destinatário tentar responder o e-mail. Também conhecido como Reply-to.
Array ( [0] => exemplo_a@nextsi.com.br [1] => exemplo_b@nextsi.com.br )
- $documentos : array<string|int, array<string|int, mixed>> = null
-
Documentos que serão atachados no e-mail (anexos)
Array ( [0] => Array ( [documento_id] => 3 [documento_revisao_id] => 34 [nome_arquivo] => imagem1.jpg [tamanho] => 657 ) [1] => Array ( [documento_id] => 4 [documento_revisao_id] => 34 [nome_arquivo] => imagem2.png [tamanho] => 451 ) )
- $link_direto : string = null
-
Prefixo da URI de acesso à uma funcionalidade do Next BP. Exemplo
/#/chamado/15887
. - $layout_customizado : bool = false
-
Se
false
o $body receberá automaticamente cabeçalho e rodapé padrão do Next BP. Informarfalse
para que o $body não seja modificado. - $arquivo_ics : bool = false
-
Booleano que marca se o documento é um evento de calendário (.ics)
Return values
bool —Se true
o e-mail foi enviado.
str_zeros_esquerda()
public
static str_zeros_esquerda(mixed $str, mixed $quantidade) : mixed
Parameters
- $str : mixed
- $quantidade : mixed
string_to_array()
Converte texto para um array de acordo com os delimitadores
public
static string_to_array(string $string[, array<string|int, mixed> $delimitadores = null ][, bool $remove_duplicados = true ]) : array<string|int, mixed>
Parameters
- $string : string
-
Texto que será convertido em array.
- $delimitadores : array<string|int, mixed> = null
-
Array de delimitadores que será utilizado na string. Se não null, os delimitadores padrão serão ",", ";" e " "
- $remove_duplicados : bool = true
-
Parâmetro responsável remover valores duplicados do array ou não (true = remove duplicados, false = não remove duplicados)
Return values
array<string|int, mixed> —String convertida em array
strtime_to_sec()
Converte uma string de horas para segundos
public
static strtime_to_sec(string $strtime) : int
Parameters
- $strtime : string
-
String de horas [-]h..hh:mm[:ss]. Exemplos: 2356:12:34, 12:00, 8, -565:46
Return values
int —segundos
subtrair_horas()
public
static subtrair_horas(mixed $time1, mixed $time2) : mixed
Parameters
- $time1 : mixed
- $time2 : mixed
sum_the_time()
Soma duas strings de horas
public
static sum_the_time(string $time1, string $time2) : string
Parameters
- $time1 : string
-
String de horas [-]h..hh:mm[:ss]. Exemplos: 2356:12:34, 12:00, 8, -565:46
- $time2 : string
-
String de horas [-]h..hh:mm[:ss]. Exemplos: 2356:12:34, 12:00, 8, -565:46
Return values
string —Horas no formato [-]h..hh:mm:ss
tratar_php_word()
public
static tratar_php_word(mixed $str) : mixed
Parameters
- $str : mixed
valida_data()
public
static valida_data(mixed $data) : mixed
Parameters
- $data : mixed
validaCPF()
public
static validaCPF(mixed $cpf) : mixed
Parameters
- $cpf : mixed
validar_idioma()
public
static validar_idioma() : mixed
valor_campo_formulario()
public
static valor_campo_formulario(mixed $formulario[, mixed $campo_id = null ][, mixed $novo_valor = null ][, mixed $campo_elem_key = null ][, mixed $retorna_novo_valor = true ]) : mixed
Parameters
- $formulario : mixed
- $campo_id : mixed = null
- $novo_valor : mixed = null
- $campo_elem_key : mixed = null
- $retorna_novo_valor : mixed = true
valor_campo_tabela_formulario()
public
static valor_campo_tabela_formulario(mixed &$formulario, mixed $campo_id, mixed $linha[, mixed $novo_valor = null ][, mixed $retorna_novo_valor = true ]) : mixed
Parameters
- $formulario : mixed
- $campo_id : mixed
- $linha : mixed
- $novo_valor : mixed = null
- $retorna_novo_valor : mixed = true
xml_format_time()
public
static xml_format_time(mixed $xml_work) : mixed
Parameters
- $xml_work : mixed