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
public static function getAnswersByDateAndOperator(\MongoDate $dataStart, \MongoDate $dataEnd, \MongoId $operatorId) { | |
$db = \Fuel\Core\Mongo_Db::instance(); | |
return $db->where(array('ticket_answers.user_id' => $operatorId)) | |
->where_gte('ticket_answers.date', $dataStart) | |
->where_lte('ticket_answers.date', $dataEnd) | |
->get(\Model\Ticket::$_table_name); | |
} |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile Hotel Urbano! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
#pacote do hotelurbano (ubuntu LAMP 12.04) | |
config.vm.box = "hotelurbano_centos" |
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
server { | |
listen 80; | |
server_name dev.mercosultextil.com.br; | |
access_log /var/log/nginx/loja-dev-mercosultextil-access.log main; | |
error_log /var/log/nginx/loja-dev-mercosultextil-error.log error; | |
client_max_body_size 16M; |
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
array (size=24) | |
'itxQuantidadeCompra' => string '1' (length=1) | |
'ihdValorPromocional' => string '785.00' (length=6) | |
'ihdOpcaoOferta' => string '1387990' (length=7) | |
'ihdOpcaoOfertaPrincipal' => string '1' (length=1) | |
'ihdTaxa' => string '180' (length=3) | |
'ihdUrlObterCupom' => string 'http://hu.fb-fin-dev/ajax/obter-cupom' (length=37) | |
'ihdUrlValidaCupom' => string 'http://hu.fb-fin-dev/comprar/cupom?oft=64722&op=1387990' (length=55) | |
'ihdDescontoValor' => string '0' (length=1) | |
'ihdDescontoTipo' => string '' (length=0) |
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
{ | |
"ref": "123456", | |
"simulation": true, | |
"payments": [ | |
{ | |
"mode": "boleto", | |
"value": 1000, | |
"ref": { | |
"customerName": "Usuario de Teste", | |
"expirationDate": "01/01/2014", |
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
at org.mule.execution.ValidateTransactionalStateInterceptor.execute(ValidateTransactionalStateInterceptor.java:40) | |
at org.mule.execution.IsolateCurrentTransactionInterceptor.execute(IsolateCurrentTransactionInterceptor.java:41) | |
at org.mule.execution.ExternalTransactionInterceptor.execute(ExternalTransactionInterceptor.java:48) | |
at org.mule.execution.RethrowExceptionInterceptor.execute(RethrowExceptionInterceptor.java:28) | |
at org.mule.execution.RethrowExceptionInterceptor.execute(RethrowExceptionInterceptor.java:13) | |
at org.mule.execution.TransactionalErrorHandlingExecutionTemplate.execute(TransactionalErrorHandlingExecutionTemplate.java:109) | |
at org.mule.execution.FlowProcessingPhase$1.run(FlowProcessingPhase.java:62) | |
at org.mule.transport.TrackingWorkManager$TrackeableWork.run(TrackingWorkManager.java:267) | |
at org.mule.work.WorkerContext.run(WorkerContext.java:286) | |
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) |
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
at org.mule.execution.ValidateTransactionalStateInterceptor.execute(ValidateTransactionalStateInterceptor.java:40) | |
at org.mule.execution.IsolateCurrentTransactionInterceptor.execute(IsolateCurrentTransactionInterceptor.java:41) | |
at org.mule.execution.ExternalTransactionInterceptor.execute(ExternalTransactionInterceptor.java:48) | |
at org.mule.execution.RethrowExceptionInterceptor.execute(RethrowExceptionInterceptor.java:28) | |
at org.mule.execution.RethrowExceptionInterceptor.execute(RethrowExceptionInterceptor.java:13) | |
at org.mule.execution.TransactionalErrorHandlingExecutionTemplate.execute(TransactionalErrorHandlingExecutionTemplate.java:109) | |
at org.mule.execution.FlowProcessingPhase$1.run(FlowProcessingPhase.java:62) | |
at org.mule.transport.TrackingWorkManager$TrackeableWork.run(TrackingWorkManager.java:267) | |
at org.mule.work.WorkerContext.run(WorkerContext.java:286) | |
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) |
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
if(isset($this->gatewayInfos['BoletoUrl'])) { //exist Boleto URL? | |
$returnArray = array('redirect' => URI::build_url(array('comprar', 'retorno'), array('boleto' => $this->gatewayInfos['BoletoUrl']), false, 'secure')) | |
} elseif(isset($this->gatewayInfos['PaypalUrl'])) { //Exist Paypal URL? | |
$returnArray = array('redirect' => URI::build_url(array('comprar', 'retorno'), array('paypal' => $this->gatewayInfos['PaypalUrl']), false, 'secure')) | |
} else { // redirect norm|l | |
$returnArray = array('redirect' => URI::build_url(array('comprar', 'retorno'))) | |
} |
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
log4j: Trying to find [log4j.xml] using context classloader sun.misc.Launcher$AppClassLoader@2e893a4a. | |
log4j: Trying to find [log4j.xml] using sun.misc.Launcher$AppClassLoader@2e893a4a class loader. | |
log4j: Trying to find [log4j.xml] using ClassLoader.getSystemResource(). | |
log4j: Trying to find [log4j.properties] using context classloader sun.misc.Launcher$AppClassLoader@2e893a4a. | |
log4j: Using URL [jar:file:/home/joaovagner/Desktop/AnypointStudio/plugins/org.mule.tooling.server.3.5.2.ee_4.1.0.201410311747/mule/tooling/tooling-support-3.5.2.jar!/log4j.properties] for automatic log4j configuration. | |
log4j: Reading configuration from URL jar:file:/home/joaovagner/Desktop/AnypointStudio/plugins/org.mule.tooling.server.3.5.2.ee_4.1.0.201410311747/mule/tooling/tooling-support-3.5.2.jar!/log4j.properties | |
log4j: Parsing for [root] with value=[INFO, console]. | |
log4j: Level token is [INFO]. | |
log4j: Category root set to INFO | |
log4j: Parsing appender named "console". |
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
class CustomUser(DjangoDocument): | |
__collection__ = 'custom_users' | |
__database__ = 'criatrip' | |
structure = { | |
'first_name': unicode, | |
'last_name': unicode, | |
'email': unicode, | |
'profile': { | |
'date_birth': datetime.datetime, |