Sets the CharSet of the message.
@var string
Sets the Content-type of the message.
@var string
Sets the Encoding of the message. Options for this are
"8bit", "7bit", "binary", "base64", and "quoted-printable".
@var string
Holds the most recent mailer error message.
@var string
Sets the From email address for the message.
@var string
Sets the From name of the message.
@var string
Sets the Sender email (Return-Path) of the message. If not empty,
will be sent via -f to sendmail or as 'MAIL FROM' in smtp mode.
@var string
Sets the Subject of the message.
@var string
Sets the Body of the message. This can be either an HTML or text body.
If HTML then run IsHTML(true).
@var string
Sets the text-only body of the message. This automatically sets the
email to multipart/alternative. This body can be read by mail
clients that do not have HTML email capability such as mutt. Clients
that can read HTML will view the normal Body.
@var string
Sets word wrapping on the body of the message to a given number of
characters.
@var int
Method to send mail: ("mail", "sendmail", or "smtp").
@var string
Sets the path of the sendmail program.
@var string
Path to PHPMailer plugins. Useful if the SMTP class
is in a different directory than the PHP include path.
@var string
Sets the email address that a reading confirmation will be sent.
@var string
Sets the hostname to use in Message-Id and Received headers
and as default HELO string. If empty, the value returned
by SERVER_NAME is used or 'localhost.localdomain'.
@var string
Sets the message ID to be used in the Message-Id header.
If empty, a unique id will be generated.
@var string
Sets the default SMTP server port.
@var int
Sets the SMTP HELO of the message (Default is $Hostname).
@var string
Sets connection prefix.
Options are "", "ssl" or "tls"
@var string
Sets SMTP authentication. Utilizes the Username and Password variables.
@var bool
Sets SMTP username.
@var string
Sets SMTP password.
@var string
Sets the SMTP server timeout in seconds.
This function will not work with the win32 version.
@var int
Sets SMTP class debugging on or off.
@var bool
Prevents the SMTP connection from being closed after each mail
sending. If this is set to true then to close the connection
requires an explicit call to SmtpClose().
@var bool
Provides the ability to have the TO field process individual
emails, instead of sending to entire TO addresses
@var bool
If SingleTo is true, this provides the array to hold the email addresses
@var bool
Provides the ability to change the line ending
@var string
Used with DKIM DNS Resource Record
@var string
Used with DKIM DNS Resource Record
optional, in format of email address 'you@yourdomain.com'
@var string
Used with DKIM DNS Resource Record
optional, in format of email address 'you@yourdomain.com'
@var string
Used with DKIM DNS Resource Record
optional, in format of email address 'you@yourdomain.com'
@var string
Callback Action function name
the function that handles the result of the send email action. Parameters:
bool $result result of the send action
string $to email address of the recipient
string $cc cc email addresses
string $bcc bcc email addresses
string $subject the subject
string $body the email body
@var string
Sets message type to HTML.
Sets Mailer to send message using SMTP.
Sets Mailer to send message using PHP mail() function.
Sets Mailer to send message using the $Sendmail program.
Sets Mailer to send message using the qmail MTA.
Adds a "Cc" address.
Note: this function works with the SMTP mailer on win32, not with the "mail" mailer.
Adds a "Bcc" address.
Note: this function works with the SMTP mailer on win32, not with the "mail" mailer.
Adds a "Reply-to" address.
Adds an address to one of the recipient arrays
Addresses that have been added already return false, but do not throw exceptions
Set the From and FromName properties
Check that a string looks roughly like an email address should
Static so it can be used without instantiation
Tries to use PHP built-in validator in the filter extension (from PHP 5.2), falls back to a reasonably competent regex validator
Conforms approximately to RFC2822
@link http://www.hexillion.com/samples/#Regex Original pattern found here
Sends mail using the $Sendmail program.
Sends mail using the PHP mail() function.
Sends mail via SMTP using PhpSMTP
Returns false if there is a bad MAIL FROM, RCPT, or DATA input.
@uses SMTP
Initiates a connection to an SMTP server.
Returns false if the operation failed.
@uses SMTP
Closes the active SMTP session if one exists.
Sets the language for all class error messages.
Returns false if it cannot load the language file. The default language is English.
Return the current array of language strings
Formats an address correctly.
Wraps message for use with mailers that do not
automatically perform wrapping and for quoted-printable.
Original written by philippe.
Finds last character boundary prior to maxLength in a utf-8
quoted (printable) encoded string.
Original written by Colin Brown.
Set the body wrapping.
Assembles message header.
Returns the message MIME.
Assembles the message body. Returns an empty string on failure.
Returns the start of a message boundary.
Returns the end of a message boundary.
Sets the message type.
Returns a formatted header line.
Returns a formatted mail line.
Return the current array of attachments
Attaches all fs, string, and binary attachments to the message.
Returns an empty string on failure.
Encodes attachment in requested format.
Returns an empty string on failure.
@see EncodeFile()
Encodes string to requested format.
Returns an empty string on failure.
Encode a header string to best (shortest) of Q, B, quoted or none.
Checks if a string contains multibyte characters.
Correctly encodes and wraps long multibyte strings for mail headers
without breaking lines within a character.
Adapted from a function by paravoid at http://uk.php.net/manual/en/function.mb-encode-mimeheader.php
Encode string to quoted-printable.
Only uses standard PHP, slow, but will always work
Encode string to RFC2045 (6.7) quoted-printable format
Uses a PHP5 stream filter to do the encoding about 64x faster than the old version
Also results in same content as you started with after decoding
@see EncodeQPphp()
@author Marcus Bointon
Encode string to q encoding.
@link http://tools.ietf.org/html/rfc2047
Adds a string or binary attachment (non-filesystem) to the list.
This method can be used to attach ascii or binary data,
such as a BLOB record from a database.
Adds an embedded attachment. This can include images, sounds, and
just about any other document. Make sure to set the $type to an
image type. For JPEG images use "image/jpeg" and for GIF images
use "image/gif".
the Id for accessing the image in an HTML form.
Returns true if an inline attachment is present.
Clears all recipients assigned in the CC array. Returns void.
Clears all recipients assigned in the BCC array. Returns void.
Clears all recipients assigned in the ReplyTo array. Returns void.
Clears all recipients assigned in the TO, CC and BCC
array. Returns void.
Clears all previously set filesystem, string, and binary
attachments. Returns void.
Clears all custom headers. Returns void.
Returns the proper RFC 822 formatted date.
Returns the server hostname or 'localhost.localdomain' if unknown.
Returns a message in the appropriate language.
Returns true if an error occurred.
Changes every end of line from CR or LF to CRLF.
Adds a custom header.
Evaluates the message and returns modifications for inline images and backgrounds
Gets the MIME type of the embedded or inline image
Set (or reset) Class Objects (variables)
Usage Example:
$page->set('X-Priority', '3');
NOTE: will not work with arrays, there are no arrays to set/reset
@todo Should this not be using __set() magic function?
Strips newlines to prevent header injection.
Set the private key file and password to sign the message.
Set the private key file and password to sign the message.
Generate DKIM signature
Generate DKIM Canonicalization Header
Generate DKIM Canonicalization Body
Create the DKIM header, body, as new header
SMTP server port
@var int
SMTP reply line ending
@var string
Sets whether debugging is turned on
@var bool
Initiate a TLS communication with the server.
SMTP CODE 220 Ready to start TLS
SMTP CODE 501 Syntax error (no parameters allowed)
SMTP CODE 454 TLS not available due to temporary reason
Performs SMTP authentication. Must be run after running the
Hello() method. Returns true if successfully authenticated.
Returns true if connected to a server otherwise false
Closes the socket and cleans up the state of the class.
It is not considered good to use this function without
first trying to use QUIT.
Sends the HELO command to the smtp server.
This makes sure that we and the server are in
the same known state.
Implements from rfc 821: HELO <SP> <domain> <CRLF>
SMTP CODE SUCCESS: 250
SMTP CODE ERROR : 500, 501, 504, 421
Sends a HELO/EHLO command.
Starts a mail transaction from the email address specified in
$from. Returns true if successful or false otherwise. If True
the mail transaction is started and then one or more Recipient
commands may be called followed by a Data command.
Implements rfc 821: MAIL <SP> FROM:<reverse-path> <CRLF>
SMTP CODE SUCCESS: 250
SMTP CODE SUCCESS: 552,451,452
SMTP CODE SUCCESS: 500,501,421
Sends the quit command to the server and then closes the socket
if there is no error or the $close_on_error argument is true.
Implements from rfc 821: QUIT <CRLF>
SMTP CODE SUCCESS: 221
SMTP CODE ERROR : 500
Sends the command RCPT to the SMTP server with the TO: argument of $to.
Returns true if the recipient was accepted false if it was rejected.
Implements from rfc 821: RCPT <SP> TO:<forward-path> <CRLF>
SMTP CODE SUCCESS: 250,251
SMTP CODE FAILURE: 550,551,552,553,450,451,452
SMTP CODE ERROR : 500,501,503,421
Sends the RSET command to abort and transaction that is
currently in progress. Returns true if successful false
otherwise.
Implements rfc 821: RSET <CRLF>
SMTP CODE SUCCESS: 250
SMTP CODE ERROR : 500,501,504,421
Starts a mail transaction from the email address specified in
$from. Returns true if successful or false otherwise. If True
the mail transaction is started and then one or more Recipient
commands may be called followed by a Data command. This command
will send the message to the users terminal if they are logged
in and send them an email.
Implements rfc 821: SAML <SP> FROM:<reverse-path> <CRLF>
SMTP CODE SUCCESS: 250
SMTP CODE SUCCESS: 552,451,452
SMTP CODE SUCCESS: 500,501,502,421
This is an optional command for SMTP that this class does not
support. This method is here to make the RFC821 Definition
complete for this class and __may__ be implimented in the future
Implements from rfc 821: TURN <CRLF>
SMTP CODE SUCCESS: 250
SMTP CODE FAILURE: 502
SMTP CODE ERROR : 500, 503
Get the current error
Default POP3 port
@var int
Default Timeout
@var int
POP3 Carriage Return + Line Feed
@var string
Displaying Debug warnings? (0 = now, 1+ = yes)
@var int
POP3 Mail Server
@var string
POP3 Port
@var int
POP3 Timeout Value
@var int
POP3 Username
@var string
POP3 Password
@var string
Combination of public events - connect, login, disconnect
Connect to the POP3 server
Login to the POP3 server (does not support APOP yet)
Disconnect from the POP3 server
Send a string down the open socket connection to the POP3 server
Checks the POP3 server response for +OK or -ERR
If debug is enabled, display the error message array
Takes over from PHP for the socket warning handler
Default constructor, need to pass Session Item.
Define um valor padr\u00e3o para um campo qualquer
Define se \u00e9 para mostrar ou n\u00e3o o bot\u00e3o de atualiza\u00e7\u00e3o
Define se \u00e9 para mostrar ou n\u00e3o o bot\u00e3o de inclus\u00e3o
Return se \u00e9 para mostrar ou n\u00e3o o bot\u00e3o de atualiza\u00e7\u00e3o
Se era para adicionar bot\u00f5es automaticos de adi\u00e7\u00e3o e de limpar (add e clear)
Retornar se \u00e9 para adicionar bot\u00f5es autom\u00e1ticos
Make the table flow inside a div.
Passa pelo campo detectando se existe campos internos ou n\u00e3o
Fun\u00e7\u00e3o usada para detectar rela\u00e7\u00e3o de campos para javascripts
Define os campos que ser\u00e3o utilizados na classe
Define as colunas que ser\u00e3o criadas na Tabela
addData a column to this table.
Set the validators
Get validators
Adiciona uma a\u00e7\u00e3o personalizada a tabela
//TODO testar e melhorar
Gera uma a string d euma a\u00e7\u00e3o
getDataItem all itens of table/session, organized with arrayItem
Each time u call this function the session is cleanned and rewrited
M\u00e9todo que faz getData somente dos pr\u00f3prios controls
getDataItem one item from table
Set one item to table
addData some item to session/Table (You can pass an array or one item)
It is a recursive function.
Define the Data of the field.
It will clearData e add the passed data
clearData all itens of the table session
removeData some item from Table, you need an Id.
This id can be found is $item->arrayItem
Custom generate to this class it implements some MGridColumn function:
List:
$ title = inplemented
$ align = inplemented
$ nowrap = no
$ width = inplemented
$ visible = inplemented
$ options = inplemented
$ order = no
$ filter = no
Retorna o objeto MTableRaw utilizado no campo repetivo
Update the visual Component with some data. Make a ajax response
Enter description here...
Verifica se tem componente de envio de arquivo
Procede com o upload do arquivo, chamada dentro do autoAddAction
Constro\u00ed um menu
//TODO separar em duas classes GMenu e GMainMenu
Define o t\u00edtulo de menu
//TODO separar em fun\u00e7\u00f5es uma para definir o t\u00edtulo, uma para imagem e outra para o link
Adiciona um item/op\u00e7\u00e3o ao menu.
Internamente alimenta o array linear
Adiciona item do menu para o array linear, que \u00e9 utilizado para montar a navbar
Adiciona um item/op\u00e7\u00e3o, verifica\u00e7\u00e3o a permiss\u00e3o do usu\u00e1rio
public function addLink($label, $link = '#', $target = '_self', $normalImage=null)
{
$this->menuOptions[] = array($link, $label, "link", $target, $normalImage);
/
Conta quantos items (reais) tem o menu
Items reais n\u00e3o contam root nem separadores.
Adiciona um separador ao menu
Verifica se o menu tem itens/op\u00e7\u00f5es nele
Obtem o html de uma imagem
@global MTheme $theme
Monta o html do menu.
\u00c9 uma fun\u00e7\u00e3o recursiva que chama os menus internos
@global string $module m\u00f3dulo atual
@global MTheme $theme tema do miolo
Retorna o html do menu principal.
Inclui o html de todo o menu
Cria os itens do menu do gnuteca
Constr\u00f3i todos objetos conforme necess\u00e1rio
Obtem os campos de avalia\u00e7\u00e3o.
Fun\u00e7\u00e3o que faz o login dentro da aba de avalia\u00e7\u00e3o.
Obtem os campos da avalia\u00e7\u00e3o, com todas as avalia\u00e7\u00e3oes deste material
Fun\u00e7\u00e3o que salva a avalia\u00e7\u00e3o atual.
Retorna os campos do fornecedor
Retorna os campos de uma tab de fornecedor
Mostra a capa do livro no tamanho original
Monta rela\u00e7\u00e3o de empr\u00e9stimos
Fun\u00e7\u00e3o que destaca item em negrito, caso necess\u00e1rio.
Obtem bot\u00f5es inferiores
Obtem tab principal
Check if the value is present on array, if true, add "_" suffix N times on end of the value
Retorna bot\u00f5es com formatos de pesquisa poss\u00edveis
Suporta troca de formato em todos detalhes
Retorna rela\u00e7\u00e3o de exemplares
Construct the Gnuteca GnutecSelection, it has an addiontional parameter $hideDefaultSelect
Hide --select-- default option of miolo.
Define the options of this field
Define se pode selecionar v\u00e1rias informa\u00e7\u00f5es.
Retorna se pode ou n\u00e3o selecionar v\u00e1rios valores
Add a tab
Remove a tab from the tab list
Disable or enable a tab (o enable n\u00e3o funciona com tabs ajax)
Return a tab, or all tabs
Generate the tab buttons
Componente generate method
Mostra s\u00f3 a primeira tab no onload
Atalho para o miolo
@var MIOLO
Modulo do projeto
@var string
Listagem de validadores
@var array
T\u00edtulo do formul\u00e1rio
@var string
Nome do arquivo da grid
@var string
Metodo de pesquisa
@var string
Dados passados para a grid
@var stdClass
A autentica\u00e7\u00e3o padr\u00e3o da minha biblioteca, estar logado.
Verifica se o formul\u00e1rio precisa de login do usu\u00e1rio pesquisador/aluno
isUserLoginNeeded = \u00e9 necess\u00e1rio login do usu\u00e1rio
Os evals
Gerencia os eventos do subformul\u00e1rio
Valida o formul\u00e1rio, caso necess\u00e1rio
Define o t\u00edtulo do subformul\u00e1rio
Obtem o tipo do subformul\u00e1rio
Define os validadores
Obtem os validadores do formul\u00e1rio
Define os campos do formul\u00e1rio
Retorna um array com os campos do formul\u00e1rio
Obtem o campo especifico do formul\u00e1rio
Fun\u00e7\u00e3o padr\u00e3o de ajuda
Esta fun\u00e7\u00e3o foi feita para podermos obter o bot\u00e3o correto nos formul\u00e1rios fora do padr\u00e3o.
retorna o evento
Trigger para identificar evento de geracao PDF na grid (tratado no GGrid)
Trigger para identificar evento de geracao CSV na grid (tratado no GGrid)
Obtem objeto da grid, ja devidamente populado com dados caso necessario
Retorna os dados do post/formul\u00e1rio
Obtem dados da grid por consulta no banco
Obtem objeto da grid do MIOLO
Verifica se a tela esta sendo acessada pela primeira vez
Mostra novidades dentro do subformul\u00e1rio
M\u00e9todo de autentica\u00e7\u00e3o chamado pelo login do banner
Salva arquivo de texto simples
Seleciona uma image para adiciona-la ao editor.
Atualiza a lista de imagens para a pasta selecionada.
Lista as imagens para uma pasta
Monta parte referente a reserva (parte inicial)
O Sistema de reserva web usa as seguintes fun\u00e7\u00f5es:
1. gridReserve - inicio do processo, solicitado pela grid, ou pelo bot\u00e3o de reserva dos detalhes, pede para selecionar a unidade caso seja preciso
2. selectReserveLibraryUnit - ap\u00f3s selecionado a unidade, pede que se seleciona os exemplares, mas somente se for necess\u00e1rio tamb\u00e9m
3. btn_reserveConfirm_click - confirma a reserva, ou pede para o usu\u00e1rio confirmar, caso seja necess\u00e1rio
adiciona a reserva ao banco e informa ao usu\u00e1rio o resultado final, \u00danica fun\u00e7\u00e3o que instancia a opera\u00e7\u00e3o
#. reserveInInitialStatusConfirm - pode ser chamado caso existem exemplares em n\u00edvel inicial (dispon\u00edveis)
Ap\u00f3s selecionar biblioteca na reserva, monta rela\u00e7\u00e3o de exemplares ou pula a etapa, se n\u00e3o for necess\u00e1rio
Faz a reserva no banco. ( \u00danica fun\u00e7\u00e3o que instancia a opera\u00e7\u00e3o );
Este processo funciona da seguinte forma:
1. Define unidade e tipo de reserva
2. Define pessoa conforme a situa\u00e7\u00e3o
3. Faz a reserva pelo controlNumber ou pela lista de itemNumber, conforme a situa\u00e7\u00e3o
4. Finaliza Opera\u00e7\u00e3o
5. Mostra resultado da opera\u00e7\u00e3o para o usu\u00e1rio
Filtra as mensagens da reserva, evitando repeti\u00e7\u00e3o e c\u00f3digos n\u00e3o necess\u00e1rios para o usu\u00e1rio
Dialogo para confirmar se usuario realmente deseja reservar exemplares no estado inicial
Identificador de chave prim\u00e1ria
@var string
C\u00f3digo do workflow
@var string
Coluna que mant\u00e9m o c\u00f3digo relacionado com workflow (tableId)
@var integer
Alinhamento das a\u00e7\u00f5es
@var string pode ser horizontal ou vertical
Define um contador diferenciado para a navega\u00e7\u00e3o da grid.
Gera a grid e o csv dela , se quiser que nao gere o CSV passe o comma como null
Retorna chave prim\u00e1ria da grid
Define chave prim\u00e1ria da grid
Adiciona um bot\u00e3o utilizando classe MButton
Adiciona bot\u00e3o padr\u00e3o de nega\u00e7\u00e3o
Adiciona bot\u00e3o padrao de fechar
Trata os dados de um goto de prompt. C\u00f3digo adaptado do mprompt da fun\u00e7\u00e3o generateInner.
Recebe um conteudo a sera exibido na tela bloqueando o que esta por baixo.
Esta fun\u00e7\u00e3o pode ser usada de forma est\u00e1tica.
Seta o lookup de pessoa como readOnly
Fun\u00e7\u00e3o que aplica requirido ao label, faz acessibilidade (alt e title), dentre outros.
N\u00famero de registros por p\u00e1gina
@var integer
N\u00famero da p\u00e1gina atual
@var integer
total de registros
@var integer
total de p\u00e1ginas, dado calculado
@var integer
@var string M\u00e1scara de ordena\u00e7\u00e3o.
Define o total de registros
Define a p\u00e1gina atual
Define a p\u00e1gina atual
M\u00e9todo p\u00fablico obter a m\u00e1scara de ordena\u00e7\u00e3o.
M\u00e9todo p\u00fablico para setar a m\u00e1scara de ordena\u00e7\u00e3o.
Retorna o primeiro registro vis\u00edvel ap\u00f3s a pagina\u00e7\u00e3o.
Retorna a p\u00e1gina atual
Retorna total de p\u00e1ginas
Monta os links do paginador
Retorna um span para bot\u00f5es de primeiro/pr\u00f3ximo/anterior/\u00faltimo
Ajusta a acao de adicionar filho na grid dependendo do tipo de material e permissao
Quantidade de estrelas a montar
O Input que guarda o valor
@var MTextField
Tamanho da imagem
@var integer
Contro\u00ed o componente de estrelas
Define o tamanho da imagem
Retorna o tamanho da imagem
Define por javascript o valor da estrela
M\u00e9todo que cria a mensagem de confirma\u00e7\u00e3o de altera\u00e7\u00e3 de unidade de biblioteca.
Trata os campos Marc
900=901.* = pega todas as tags da etiqueta 901 (901.a,901.b)
900=90* = pega as tags de 901.* a 909.*
900=9** = pega todas as tags da etiqueta 900
Retorna a tableRaw formatada, passando o formato de pesquisa
Verifica se todos os objetos do data s\u00e3o GMaterialItem
Faz a importa\u00e7\u00e3o do \u00faltimo material aberto nos detalhes.
Fun\u00e7\u00e3o chamada ap\u00f3s a digita\u00e7\u00e3o dos dados
Objeto do formul\u00e1rio que a criou
@var MForm
Define o formul\u00e1rio que chamou a toolbar,
utilizado em algumas condi\u00e7\u00f5es
Retorna o formul\u00e1rio que chamou a toolbar
Adiciona uma rela\u00e7\u00e3o.
Um item do menu do bot\u00e3o de rela\u00e7\u00f5es.
Retorna o objeto de um bot\u00e3o;
adiciona bot\u00e3o de rela\u00e7\u00f5es caso tenha alguma
Adiciona bot\u00e3o personalizado
Define o c\u00f3digo do workflow
Define o c\u00f3digo da tabela relacionada
Remove one or more buttons
Fun\u00e7\u00e3o que cria o bot\u00e3o e os js necess\u00e1rios para esconder/mostrar a toolbar.
Essa fun\u00e7\u00e3o \u00e9 est\u00e1tica devido a forma de constru\u00e7\u00e3o da Cataloga\u00e7\u00e3o.
Quando a cataloga\u00e7\u00e3o form padronizada (Usar o GForm) n\u00e3o ser\u00e1
mais necess\u00e1rio esta fun\u00e7\u00e3o ser est\u00e1tica
M\u00e9todo que desativa campo por javascript
Adiciona um objeto do miolo para abrir como menu
Adiciona um item ao menu
Adiciona um separador a menu
Controles especificos do Gnuteca
Dados passados para a fun\u00e7\u00e3o
@var stdClass
Objeto GFunction
@var GFunction
Defini\u00e7\u00e3o do email administrativo
@var string
Estado futuro chamado ap\u00f3s rela\u00e7\u00e3o com circula\u00e7\u00e3o de material, normalmente CATALOGADA
@var integer
Vari\u00e1vel que identidica o c\u00f3digo do estado finalizado.
@var integer
Passa pelo construtor toda vez e define os parametros b\u00e1sicos.
Define os dados.
Pode ser extendido para modificar os dados.
Inicializa solicita\u00e7\u00e3o de compras enviando email para administrador e solicitante
Fun\u00e7\u00e3o de cancelamento
Fun\u00e7\u00e3o chamada na transi\u00e7\u00e3o de aprova\u00e7\u00e3o
Faz rela\u00e7\u00e3o entre material e solicita\u00e7\u00e3o
Get download link of the report file
M\u00e9todo para quebar a linha conforme o limite de caract\u00e9res
Escala um n\u00famero do pdf para a escala da fonte
Corta uma string para fechar com o tamanho da fonte e da escala
Class constructor
@throws PhpZipProxyException
Open a Zip archive
Retrieve the content of a file within the archive from its name
Add a file within the archive from a string
Add a file within the archive from a file
Close the Zip archive
Class constructor
@throws PclZipProxyException
Open a Zip archive
Retrieve the content of a file within the archive from its name
Add a file within the archive from a string
Add a file within the archive from a file
Close the Zip archive
Empty the temporary working directory recursively
Open a Zip archive
Retrieve the content of a file within the archive from its name
Add a file within the archive from a string
Add a file within the archive from a file
Close the Zip archive
Constructor
Returns the name of the segment
Does the segment have children ?
Countable interface
IteratorAggregate interface
Replace variables of the template in the XML code
All the children are also called
Analyse the XML code in order to find children
Assign a template variable to replace
@throws SegmentException
Assign a template variable as a picture
@throws OdfException
Shortcut to retrieve a child
@throws SegmentException
Proxy for setVars
Returns the parsed XML
Class constructor
@throws OdfException
Assing a template variable
@throws OdfException
Assign a template variable as a picture
@throws OdfException
Move segment tags for lines of tables
Called automatically within the constructor
Merge template variables
Called automatically for a save
Add the merged segment to the document
@throws OdfException
Display all the current template variables
Display the XML content of the file from odt document
as it is at the moment
Display loop segments declared with setSegment()
Declare a segment in order to use it in a loop
@throws OdfException
Save the odt file on the disk
@throws OdfException
Internal save
@throws OdfException
Export the file as attached file by HTTP
@throws OdfException
Returns a variable of configuration
Returns the temporary working file
Delete the temporary file when the object is destroyed
M\u00e9todo a ser executado em segundo plano.
Executa um tarefa em segundo plano
Re-executauma tarefa em segundo plano, passando o c\u00f3digo do log
Executa uma tarefa em segundo plano. As tarefas em segundo plano devem estar na pasta backbagroundTasks.
Ser\u00e1 gerado um arquivo de log com o mesmo nome da tarefa.
Verifica se existe a possibilidade de executar tarefas em segundo plano.
1. Verifica se a fun\u00e7\u00e3o exec existe.
2. Verifica se o php cli existe
3. Verifica se n\u00e3o esta em Modo Seguro
4. Verifica se a prefer\u00eancia de execu\u00e7\u00e3o em segundo plano esta liberada.
Number of leading context "lines" to preserve.
Number of trailing context "lines" to preserve.
Number of leading context "lines" to preserve.
Number of trailing context "lines" to preserve.
Number of leading context "lines" to preserve.
Number of trailing context "lines" to preserve.
Prefix for inserted text.
Suffix for inserted text.
Prefix for deleted text.
Suffix for deleted text.
Header for each change block.
What are we currently splitting on? Used to recurse to show word-level
changes.
Conflict counter.
@var integer
Computes diff between 3 sequences of strings.
Path to the diff executable
@var string
Returns the array of differences.
Get lines from either the old or new text
than one line.
Divides the Largest Common Subsequence (LCS) of the sequences (XOFF,
XLIM) and (YOFF, YLIM) into NCHUNKS approximately equally sized
segments.
Returns (LCS, PTS). LCS is the length of the LCS. PTS is an array of
NCHUNKS+1 (X, Y) indexes giving the diving points between sub
sequences. The first sub-sequence is contained in (X0, X1), (Y0, Y1),
the second in (X1, X2), (Y1, Y2) and so on. Note that (X0, Y0) ==
(XOFF, YOFF) and (X[NCHUNKS], Y[NCHUNKS]) == (XLIM, YLIM).
This function assumes that the first lines of the specified portions of
the two files do not match, and likewise that the last lines do not
match. The caller must trim matching lines from the beginning and end
of the portions it is going to specify.
Finds LCS of two sequences.
The results are recorded in the vectors $this->{x,y}changed[], by
storing a 1 in the element for each line that is an insertion or
deletion (ie. is not in the LCS).
The subsequence of file 0 is (XOFF, XLIM) and likewise for file 1.
Note that XLIM, YLIM are exclusive bounds. All line numbers are
origin-0 and discarded lines are not counted.
Adjusts inserts/deletes of identical lines to join changes as much as
possible.
We do something when a run of changed lines include a line at one end
and has an excluded, identical line at the other. We are free to
choose which identical line is included. `compareseq' usually chooses
the one at the beginning, but usually it is cleaner to consider the
following identical line to be the "change".
This is extracted verbatim from analyze.c (GNU diffutils-2.7).
Parses a unified or context diff.
First param contains the whole diff and the second can be used to force
a specific diff type. If the second parameter is 'autodetect', the
diff will be examined to find out which type of diff this is.
'context', 'unified', or 'autodetect'.
Parses an array containing the unified diff.
Parses an array containing the context diff.
Number of leading context "lines" to preserve.
This should be left at zero for this class, but subclasses may want to
set this to other values.
Number of trailing context "lines" to preserve.
This should be left at zero for this class, but subclasses may want to
set this to other values.
Constructor.
Get any renderer parameters.
Renders a diff.
Computes a diff between sequences of strings.
This can be used to compute things like case-insensitve diffs, or diffs
which ignore changes in white-space.
number of elements as $from_lines. The
elements in $mapped_from_lines and
$mapped_to_lines are what is actually
compared when computing the diff.
of elements as $to_lines.
Constantes para definir codifica\u00e7\u00e3o do recibo.
Return an array with receipt config list. Ready for MCombo.
Adds an receipt to list
Return the itens of receipt list
Return an unique item, for it class and Person
The string with generated receipts
Retorna \u00faltimo recibo (pode ser v\u00e1rios recibos) gerado como texto (string).
Reenvia recibos da \u00faltima opera\u00e7\u00e3o.
Limpa o diretorio de armazenamento dos recibos.
Clean the receipt
Envia o recibo para o servidor de impressora ou para o browser
De acordo com a situa\u00e7\u00e3o
the resultant content
@var string
if is to post mail
@var boolean
relation of varios receipts
@var object
the id of person of this receipt
$USER_CODE
@var integer
the name of person of this receipt
@var string
O campo login da Pessoa
@var string
the email of person of this receipt
$USER_NAME
@var string
the id of LibraryUnit
@var integer
the name of libraryUnit
$LIBRARY_UNIT_DESCRIPTION
@var string
bus material used to get author and title
@var BusMaterial
path to store the pdf
@var string
GPDF object
@var GPDF
the receipt generate date
@var string
the receipt generate time
@var string
the system operator
@var string
opera\u00e7\u00e3o (e tipo do recibo)
@var string
model to generate the receipt
@var string
the model for detail (itens)
@var string
modelo de assunto de email
@var string
modelo de conte\u00fado de email
@var string
mensagem a ser passada para a opera\u00e7\u00e3o geral
@var string
Define the data of receipt, it is diferent for each receipt
Return the data of receipt
Add and item to item list
Define all itens
Return all itens
Pass each item set it model, calling it parseData and making it generate.
It set the generated string to $WORKS variable
Parse the data of receipt, finding needed information in database
and set the variables
Return the generate content
Define the content of receipt
Define if receipt if printable
Return if receipt is printable
Define if receipt can be postable (mailed)
Return if receipt can be postable (mailed)
Define the receipt model, it is a static definition
Return the static model of this type of receipt
Return the static model of detailof this type of receipt
Gera o hash para o recibo
Generate the string of receipt
Return the generated string of receipt
Definr a message to receipt
Return the message defined in receipt
Create a pdf of the receipt
Return the file path (filename) of generated PDF
Send the email if is postable.
Return the list of Receipts stored in session
Clear the list of ReceiptMail
Define the data of receipt, it is diferent for each receipt
Return the data of receipt
Parse the data of receiptWork
Define the model of ReceiptWork
Return the model of receito work
Define the generated content
Return the generated content
*****************************************************************************
*
Protected methods *
*
*****************************************************************************
A checagem de acesso deste \u00e9 via operador logado
Este formul\u00e1rio n\u00e3o precisa de login do usu\u00e1rio
Retorna a grid
Mostra detalhes do material
Janela da data de renova\u00e7\u00e3o
Cancela uma requisi\u00e7\u00e3o (CONFIRMACAO)
Cancela uma requisi\u00e7\u00e3o
@var BusinessGnuteca3BusOperationRenew
Finalize processo de renova\u00e7\u00e3o
Monta a div de mensagem
M\u00e9todo que obt\u00e9m as mesagens de acordo com o limit e offset
Desativa mensagem
Ajax que adiciona mensagens restantes
@var BusinessGnuteca3BusFBN
A checagem de acesso deste formul\u00e1rio \u00e9 via integra\u00e7\u00e3o com biblioteca nacional
Este formul\u00e1rio n\u00e3o precisa de login do usu\u00e1rio
Monta os detalhes do material especifico
@var BusinessGnuteca3BusPurchaseRequest
Fun\u00e7\u00e3o que retorna os validadores
Salva a solicita\u00e7\u00e3o de compras
A checagem de acesso deste formul\u00e1rio \u00e9 via integra\u00e7\u00e3o com google
Este formul\u00e1rio n\u00e3o precisa de login do usu\u00e1rio
Ao montar a grid bota os dados na sess\u00e3o para obter os detalhes sem precisar ir no google novamente
Detalhes do material
Create Default Fileds for Search Form
Cancela uma determinada reserva
Ao clicar na estrela dos favoritos
Mostra detalhes da obra
Obtem dados da grid por consulta no banco
Event triggered when user chooses Delete from the toolbar
Event triggered when user chooses Yes from the Delete prompt dialog
INICIO DAS FUN\u00c7\u00d5ES NECESSARIAS PARA O REPETITIVE FIELD COM AJAX
Limpa o valor prenchido nos campos
Fun\u00e7\u00e3o chamada automaticamente ao apertar editar na tabela
Verifica, por expre\u00e7\u00e3o regular, se um email \u00e9 v\u00e1lido
Verifica se o valor passado \u00e9 um CNPJ v\u00e1lido
@author Gabriel Fr\u00f3es - www.codigofonte.com.br
<--- Copyright 2005-2011 de Solis - Cooperativa de Solu\u00e7\u00f5es Livres Ltda. e
Univates - Centro Universit\u00e1rio.
Este arquivo \u00e9 parte do programa Gnuteca.
O Gnuteca \u00e9 um software livre; voc\u00ea pode redistribu\u00ed-lo e/ou modific\u00e1-lo
dentro dos termos da Licen\u00e7a P\u00fablica Geral GNU como publicada pela Funda\u00e7\u00e3o
do Software Livre (FSF); na vers\u00e3o 2 da Licen\u00e7a.
Este programa \u00e9 distribu\u00eddo na esperan\u00e7a que possa ser \u00fatil, mas SEM
NENHUMA GARANTIA; sem uma garantia impl\u00edcita de ADEQUA\u00c7\u00c3O a qualquer MERCADO
ou APLICA\u00c7\u00c3O EM PARTICULAR. Veja a Licen\u00e7a P\u00fablica Geral GNU/GPL em
portugu\u00eas para maiores detalhes.
Voc\u00ea deve ter recebido uma c\u00f3pia da Licen\u00e7a P\u00fablica Geral GNU, sob o t\u00edtulo
"LICENCA.txt", junto com este programa, se n\u00e3o, acesse o Portal do Software
P\u00fablico Brasileiro no endere\u00e7o www.softwarepublico.gov.br ou escreva para a
Funda\u00e7\u00e3o do Software Livre (FSF) Inc., 51 Franklin St, Fifth Floor, Boston,
MA 02110-1301, USA --->
Filtros avan\u00e7ados para a pesquisa
@author Eduardo Bonfandini [eduardo@solis.coop.br]
@version $Id$
\b Maintainers \n
Eduardo Bonfandini [eduardo@solis.coop.br]
Jamiel Spezia [jamiel@solis.coop.br]
Luiz Gregory Filho [luiz@solis.coop.br]
Moises Heberle [moises@solis.coop.br]
Sandro Roberto Weisheimer [sandrow@solis.coop.br]
@since
Class created on 28/07/2009
TODO esse arquivo deveria ser uma classe (orienta\u00e7\u00e3o a objetos)
Monta filtro avan\u00e7ado de aquisi\u00e7\u00e3o
FIXME fun\u00e7\u00e3o chamado no compareArray para verificar se valor \u00e9 nulo
Feito fora da classe para compatibilidade com PHP 5.2.4
*****************************************************************************
Utility to generate font definition files *
*
Version: 1.14 *
Date: 2008-08-03 *
Author: Olivier PLATHEY *
*****************************************************************************
*****************************************************************************
fontfile: path to TTF file (or empty string if not to be embedded) *
afmfile: path to AFM file *
enc: font encoding (or empty string for symbolic fonts) *
patch: optional patch for encoding *
type: font type if fontfile is empty *
*****************************************************************************
M\u00e9todo privado para autenticar na base Ldap
Obt\u00e9m dados do Ldap
M\u00e9todo de autentica\u00e7\u00e3o do Ldap
Gera uma imagem com o c\u00f3digo de barras
Constructor method
Esta fun\u00ef\u00bf\u00bd\u00ef\u00bf\u00bdo cria o socket resource
Esta fun\u00ef\u00bf\u00bd\u00ef\u00bf\u00bdo efetua a conexao com o server
Inicia a conexao com o servidor
Envia mensagem para o server
Aguarda uma resposta do servidor.
retorna o codigo validador
Desconecta com servidor
Exibe uma mensagem na tela;
Verifica se o servidor de impress\u00e3o esta rodando corretamente
Retorna o codigo do erro.
Retorna o endere\u00e7o do servidor de impress\u00e3o
Fun\u00e7\u00e3o que define e trata o conte\u00fado e indicadores
Fun\u00e7\u00e3o que verifica integradide minima para inser\u00e7\u00e3o na base
Formata um array de GMaterialItem usando um formato de pesquisa
Converte um item GMaterialItem para StdClass \u00fatil para guardar na sess\u00e3o
Retorna um novo objeto GMaterialItem passando um stdClass.
Define v\u00e1rias vari\u00e1veis de uma \u00fanica vez.
@example array( 'nomeDaVari\u00e1vel' => 'conte\u00fado' )
Determine if can do execute functions
Interpreta a string passada em content, considerando as vari\u00e1veis informadas
Call a definide funcion
Cria um link html, normalmente usado para o campo 856.u da cataloga\u00e7\u00e3o
Parametros:
0 - o link, ou links caso tenha separador
1 - o separador, valor padr\u00e3o "\n"
Este metodo documenta detalhes sobre as fun\u00e7\u00f5es;
Este metodo \u00e9 uma fun\u00e7\u00e3o do gnuteca function, foi criado pois o switch que seleciona a fun\u00e7\u00e3o esta muito comprido ja.
Retorna o separadore de duas tags.
Retorna a m\u00e9dia das notas dadas para um material
Retorna o material no formato ISO 2709
Contrutor est\u00e1tico usado para que possa se utilizar
o construtor e chamar a fun\u00e7\u00e3o necess\u00e1ria na mesma linha.
@example GString::construct( $string )->generate() = retorna a string em formato de usu\u00e1rio
Define a string
Retorna a string na codifica\u00e7\u00e3o necess\u00e1ria
Adiciona algum texto a string.
Passa pela fun\u00e7\u00e3o de convers\u00e3o para garantir a string esteja na codifica\u00e7\u00e3o utilizada.
Troca um cont\u00e9udo por outro, na string atual.
Al\u00e9m disso retorna a nova string
Converte o texto para minusculas
Converte o texto para maisculas
Retorna o caracter solicitado pelo parametro index
Obt\u00e9m a string
Seta a codifica\u00e7\u00e3o
Obt\u00e9m a codifica\u00e7\u00e3o
Verifica se a string \u00e9 UTF8
Verifica se a string \u00e9 da codifica\u00e7\u00e3o passada
Retorna a codififica\u00e7\u00e3o da string
Retorna o tamnho da string
Remove os espa\u00e7os no inicio e fim do texto
Converte a string para caracteres ASCII.
Retira acentos e outros caracteres especificos.
Corta a string de um ponto inicial, considerando ou n\u00e3o um tamanho
Explode a string retornando um array
Fun\u00e7\u00e3o chamada automaticamente pelo PHP quando precisa converter objeto para String
Fun\u00e7\u00e3o que o miolo chama automaticamente, convertendo o objeto para string
Atalho para o miolo
FIXME, se poss\u00edvel trocar por manager ou remover
@var Miolo
Nome do m\u00f3dulo atual, geralmente gnuteca3
@var string
objeto de conex\u00e3o
@var
objeto MSQL gerador de sqls
@var MSQL
A string sql a ser executada
@var string sql A string sql a ser executada
string com as colunas sem id
@var string com as colunas sem id
string com as colunas de chave
@var string com as colunas de chave
string com a/as tabelas.
@var string
usado por campos repetitivos
@var string
Vari\u00e1vel utilizada para verifica\u00e7\u00e3o se existe ou n\u00e3o a necessidade de aplicar o limit e offset para grid.
Ele \u00e9 aplicado no sql antes da execu\u00e7\u00e3o.
@var boolean
Define se \u00e9 pra mudar o select se busca para count
@var boolean
Define o offset da query
@var int
Guarda os campos de resultado da \u00faltima query
@var type
Class constructor. Create default variables and connects with gnuteca3 database.
@Param $columnsNoId the rest of table columsn that class will manage, can be comma separated.
Define aplica\u00e7\u00e3o de limit e offset, utilizado por grids.
Seleciona o banco de dados
Define os dados no business
Define the table id (code).
ATTENTION: this function automatically mounts the columns using $this->columnsNoId
Define the table columns (exept the id that is defined in other function)
ATTENTION: this function automatically mounts the columns using $this->id
Define the Bussines Columns
Define the Bussines tables
Define the Bussines where
Define um limite no select
Define o offset no select
Adiciona uma condi\u00e7\u00e3o de altern\u00e2ncia
Define SQL order
Clear the MSQL object and sql string;
Create a select sql.
Automatically mount a simple list function
that can be used in a MSelection be example
This functions manage the filters used in autoSelect function
$filters = array(
'classificationAreaId' => 'equals',
'areaName' => 'ilike' ,
'classification' => 'ilike' ,
'ignoreClassification' => 'ilike'
);
The function will search by classificationAreaId or classificationAreaIdS
it add "S" and try to find the information
Automatically makes a search in database
Function that implements a automatically get Function using $this->columns and $this->tables
Create a insert sql.
Automatically make an insert in databasem, it generate the sql and call databse function
ATTENTION: if $this->id has a value it will use it to do the insert, otherwise the function do not will pass id , and consider an auto id generated by the database
Create a update sql.
Makes an automatically update in this table in database.
Create a delete sql.
Make an automatically delete on base, it make the sql and execute it.
ATTENTION: you have to pass the functions args in the same quantity and order that $this->id
TODO:: INFORMAR ERROS MELHOR PARA O PROGRAMADOR
Executes an sql using query function, if you not pass the $sql param it will take $this->sql, insert, update, delete and select functions set it.
Executes a sql.
Strip "AS" and "Ref." SQL column
Convert a MSQL query result to an object or array of objects (if is an multilpe dimension array)
Associate SQL columns with business data
Get columns starting with normal columns and end by primary keys
Transforma um array de colunas em uma string preparada para MSQL
Converte colunas em texto par um array, sem espa\u00e7os
FIXME esta fun\u00e7\u00e3o tem o mesmo efeito de getColumnsArray
@deprecated
Convert an string separated by ',' to an array, if you not pass
$columnsString parameters it will take the default $this->columns
Extract the columns part of a sql and explode it and return as a array
Verifies if sql is valid to execute (or is only a select, not insert, update or delete)
Execute an sql, changing the sql by the form data
The sub sql is executed for each result of sql.
Inicia uma transa\u00e7\u00e3o na base de dados.
Efetua o commit da transa\u00e7\u00e3o corrente.
Faz rollback na transa\u00e7\u00e3o o banco de dados;
Returna uma string com limit e offset para concatena\u00e7\u00e3o no final do select.
Efetua a contagem de dados da tabela relacionada.
Prepara um sql puro utilizando ? e um array de argumentos.
Lista os nomes das tabelas de um esquema
Lista os nomes dos campos de uma tabela
Verifica acesso para v\u00e1rias transa\u00e7\u00f5es simultanemente
Executa a exporta\u00e7\u00e3o dos materiais
Define os validadores
Retornar array com validadores
Define o formul\u00e1rio a validar os dados
Return the message to show for validator
Construct a GnutecaUniqueValidator
Contrutor est\u00e1tico usado para que possa se utilizar
o construtor e chamar a fun\u00e7\u00e3o necess\u00e1ria na mesma linha.
@example GDate::construct( $date )->generate() = retorna a data em formato de usu\u00e1rio
Seta o dia
Obt\u00e9m o dia
Soma dias na data
Seta o m\u00eas
Obt\u00e9m o m\u00eas
Soma meses na data
Seta o ano
Obt\u00e9 o ano
Soma anos na data
Seta a hora
Obt\u00e9m a hora
Soma horas na data
Seta o minuto
Obt\u00e9m o minuto
Soma minutos na data
Seta o segundo
Obt\u00e9m o segundo
Soma segundos na data
Seta a data que ser\u00e1 trabalhada na classe, identificando qual \u00e9 a m\u00e1scara passada
Verifica se \u00e9 uma data valida.
Fun\u00e7\u00e3o chamada automaticamente pelo PHP quando precisa converter dado para String
Fun\u00e7\u00e3o que o miolo chama automaticamente, convertendo o objeto para string
Retorna a diferen\u00e7a entre a data do objeto e a data do objeto do parametro.
Calcula a diferen\u00e7a entre datas
Este metodo verifica se a data passada por parametro esta em um formato v\u00e1lido.
Estando em um formato v\u00e1lido, esta seta os atributos internos e retorna true.
Limpa os atributos do objeto
M\u00e9todo est\u00e1tico que retorna o tempo e data atual
M\u00e9todo para obter a data conforme a m\u00e1scara passada por par\u00e2metro
Retorna o timestamp unix da data
Compara dois objetos GDate
M\u00e9todo privado para arredondar valores
Retorna o dia da semana de 1 a 7
Construtor
Previne checagens internas do FPDF que gerariam erro com UTF-8.
Prints a cell (rectangular area) with optional borders, background color and character string.
The upper-left corner of the cell corresponds to the current position. The text can be aligned or centered.
After the call, the current position moves to the right or to the next line. It is possible to put a link on the text.
If automatic page breaking is enabled and the cell goes beyond the limit, a page break is done before outputting.
(Documenta\u00e7\u00e3o retirada do site do FPDF).
Sobreescreve a fun\u00e7\u00e3o para alterar a codifica\u00e7\u00e3o, suportar UTF-8 mas gerar em ISO.
retorna o nome do arquivo gerado
seta o height entre as linhas
seta o conteudo do arquivo
Seta numero de linhas de uma pagina.
gera o conteudo do pdf
Seta a fonte como negrito ou n\u00e3o
Remove o arquivo...
Get download link of the report file
Attributes
Constructor method
Esta fun\u00e7\u00e3o cria o socket resource
Seta detalhes do servidor
Enter description here...
Aceita uma conexao do socket
Encerra uma conexao
Esta fun\u00e7\u00e3o responde para o cliente confirmando os dados recebidos.
Responde para o cliente
Efetua a leitura o socket.
Inicia o servi\u00e7o so server
chama a classe de impress\u00e3o e manda ela imprimir
Echo da tela inicial do sistema
Exibe uma mensagem na tela;
Retorna o codigo do erro.
Define o charset para o email.
Retorna o charset do email
Retorna o arquivo de log
Este m\u00e9todo incrementa o array de destinat\u00e1rios
Define um destinat\u00e1rio
Adiciona um anexo
seta o conteudo que sera encaminhado pelo email
seta o assunto do email
Seta o Usuario
O usu\u00e1rio \u00e9 necessario caso o metodo de envio seja atutenticado
Seta o password
este parametro \u00e9 necessario caso o metodo de envio seja autenticado
Seta o servidor
Seta a porta de conexao
Seta o remetente
Seta o nome do rementente
Seta se o metodo de conexao com o server \u00e9 autenticado ou n\u00e3o
Seta o tipo do conteudo que ser\u00e1 enviado (HTML|TEXT)
Seta a liguagem do conteudo
Retorna os destinat\u00e1rios
Retorna os anexos
retorna o remetente
retorna o nome do remetente
retorna o Assunto do email
retorna o Conteudo do email
retorna o usuario
retorna o password
retorna o host
retorna a porta
retorna se o metodo de conexao \u00e9 autenticado (authenticate true|false)
retorna se o tipo de texto \u00e9 html (isHTML true|false)
envia o email
Escreve o arquivo de log
Fun\u00e7\u00e3o para autenticar os operadores via LDAP. Esta fun\u00e7\u00e3o suporta um server e um server-slave
Retorna o conte\u00fado do arquivo de log
Retorna o caminho do arquivo de log
Retorna a data da \u00faltima opera\u00e7\u00e3o do servidor
Inicia o servidor zebra
FIXME n\u00e3o funciona
@deprecated
Retorna o commando de inicia\u00e7\u00e3o do servidor
Remove os arquivos da base de dados do servidor Zebra
D\u00e1 in\u00edcio a um novo workflow.
Para isso:
Deve encontrar o estado inicial e garantir que n\u00e3o haja inconsist\u00eancia.
Gravar a instancia no gtcWorkflowInstance
Gravar registro na gtcWorkflowHistory
Retorna o estado atual da solicita\u00e7\u00e3o
Retorna um array com o c\u00f3digo e descri\u00e7\u00e3o dos poss\u00edveis estados.
Deve buscar o estado atual para verificar na tabela gtcWorkflowTransation quais s\u00e3o as pr\u00f3ximas transi\u00e7\u00f5es poss\u00edveis.
Retorna todo o hist\u00f3rico da solicita\u00e7\u00e3o.
Buscar o c\u00f3digo da transi\u00e7\u00e3o na gtcWorkflowInstance.
Buscar o hist\u00f3rico da instancia em gtcWorkflowHistory.
Altera o estado da solicita\u00e7\u00e3o.
Para isso:
Buscar o estado atual.
Verificar se existe a transi\u00e7\u00e3o do estado atual para o estado futuro.
Verificar se existe uma fun\u00e7\u00e3o externa para esta transi\u00e7\u00e3o. //n\u00e3o concordo, tem caso que n\u00e3o tem fun\u00e7\u00e3o
Se n\u00e3o existir a fun\u00e7\u00e3o, retornar um erro
Se existir executar a fun\u00e7\u00e3o.
Se a fun\u00e7\u00e3o retornar true executar o update do estado na gtcWorkflowInstance e inserir um novo registro em gtcWorkflowHistory.
Remove uma instancia e seu hist\u00f3rico
Contrutor padr\u00e3o.
Define o conte\u00fado de uma vari\u00e1vel
Define a codifica\u00e7\u00e3o
Compatibilidade com GPDF
Retorna a codifica\u00e7\u00e3o
Compatibilidade com GPDF
Define caminho de exporta\u00e7\u00e3o
Compatibilidade com GPDF
retorna o nome do arquivo gerado
Compatibilidade com GPDF
O nome do arquivo de modelo aberto
Compatibilidade com GPDF
O nome do arquivo de modelo aberto
Compatibilidade com GPDF
Gera um arquivo, seguindo o padr\u00e3o do FPdf
Compatibilidade com FPDF
Obt\u00e9m a quantidade de registros no objeto
Adiciona um registro no objeto
Obt\u00e9m um registro do objeto
Seta o caractere que representa o fim do registro
Obt\u00e9m o caractere que representa o fim do registro
Checa se o fieldId \u00e9 um campo que pode ser exportado/importado
Quando o parametro export \u00e9 false, indica que o m\u00e9todo est\u00e1 sendo usado em importa\u00e7\u00e3o
Gera a String com todos os registros do objeto
Array of changes.
@var array
Computes diffs between sequences of strings.
will automatically select the best.
Normally an array of two arrays, each
containing the lines from a file.
Returns the array of differences.
returns the number of new (added) lines in a given diff.
@since Text_Diff 1.1.0
@since Horde 3.2
Returns the number of deleted (removed) lines in a given diff.
@since Text_Diff 1.1.0
@since Horde 3.2
Computes a reversed diff.
Example:
<code>
$diff = new Text_Diff($lines1, $lines2);
$rev = $diff->reverse();
</code>
original diff. Note that we purposely don't return a
reference here, since this essentially is a clone()
method.
Checks for an empty diff.
Computes the length of the Longest Common Subsequence (LCS).
This is mostly for diagnostic purposes.
Gets the original set of lines.
This reconstructs the $from_lines parameter passed to the constructor.
Gets the final set of lines.
This reconstructs the $to_lines parameter passed to the constructor.
Removes trailing newlines from a line of text. This is meant to be used
with array_walk().
Determines the location of the system temporary directory.
Returns false if one could not be found.
Checks a diff for validity.
This is here only for debugging purposes.
Computes a diff between sequences of strings.
This can be used to compute things like case-insensitve diffs, or diffs
which ignore changes in white-space.
number of elements as $from_lines. The
elements in $mapped_from_lines and
$mapped_to_lines are what is actually
compared when computing the diff.
of elements as $to_lines.
Default constructor
Add a Message with a type to message list. It will debug the file and the line that the error occurs
Add a ERROR Message to message list. It will debug the file and the line that the error occurs
Add a INFO (information) Message to message list. It will debug the file and the line that the error occurs
Add a QUESTION Message to message list. It will debug the file and the line that the error occurs
Add a ALERT Message to message list. It will debug the file and the line that the error occurs
Return a array of objects with all information
Return all message to a string imploded by sepator;
Return a array of objects with all ERRORS
Return a array of objects with all INFO (information)
Return a array of objects with all QUESTION
Return a array of objects with all ALERT
This function will clear the message list
Return a table raw with messages in class
Consttuct a message object
Adiciona n\u00famero de control no objeto
Apaga n\u00famero de controle do objeto
Obt\u00e9m o n\u00famero de controle do material
Executa a exporta\u00e7\u00e3o dos materiais
Realiza o agrupamento dos subFields com o field
Retorna um objeto com as configura\u00e7\u00f5es do miolo.conf da base especifica
Retorna o caminho absoluto do arquivo de backup
Retorna o caminho relativo do arquivo de backup
Define o nome da configura\u00e7\u00e3o da base de dados
Obtem qual o nome da configura\u00e7\u00e3o da base
Get array of "Yes" or "No" to use on MIOLO form's (MSelection/combolist/etc)
Get array list of "Yes" and "No"
Compara dois array verificando se s\u00e3o ou n\u00e3o iguais
Retorna true se s\u00e3o iguais
Retorna false se diferentes
//TODO avaliar se n\u00e3o deveriam estar na cataloga\u00e7\u00e3o
Extrai uma rela\u00e7\u00e3o de variaveis marc de uma string.
//TODO avaliar se isso n\u00e3o deveria estar no GFunction
Return formatted money value
//TODO avaliar real necessidade e local desta fun\u00e7\u00e3o
Retorna o calculo somado de um array de valores ou string
//TODO avaliar real necessidade e local desta fun\u00e7\u00e3o
Obt\u00e9m a vers\u00e3o do gnuteca
Obt\u00e9m a sub vers\u00e3o do gnuteca
Retorna a string de chamada para algum evento AJAX do formulario
Retorna a string de chamada para algum evento postBack do formulario
Reconstr\u00f3i a \u00faltima fun\u00e7\u00e3o ajax usada
Retorna um link (miolo.doLink) para uma a\u00e7\u00e3o
Codifica um array para utiliza\u00e7\u00e3o dentro de fun\u00e7\u00e3o ajax.
Decodifica os argumentos passados atrav\u00e9s do encodeJsArgs
Retorna os argumentos passados na fun\u00e7\u00e3o ajax.
Note que ainda precisa ser utilizada o decodeJsArgs, caso necess\u00e1rio
Retorna qual \u00e9 a fun\u00e7\u00e3o/chamada ajax executada neste momento
Retorna string da a\u00e7ao javascript de fechar uma janela de di\u00e1logo
Funcao utilizada para alinhar campos que nao estao sendo renderizados corretamente nos formularios
Retorna url completa da imagem do tema
Execute um teste unit\u00e1rio dentro do gnuteca
Gera o conte\u00fado de um test unit\u00e1rio baseado em um template.
public function startGCron()
{
$logFile = "/tmp/gcron.log";
$fullPath = str_replace('html','', getcwd() );
$fileName = "modules/gnuteca3/misc/scripts/";
StrPad compat\u00edvel com UTF8.
Fun\u00e7\u00e3o de acesibilidade, adiciona tabIndex, alt e title ao campo passado
Fun\u00e7\u00e3o que procurar dentro de um array de campos (ou mdiv/mcontainer)
o campo que voc\u00ea precisa.
Caso encontre retorna o objeto do miolo, caso n\u00e3o retorna nulo
Obtem MImage com a foto da pessoa
@example GUtil::getPersonPhoto($person->personId, array('height'=>'90px')
Retorna uma string com informa\u00e7\u00f5es de mem\u00f3ria, utilizado para acompanhamento e log de uso de mem\u00f3ria do gnuteca.
Um strip_tags que s\u00f3 tira a tag selecionadas
M\u00e9todo p\u00fablico e est\u00e1tico para retirar acentos de strings.
Define columns widths of the table
Enter description here...
Construi o ISO com os parametros necess\u00e1rios para interpreta\u00e7\u00e3o.
Ao destruir retorna o encoding interno para o padr\u00e3o
Define delimitadores de registro, campo e subcampo
Caso em ASCII obtem o c\u00f3digo chr do delimitador
Obtem um objeto de sa\u00edda, um registro / um livro.
Retorna um array indexado pela etiqueta Ex. '100.a'
Adiciona uma mensagem de erro a classe
Obtem um array com as mensagem de erros
Verifica se existe o delimitador no conte\u00fado
Trata os dados do registro.
Recebe o registro como texto e converte para um array j\u00e1 tratado
Fun\u00e7\u00e3o utilizada dentro de um while para proceder com a leitura dos registros
@example while ( ($registro = $i->leRegistro()) != null)
Seta o delimitador de registro
Obt\u00e9m o delimitador de registro
Adiciona um registro ao objeto
Obt\u00e9m um registro espec\u00edfico do objeto
Retorna os registros do objeto
Obt\u00e9m a quantidade de registros do objeto
attributes
Constructor method
Seta a impressora que esta instalada e cria o objeto da impressora
seta o conteudo a ser impresso
Imprime o conteudo
Este metodo abre o destino e vai escrevendo diretamente nele.
Este metodo aplica ajustes no conteudo independentemente do modelo da impressora
Retona o conteudo
Este metodo foi implementado para transformar o XML do Z3950 para PHP
Este metodo foi implementado para transformar o XML do Z3950 para PHP
Valida itens do registro
Substitui valores no conte\u00fado de acordo com a prefer\u00eancia MARC21_REPLACE_VALUES
Seta delimitador de campo
Obt\u00e9m delimitador de campo
Seta o delimitador de subcampo
Obt\u00e9m delimitador de subcampo
M\u00e9todo que obt\u00e9m um array de GMaterialItem
M\u00e9todo que obt\u00e9m a String record
M\u00e9todo que obt\u00e9m a String record
Attributes
Class constructor
Seta os attributos do cliente.
Seta o method que sera acessado
checa permiss\u00e3o ao methodo
Fun\u00e7\u00e3o que autentica um cliente
Retorna o web service cadastrado na base
Retorna o web service cadastrado na base
retorna o operador de web services
fun\u00e7\u00e3o die
Retorna o codigo do erro
Retorna a descri\u00e7ao do erro
trabalha o conteudo de acordo com o tipo de retorno desejado.
Retorna o ID do operador
Obt\u00e9m nome do operador
Verifica se tem um operador logado
Verifica se o operador possui alguma pemiss\u00e3o no gnuteca
Listagem de operador obtidas da base admin do miolo.
Fun\u00e7\u00e3o est\u00e1tica para listagem de operadores, utilizada em relat\u00f3rios.
Retorna biblioteca do operador logada
Retorna o nome da bibilioteca
Obt\u00e9m os nomes dos operadores (do GNUTECA), foi reescrito para poder passar os id's por array
Realiza o in\u00edcio da transa\u00e7\u00e3o
Testa o m\u00e9todo de inser\u00e7\u00e3o
Testa o m\u00e9todo de busca
Teste o m\u00e9todo get
Teste o m\u00e9todo update
Teste o m\u00e9todo delete
Realiza o commit da transa\u00e7\u00e3o
Atalho para framework
@var MIOLO
M\u00f3dulo da aplica\u00e7\u00e3o 'gnuteca3';
@var string
@deprecated
@var MUi
Barra de ferramentas do sistema
@var GToolbar
Conte\u00fado do formul\u00e1rio
@var BusinessGnuteca3BusFormContent
C\u00f3digo do workflow
@var string
Fun\u00e7\u00e3o chamada automaticamente pelo MForm,
no nosso caso, \u00e9 feita uma chamada ao mainsFields, caso seja necess\u00e1rio
Fun\u00e7\u00e3o que efetua a montagem dos campos iniciais.
Deve ser montada em cada form.
Aumenta a acessibilidade para campos.
Passa a label para o alt e title para que as dicas funcionem corretamente.
Este fun\u00e7\u00e3o insere os campos. Tambem gerencia a toolbar. Ser for um form de Search, este metodo insere a grid tambem
Verifica modifica\u00e7\u00f5es no formul\u00e1rio.
Caso existam modifica\u00e7\u00f5es mostra di\u00e1logo de confirma\u00e7\u00e3o
Define o campoe escondido de modifica\u00e7\u00e3o
Fun\u00e7\u00e3o chamada ao apertar em novo na toolbar
Fun\u00e7\u00e3o chamada ao apertar em busca na toolbar
Retorna o modo do formul\u00e1rio busca ou inser\u00e7\u00e3o
Define a classe de regras de neg\u00f3cio
Adiciona um validador
Seta os validadores do formulario
Seta o nome da grid e seus filtros
Seta a fun\u00e7\u00e3o que sera executada ao clicar no bot\u00e3o btnSearch
Seta o foco em um determinado campo.
Retorna o identificador do campo que \u00e9 definido o foco
Enter description here...
Seta a fun\u00e7\u00e3o de delete
Seta a fun\u00e7\u00e3o de inser\u00e7\u00e3o de dados
Seta a fun\u00e7\u00e3o de atualiza\u00e7\u00e3o
Seta a transa\u00e7\u00e3o
Define o c\u00f3digo do workflow para este formul\u00e1rio.
Retorna o c\u00f3digo do workflow para este formul\u00e1rio.
Define amostragem da barra de ferramentas
Verifica se seta exibindo a toolbar
FIXME essa fun\u00e7\u00e3o est\u00e1 com nome fora de padr\u00e3o deveria ser getDisplayToolbar
Seta todas a fun\u00e7\u00e3oes
Enter description here...
Seta as chaves primarias
retorna a fun\u00e7\u00e3o de busca
Retorna o nome do Business
Retorna o nome da grid
Enter description here...
retorna o evento
Returns previous level action url
retorna a url da a\u00e7\u00e3o corrente com evento search
Obtem o elemento/objeto da grid
verifica se a fu\u00e7\u00e3o \u00e9 search
verifica se a fun\u00e7\u00e3o \u00e9 insert
Em alguns casos o insert \u00e9 usado como new
Check o acesso
Adicionar tipo de validador no campo, para que o miolo interprete
que \u00e9 um campo requerido, colocando a classe e o * devido.
Recebe um conteudo a sera exibido na tela bloqueando o que esta por baixo.
Esta fun\u00e7\u00e3o pode ser usada de forma est\u00e1tica.
Cria um tela de informa\u00e7\u00e3o para o usu\u00e1rio com um bot\u00e3o OK.
Gera um tela de quet\u00e3o para o usu\u00e1rio com dois bot\u00f5es, Sim e N\u00e3o.
Gera uma tela de erro.
Fun\u00e7\u00e3o chamada quando usu\u00e1rio aperta F1 ou bot\u00e3o de help
Mostra um di\u00e1logo de ajuda com as fun\u00e7\u00f5es que podem ser utilizada no GFunction
Fun\u00e7\u00e3o que \u00e9 chamada ao clicar no bot\u00e3o btnSearch
A grid original do MIOLO foi reformulada na questao paginacao e ordenacao.
Para que a funcao searchFunction funcione corretamente, deve ser chamado esta funcao para corrigir estes eventos.
Atentar para o fato de que esta funcao \u00e9 utilizada em varios outros formularios que possuem sua propria searchFunction()
Essa fun\u00e7\u00e3o tamb\u00e9m altera o $_POST;
Carrega os dados dos campos
Method chamado quando o bot\u00e3o save \u00e9 clicado.
Valida os dados e seta classes de erros de valida\u00e7\u00e3o nos campos
Fun\u00e7\u00e3o chamada ao pressionar bot\u00e3o de salvar dados do formul\u00e1rio.
Fun\u00e7\u00e3o espec\u00edfica para retornar as op\u00e7\u00f5es do salvar. Esta fun\u00e7\u00e3o
somente retorna os campos com 'S' concatenado. N\u00e3o leva em considera\u00e7\u00e3o
os campos do insert/update.
Evento acionado quando o usuario seleciona Delete na toolbar
Fun\u00e7\u00e3o criada para remover registros da grid sem ter de escrever c\u00f3digo duplicado na fun\u00e7\u00e3o tbBtnDelete_confirm
Evento ativado quando o usu\u00e1rio seleciona "Sim" no bot\u00e3o da caixa de dialogo de confirma\u00e7\u00e3o da exclus\u00e3o.
Retorna toolbar padr\u00e3o, de acordo com a fun\u00e7\u00e3o definida
Enter description here...
M\u00e9todo chamado para incluir
The value of a Field
Disable a field
Check a field
The focus on a specific field
Make a field readOnly or not. Note that this function change the class of the field to
Change a class of a field
Define the inner content of an html element
Show a hided field (set display block)
* @param boolen to show the label of checkbox field
Hides a field (set display none)
Disable a field
Enabled a disabled field
Verifica se \u00e9 um novo cadastro
Este m\u00e9todo foi reescrito pois esta inconsistente.
O Correto mesmo \u00e9 verificar o evento, como esta na variavel $clickNew
Enter description here...
Enter description here...
Function called when user clicks F2
Evento acionado ao pressionar bot\u00e3o de salvamento F3
/
public function onkeydown114() //F3 save
{
$MIOLO = MIOLO::getInstance();
$formId = $this->page->getFormId();
$function = MIOLO::_REQUEST('function');
if ( $function == 'insert' || $function == 'update' )
{
$this->page->onload('miolo.doPostBack(\'tbBtnSave:click\',\'\',\''.$formId.'\');');
}
Enter description here...
Enter description here...
Enter description here...
Define o foco caso n\u00e3o tenha sido definido
Retorna a string para o httml
Encontra o primeiro campo que pode receber o foco
Trigger para identificar evento de geracao PDF na grid (tratado no GGrid)
Trigger para identificar evento de geracao CSV na grid (tratado no GGrid)
Verificacao para corrigir bug de ordenacao/filtro
M\u00e9todo reescrito para funcionar com ajax
Para funcionar os campos de dicion\u00e1rio,
foi adicionada no gnuteca form pois os includes n\u00e3o funcionavam corretamente;
FIXME aguardar uma posi\u00e7\u00e3o da equipe do miolo quando a eventos ajax em componentes
Post de upload de arquivo. Fun\u00e7\u00e3o criada para suportar upload de arquivo;
FIXME aguardar uma posi\u00e7\u00e3o da equipe do miolo quando a eventos ajax em componentes
Monta um di\u00e1logo de confirma\u00e7\u00e3o de troca de estado do workflow. Solicitado coment\u00e1rios.
Executa o salvamento do formul\u00e1rio e a troca de estado.
Executa o salvamento do formul\u00e1rio e instancia workflow
Mostra hist\u00f3rico do workflow.
Gera um teste unit\u00e1rio baseado em template e dados do formul\u00e1rio
Salva teste unit\u00e1rio no servidor
Executa o teste unit\u00e1rio padr\u00e3o do formul\u00e1rio
M\u00e9todo para mostrar mensagem na tela
Obtem um valor "salvo na sess\u00e3o" do GUnit.
Define um valor para ser usado em outro momento, algo semelhante a sess\u00e3o.
retorna a id da tarefa que pode ser setada apenas no construct
Registra um conteudo no log
Registra log de inicializa\u00e7\u00e3o
Registra log de finaliza\u00e7\u00e3o
Set o tempo que iniciou a execu\u00e7\u00e3o do script principal.
Este m\u00e9todo verifica se \u00e9 preciso executar o script
Este metodo verifica se \u00e9 preciso ser executado
Seta os parametros para a classe
Verifica se est\u00e1 rodando de dentro da GCron
@global array $_SERVER
Este m\u00e9todo encaminha um email para o administrador informando que uma requisi\u00e7\u00e3o foi cancelada.
Email que comunica o administrado da biblioteca sobre uma nova requisi\u00e7\u00e3o de emprestimo entre biblioteca
Email que comunica o administrado da biblioteca sobre uma requisi\u00e7\u00e3o de emprestimo entre biblioteca que foi cancelada
Email que comunica o administrado da biblioteca sobre uma requisi\u00e7\u00e3o de emprestimo entre biblioteca que foi cancelada
Email que comunica o administrado da biblioteca sobre uma requisi\u00e7\u00e3o de emprestimo entre biblioteca que foi cancelada
Email que comunica o administrado da biblioteca sobre uma requisi\u00e7\u00e3o de emprestimo entre biblioteca que foi cancelada
Envia um email para o administrador da biblioteca sobre emprestimos entre bibliotecas
Pega e-mail do empr\u00e9stimo entre bibliotecas de acordo com as a\u00e7\u00f5es
Envia um email comunicando o usuario que sua reserva foi atendida
Envia um email para o administrador com o resultado dos comunicados enviados para os alunos.
Envia email para o fornecedor agradecendo e/ou solicitando materiais.
Encaminha um email para o solicitante informando sobre o t\u00e9rmino da requisi\u00e7\u00e3o
Este metodo informa o usuario que sua reserva foi cancelada.
Este metodo cria uma tabela simples para enviar por email.
Esta fun\u00e7\u00e3o retorna o email do administrador para cada tipo de opera\u00e7\u00e3o.
Envia e-mail para usu\u00e1rio informando sobre devolu\u00e7\u00e3o
Envia um email para o administrador com o resultado dos comunicados de devolu\u00e7\u00e3o enviados para os alunos.
Envia e-mail para usu\u00e1rio informando sobre empr\u00e9stimo atrasado
Envia um email para o administrador com o resultado dos comunicados de empr\u00e9stimos atrasados enviados para os alunos.
Envia um e-mail para o usu\u00e1rio informando as novas aquisi\u00e7\u00f5es
Envia um email para o administrador com o resultado das notifica\u00e7\u00f5es de aquisi\u00e7\u00f5es
Envia um email para o administrador com o resultado das notifica\u00e7\u00f5es de t\u00e9rmino de requisi\u00e7\u00e3o
Constructor Method
Verifica se o yaz (utilizado pelo Z3950) esta instalado;
retorna o usuario
retorna o password
retorna o host
Adiciona um clausula de condi\u00e7\u00e3o para pesquisa
Caso seja uma busca, retorna quantidade total de registros retornados.
Executa a busca
Este m\u00e9todo faz uma rela\u00e7\u00e3o entre campos do marc com campos do z3950
Faz insert ou update de acordo com a situa\u00e7\u00e3o
Faz uma opera\u00e7\u00e3o de inser\u00e7\u00e3o
Faz uma opera\u00e7\u00e3o de atualiza\u00e7\u00e3o
Insere ou atualiza um registro na base de dados
Verifica se o estilo da data do banco de dados est\u00e1 definido corretamente
Checa se a GCron est\u00e1 sendo executada
Fun\u00e7\u00e3o de teste criada pelo vpp
Define the Library Unit of this operation (and verify if exists)
Define o local da devolu\u00e7\u00e3o. A fun\u00e7\u00e3o verificar\u00e1 se o id passado existe.
Return the seted location for material movement
Return the seted person
Clear all data that refers to a person in this class
Add an exemplary to item list
Return a specific item number from items list
Return an array of objects with all item (exemplary) informatin.
Clear the exemplary list
Adiciona uma tag no registro
Adiciona uma campo de controle no registro
Ex: 001 003 008
Obt\u00e9m um campo do registro
Exclui um campo do registro
Obt\u00e9m as tags do objeto
Seta delimitador de registro
Seta delimitador de campo
Seta delimitador de subcampo
Ajusta o c\u00f3digo leader do registro ISO 2709