code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231
values | license stringclasses 13
values | size int64 1 2.01M |
|---|---|---|---|---|---|
<?php
/**
* Smarty Internal Plugin Compile Break
*
* Compiles the {break} tag
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile Break Class
*/
class Smarty_Internal_Compile_Break extends Smarty_Internal_CompileBase {
// attribute definiti... | 0a1b2c3d4e5 | trunk/leilao/include/php/smarty/sysplugins/smarty_internal_compile_break.php | PHP | asf20 | 2,137 |
<?php
/**
* Smarty Internal Plugin Compile Object Block Function
*
* Compiles code for registered objects as block function
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile Object Block Function Class
*/
class Smarty_Internal_Compile_Private_Object_Bloc... | 0a1b2c3d4e5 | trunk/leilao/include/php/smarty/sysplugins/smarty_internal_compile_private_object_block_function.php | PHP | asf20 | 3,562 |
<?php
/**
* Smarty Internal Plugin Register
*
* External Smarty methods register/unregister
*
* @package Smarty
* @author Uwe Tews
*/
/**
* Class for register/unregister methods
*/
class Smarty_Internal_Register {
function __construct($smarty)
{
$this->smarty = $smarty;
}
/**
... | 0a1b2c3d4e5 | trunk/leilao/include/php/smarty/sysplugins/smarty_internal_register.php | PHP | asf20 | 5,140 |
<?php
/**
* Smarty Internal Plugin Compile Function_Call
*
* Compiles the calls of user defined tags defined by {function}
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile Function_Call Class
*/
class Smarty_Internal_Compile_Call extends Smarty_Interna... | 0a1b2c3d4e5 | trunk/leilao/include/php/smarty/sysplugins/smarty_internal_compile_call.php | PHP | asf20 | 4,213 |
<?php
/**
* Smarty Internal Plugin Compile Assign
*
* Compiles the {assign} tag
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile Assign Class
*/
class Smarty_Internal_Compile_Assign extends Smarty_Internal_CompileBase {
/**
* Compiles code for... | 0a1b2c3d4e5 | trunk/leilao/include/php/smarty/sysplugins/smarty_internal_compile_assign.php | PHP | asf20 | 2,424 |
<?php
/**
* Smarty Internal Plugin Compile While
*
* Compiles the {while} tag
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile While Class
*/
class Smarty_Internal_Compile_While extends Smarty_Internal_CompileBase {
/**
* Compiles code for the {while} tag... | 0a1b2c3d4e5 | trunk/leilao/include/php/smarty/sysplugins/smarty_internal_compile_while.php | PHP | asf20 | 3,402 |
<?php
/**
* Smarty Internal Plugin Compile extend
*
* Compiles the {extends} tag
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile extend Class
*/
class Smarty_Internal_Compile_Extends extends Smarty_Internal_CompileBase {
// attribute definitions
... | 0a1b2c3d4e5 | trunk/leilao/include/php/smarty/sysplugins/smarty_internal_compile_extends.php | PHP | asf20 | 4,005 |
<?php
/**
* Smarty Internal Plugin Templatelexer
*
* This is the lexer to break the template source into tokens
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Templatelexer
*/
class Smarty_Internal_Templatelexer
{
public $data;
public $counter;
public $token;
... | 0a1b2c3d4e5 | trunk/leilao/include/php/smarty/sysplugins/smarty_internal_templatelexer.php | PHP | asf20 | 36,196 |
<?php
/**
* Project: Smarty: the PHP compiling template engine
* File: smarty_internal_wrapper.php
* SVN: $Id: $
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundati... | 0a1b2c3d4e5 | trunk/leilao/include/php/smarty/sysplugins/smarty_internal_wrapper.php | PHP | asf20 | 5,254 |
<?php
/**
* Smarty Internal Plugin Config
*
* Main class for config variables
*
* @ignore
* @package Smarty
* @subpackage Config
* @author Uwe Tews
*/
class Smarty_Internal_Config {
static $config_objects = array();
public function __construct($config_resource, $smarty, $data = null)
{
... | 0a1b2c3d4e5 | trunk/leilao/include/php/smarty/sysplugins/smarty_internal_config.php | PHP | asf20 | 10,510 |
<?php
/**
* Smarty Internal Plugin Compile Append
*
* Compiles the {append} tag
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile Append Class
*/
class Smarty_Internal_Compile_Append extends Smarty_Internal_Compile_Assign {
// attribute definitions
... | 0a1b2c3d4e5 | trunk/leilao/include/php/smarty/sysplugins/smarty_internal_compile_append.php | PHP | asf20 | 1,466 |
<?php
/**
* Smarty Internal Plugin Nocache Insert
*
* Compiles the {insert} tag into the cache file
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile Insert Class
*/
class Smarty_Internal_Nocache_Insert {
/**
* Compiles code fo... | 0a1b2c3d4e5 | trunk/leilao/include/php/smarty/sysplugins/smarty_internal_nocache_insert.php | PHP | asf20 | 1,627 |
<?php
class Conexao {
private static $conexao = null;
public static function getConexao() {
if (Conexao::$conexao == null)
Conexao::$conexao = new PDO(Constantes::$DRIVER_DB, Constantes::$USER_DB, Constantes::$PASS_DB);
return Conexao::$conexao;
}
}
?> | 0a1b2c3d4e5 | trunk/leilao/include/php/Conexao.class.php | PHP | asf20 | 309 |
<?php
/**
EasyPhpThumbnail class version 2.0.1 - PHP4
On-the-fly image manipulation and thumbnail generation
Copyright (c) 2008-2009 JF Nutbroek <jfnutbroek@gmail.com>
Visit http://www.mywebmymail.com for more information
Permission to use, copy, modify, and/or distribute this software for any
purpose w... | 0a1b2c3d4e5 | trunk/leilao/include/php/easyphpthumbnail.class.php | PHP | asf20 | 64,606 |
<?php
class Util {
/**
* FUNCAO PARA AJUSTAR VALOR DE 10.000,00 PARA 10000.00
**/
static function stringToFloat($valor) {
if(!strpos($valor,",") && !strpos($valor,"."))
return $valor;
$valor = str_replace(".", "", $valor);
$valor = str_replace(",", ".", $val... | 0a1b2c3d4e5 | trunk/leilao/include/php/Util.class.php | PHP | asf20 | 12,497 |
<?php
header('Content-type: text/html; charset=utf-8');
include_once '../../autoload.php';
include_once 'Conexao.class.php';
include_once 'Constantes.class.php';
include_once 'Util.class.php';
$conexao = Conexao::getConexao();
try {
$conexao->beginTransaction();
... | 0a1b2c3d4e5 | trunk/leilao/include/php/monta_cenario.php | PHP | asf20 | 7,379 |
<?php
class Constantes{
static $DRIVER_DB = 'mysql:host=mysql08.cgsus.saude.ws;port=3306;dbname=cgsus7';
static $USER_DB = 'cgsus7';
static $PASS_DB = 'bloum11*';
static $TAM_PAGINA = 1;
static $ASCENDENTE = "ASC";
static $DESCEND... | 0a1b2c3d4e5 | trunk/leilao/include/php/Constantes.class.php | PHP | asf20 | 4,411 |
<?php
class Seguranca{
static function senhaRandomica($qtd_char){
//lista de caracteres, (coloque aqui os caracteres a sua escolha)
$caracteres = "A,B,C,d,e,f,G,H,I,j,l,m,n,X,Z... | 0a1b2c3d4e5 | trunk/leilao/include/php/Seguranca.class.php | PHP | asf20 | 2,219 |
<?php
/**
* Description of MaxValueValidator:
*
* Valida o valor maximo para o valor passado, ex:
*
* \@MaxValueValidator (max = 10)<br/>
* private $atributo;
*
* @author Magno
*/
class MaxValueValidator extends BaseValidator{
public $max;
public function validate($value) {
... | 0a1b2c3d4e5 | trunk/leilao/include/php/validator/MaxValueValidator.class.php | PHP | asf20 | 690 |
<?php
/**
* Description of MinLengthValidator:
*
* Valida um valor minimo para a String passada, ex:
*
* \@MinLengthValidator (min = 10)<br/>
* private $atributo;
*
* @author Magno
*/
class MinLengthValidator extends BaseValidator{
public $min;
public function validate($value) {
... | 0a1b2c3d4e5 | trunk/leilao/include/php/validator/MinLengthValidator.class.php | PHP | asf20 | 685 |
<?php
/**
* Description of LengthValidator:
*
* Valida um valor de tamanho para uma String ou Array passado,
* pode ser tanto um valor minimo, maximo, quanto um
* valor exato, ex:
*
* \@LengthValidator (min = 10, max = 20, assert = 15)<br/>
* private $atributo;
*
* @author Magno
*/
class LengthValidator ... | 0a1b2c3d4e5 | trunk/leilao/include/php/validator/LengthValidator.class.php | PHP | asf20 | 2,097 |
<?php
/**
* Description of ValidatorException
*
* Classe que representa a exceção lançada pelos validadores
*
* @author Magno
*/
class ValidatorException extends Exception{
public function __construct($message) {
parent::__construct($message);
}
}
?>
| 0a1b2c3d4e5 | trunk/leilao/include/php/validator/ValidatorException.class.php | PHP | asf20 | 284 |
<?php
/**
* Description of MinValueValidator:
*
* Valida o valor minimo para o valor passado, ex:
*
* \@MinValueValidator (min = 10)<br/>
* private $atributo;
*
* @author Magno
*/
class MinValueValidator extends BaseValidator{
public $min;
public function validate($value) {
... | 0a1b2c3d4e5 | trunk/leilao/include/php/validator/MinValueValidator.class.php | PHP | asf20 | 647 |
<?php
require_once(dirname(__FILE__).'/ValidatorException.class.php');
/**
* Description of Validator
*
* Classe que Mãe dos Validadores que obriga as descendentes a implementarem
* o metodo validate para a validação correspondente
*
* @author Magno
*/
abstract class BaseValidator extends Annotation{
publ... | 0a1b2c3d4e5 | trunk/leilao/include/php/validator/BaseValidator.class.php | PHP | asf20 | 368 |
<?php
/**
* Description of AssertLengthValidator:
*
* Valida um intervalo de tamanho de valores de uma String, ex:
*
* \@AssertLengthValidator (min = 2, max = 10)<br/>
* private $atributo;
*
* OBS: caso o vaor minimo não for estabelecido, irá receber 0 (zero)
*
* @author Magno
*/
class AssertLengthValid... | 0a1b2c3d4e5 | trunk/leilao/include/php/validator/AssertLengthValidator.class.php | PHP | asf20 | 1,071 |
<?php
/**
* Description of PatternValidator:
*
* Valida um padrão com formato correto (expressão de linguagem), ex:
*
* \@PatternValidator<br/>
* private $atributo;
*
* @author Magno
*/
class PatternValidator extends BaseValidator{
public $pattern;
public function validate($value) {
... | 0a1b2c3d4e5 | trunk/leilao/include/php/validator/PatternValidator.class.php | PHP | asf20 | 682 |
<?php
/**
* Description of EmailValidator:
*
* Valida um email com formato correto (mail@mail.com), ex:
*
* \@EmailValidator<br/>
* private $atributo;
*
* @author Magno
*/
class EmailValidator extends BaseValidator{
public function validate($value) {
$value = trim($value);
... | 0a1b2c3d4e5 | trunk/leilao/include/php/validator/EmailValidator.class.php | PHP | asf20 | 594 |
<?php
/**
* Description of MaskValidator:
*
* Valida um valor correto de acordo com a mascara, ex:
*
* \@MaskValidator (mask = "99/99/9999")<br/>
* private $atributo;
*
* 9 - Numeros de 0 a 9;<br/>
* a - Letras Minusculas de "a" a "z";<br/>
* A - Letras Maiusculas de "A" a "Z";<br/>
* # - Letra ou Número... | 0a1b2c3d4e5 | trunk/leilao/include/php/validator/MaskValidator.class.php | PHP | asf20 | 2,376 |
<?php
/**
* Description of NotEmptyValidator:
*
* Valida uma String que não pode ser em branco, ex:
*
* \@NotEmptyValidator<br/>
* private $atributo;
*
* @author Magno
*/
class NotEmptyValidator extends BaseValidator{
public function validate($value) {
$op = "";
i... | 0a1b2c3d4e5 | trunk/leilao/include/php/validator/NotEmptyValidator.class.php | PHP | asf20 | 710 |
<?php
/**
* Description of ValueValidator:
*
* Valida um valor para o Numero passado,
* pode ser tanto um valor minimo, maximo, quanto um
* valor exato, ex:
*
* \@ValueValidator (min = 10, max = 20, assert = 15)<br/>
* private $atributo;
*
* @author Magno
*/
class ValueValidator extends BaseValidator{
... | 0a1b2c3d4e5 | trunk/leilao/include/php/validator/ValueValidator.class.php | PHP | asf20 | 1,826 |
<?php
/**
* Description of MaxLengthValidator:
*
* Valida um valor maximo para a String passada, ex:
*
* \@MaxLengthValidator (max = 10)<br/>
* private $atributo;
*
* @author Magno
*/
class MaxLengthValidator extends BaseValidator{
public $max;
public function validate($value) {
... | 0a1b2c3d4e5 | trunk/leilao/include/php/validator/MaxLengthValidator.class.php | PHP | asf20 | 685 |
<?php
/**
* Description of NotNullValidator:
*
* Valida um valor que não pode ser nulo, ex:
*
* \@NotNullValidator<br/>
* private $atributo;
*
* @author Magno
*/
class NotNullValidator extends BaseValidator{
public function validate($value) {
if($value == null)
throw new Valida... | 0a1b2c3d4e5 | trunk/leilao/include/php/validator/NotNullValidator.class.php | PHP | asf20 | 387 |
/*
Variable Grid System (Fluid Version).
Learn more ~ http://www.spry-soft.com/grids/
Based on 960 Grid System - http://960.gs/ & 960 Fluid - http://www.designinfluences.com/
Licensed under GPL and MIT.
*/
/* Containers
-----------------------------------------------------------------------------------... | 0a1b2c3d4e5 | trunk/leilao/include/css/960.gs.fluid.css | CSS | asf20 | 4,483 |
/**
* Styles for tables and grid view
*/
.table, .with-head {
margin-bottom: 1.667em;
border: 1px solid #999999;
}
.table {
border-collapse: separate;
}
.table:last-child,
.with-head:last-child {
margin-bottom: 0;
}
/* IE class */
.table.last-child,
.with-head.last-child {
margin-... | 0a1b2c3d4e5 | trunk/leilao/include/css/table.css | CSS | asf20 | 8,175 |
/**
* Styles for the mobile template
*/
body {
font-family: HelveticaNeue, Verdana, Arial, Helvetica, sans-serif;
background: url(../images/bg-mobile.png) no-repeat center top;
-webkit-text-size-adjust: none;
}
textarea, input {
font-family: HelveticaNeue, Verdana, Arial, Helvetica, sans-serif;
}
/... | 0a1b2c3d4e5 | trunk/leilao/include/css/mobile.css | CSS | asf20 | 13,749 |
/**
* Gallery styles
*/
.gallery.with-padding {
padding: 2em 1em;
}
.gallery li {
width: 9em;
height: 6em;
line-height: 6em;
float: left;
text-align: center;
vertical-align: middle;
color: #999999;
}
.gallery li img {
border: 1px solid white;
background: #efefef;
back... | 0a1b2c3d4e5 | trunk/leilao/include/css/gallery.css | CSS | asf20 | 3,425 |
/**
* Styles for the calendars
*/
.mini-calendar,
.medium-calendar {
padding-top: 1em;
position: relative;
z-index: 89;
text-align: center;
}
.mini-calendar {
float: left;
}
.next-to-mini-calendar {
margin-left: 14em;
}
.mini-calendar.float-right {
float: right;
}
.mini-calendar... | 0a1b2c3d4e5 | trunk/leilao/include/css/calendars.css | CSS | asf20 | 47,836 |
/*
Variable Grid System.
Learn more ~ http://www.spry-soft.com/grids/
Based on 960 Grid System - http://960.gs/
Licensed under GPL and MIT.
*/
/* Containers
----------------------------------------------------------------------------------------------------*/
.container_12 {
margin-left: auto;
mar... | 0a1b2c3d4e5 | trunk/leilao/include/css/960.gs.css | CSS | asf20 | 4,334 |
/**
* Simple lists styles
*/
/****************** Basic list ******************/
.bullet-list li {
padding-top: 0.083em;
margin-bottom: 0.75em;
background: url(../images/icons/fugue/control-000-small.png) no-repeat 0 0.167em;
padding-left: 1.5em;
line-height: 1.25em;
}
/**************** Keywords li... | 0a1b2c3d4e5 | trunk/leilao/include/css/simple-lists.css | CSS | asf20 | 24,150 |
/* Custom styles for the special pages */
html {
height: 100%;
}
.login-bg,
.wizard-bg {
background: url(../images/bg.png) no-repeat center -200px;
min-height: 100%;
}
.error-bg,
.code-page {
background: url(../images/old-browsers-bg/login-radial-bg.png) no-repeat center center;
-webkit-background-si... | 0a1b2c3d4e5 | trunk/leilao/include/css/special-pages.css | CSS | asf20 | 5,471 |
<?php
/**
* Simple script to combine and compress CSS files, to reduce the number of file request the server has to handle.
* For more options/flexibility, see Minify : http://code.google.com/p/minify/
*/
// If no file requested
if (!isset($_GET['files']) or strlen($_GET['files']) == 0)
{
header('Status: ... | 0a1b2c3d4e5 | trunk/leilao/include/css/mini.php | PHP | asf20 | 2,043 |
/**
* Block lists styles
*/
/****************** Favorites *******************/
.favorites > li {
border-top: 1px dotted #999999;
padding: 0 0 0 75px;
position: relative;
}
body.dark .favorites > li {
border-top-color: #bbb;
}
body.dark .white-bg .favorites > li,
body.dark .block-content .favo... | 0a1b2c3d4e5 | trunk/leilao/include/css/block-lists.css | CSS | asf20 | 20,092 |
/**
* Styles for the planning block
*/
.planning {
margin-bottom: 1.667em;
border: 1px solid #999999;
}
.planning:last-child {
margin-bottom: 0;
}
/* IE class */
.planning.last-child {
margin-bottom: 0;
}
.planning.no-margin,
.content-columns .planning {
border: none;
}
.content... | 0a1b2c3d4e5 | trunk/leilao/include/css/planning.css | CSS | asf20 | 14,678 |
/**
* Styles for the standard template
*/
html {
min-height: 100%;
overflow-x: hidden;
}
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
background: url(../images/bg.png) no-repeat center top;
min-height: 100%;
}
textarea, input {
font-family: Verdana, Arial, Helvetica, sans-serif;
}
... | 0a1b2c3d4e5 | trunk/leilao/include/css/standard.css | CSS | asf20 | 56,622 |
/*
* Global reset
* Based on Eric Meyer's : http://meyerweb.com/eric/thoughts/2008/01/15/resetting-again/
*/
a, abbr, acronym, address, applet, article, aside, audio,
b, big, blockquote, body,
canvas, caption, center, cite, code, command,
datalist, dd, del, details, dfn, div, dl, dt,
em, embed,
fieldset, ... | 0a1b2c3d4e5 | trunk/leilao/include/css/reset.css | CSS | asf20 | 1,467 |
/**
* Common styles for all variants (standard or mobile)
* z-index hierachy :
* 88, 89 or 90 : Positioned elements at normal level
* 98 or 99 : Positioned for menu
* 100 : footer
* 999900 : tooltip
* 999910 : menu
* 999950 : fixed control bar
* 999980 : modal windows
* 999990 : notifications
*/
... | 0a1b2c3d4e5 | trunk/leilao/include/css/common.css | CSS | asf20 | 61,487 |
/**
* Wizard styles
*/
.wizard-steps {
height: 6em;
line-height: 5.5em;
border: 1px solid #b5b3b4;
border-width: 1px 0;
border-top: 1px solid #9bd2ee;
background: #0c5fa3 url(../images/old-browsers-bg/block-header-bg.png) repeat-x top;
-webkit-background-size: 100% 100%;
-moz-background-size: 100... | 0a1b2c3d4e5 | trunk/leilao/include/css/wizard.css | CSS | asf20 | 4,539 |
/************** Forms & pseudo-form **************/
.form fieldset,
.fieldset {
border: 1px solid #d9d9d9;
padding: 1em 1.667em 1.667em 1.667em;
-moz-border-radius: 0.25em;
-webkit-border-radius: 0.25em;
-webkit-background-clip: padding-box;
border-radius: 0.25em;
margin-bottom: 1.667em;
}
/* IE cla... | 0a1b2c3d4e5 | trunk/leilao/include/css/form.css | CSS | asf20 | 13,582 |
<?php
include_once 'include/php/addendum/annotations.php';
/**
* Description of ValidatorAction
*
* Classe que faz a validação de acordo com as annotations nos beans
*
* @author Magno
*/
class ValidatorAction {
private $class;
private $erros;
function __construct($class) {
$this->... | 0a1b2c3d4e5 | trunk/leilao/action/ValidatorAction.class.php | PHP | asf20 | 1,856 |
<?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of bonus
*
* @author Eucassio Gonçalves - eucassiojr@gmail.com
*/
class BonusAction extends ActionDefault {
private $bonusService;
public static $VIEW_BONUS = "view/bonus/";
... | 0a1b2c3d4e5 | trunk/leilao/action/BonusAction.class.php | PHP | asf20 | 1,330 |
<?php
/**
* Description of ConviteAction
*
* @author Magno
*/
class ConviteAction extends ActionDefault {
private $conviteService;
private $statusService;
public static $VIEW_CONVITE = "view/convite/";
function ConviteAction() {
parent::__construct();
$this->conviteService = new C... | 0a1b2c3d4e5 | trunk/leilao/action/ConviteAction.class.php | PHP | asf20 | 4,892 |
<?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of resposta
*
* @author Daniel Medeiros - ichigo_dan@hotmail.com
*/
class RespostaAction extends ActionDefault {
private $respostaService;
private $enqueteService;
public stati... | 0a1b2c3d4e5 | trunk/leilao/action/RespostaAction.class.php | PHP | asf20 | 5,616 |
<?php
/**
* Description of ClienteAction
*
* @author Magno
*/
class ClienteAction extends ActionDefault{
private $clienteService;
private $estadoService;
private $cidadeService;
private $statusService;
private $mediaService;
public static $VIEW_CLIENTE = "view/cliente/";
funct... | 0a1b2c3d4e5 | trunk/leilao/action/ClienteAction.class.php | PHP | asf20 | 7,437 |
<?php
/**
* Description of UsuarioAction
*
* @author Magno
*/
class UsuarioAction extends BaseAction{
private $usuarioService;
function __construct() {
parent::__construct();
$this->usuarioService = new UsuarioService();
}
public function validaLogin(){
$usuarioID = paren... | 0a1b2c3d4e5 | trunk/leilao/action/UsuarioAction.class.php | PHP | asf20 | 1,819 |
<?php
/**
* Classe abstrata para padronizar as Actions com CRUD
* @author Magno
*/
abstract class ActionDefault extends BaseAction{
public abstract function cadastro();
public abstract function salvar($bean);
public abstract function editar($beanID);
public abstract function listar();
public abs... | 0a1b2c3d4e5 | trunk/leilao/action/ActionDefault.class.php | PHP | asf20 | 485 |
<?php
/**
* Classe Base para A Autorização nas Actions
*
* @author Magno
*/
class AuthorizationBaseAction {
private $autorizacao;
private static $LIVRE = "L";
function __construct() {
$this->autorizacao = array();
}
/**
* Retorna o array montado com as autorizações
* @r... | 0a1b2c3d4e5 | trunk/leilao/action/AuthorizationBaseAction.class.php | PHP | asf20 | 2,713 |
<?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of IndexAction
*
* @author Magno
*/
class IndexAction extends BaseAction {
private static $VIEW = "view/";
function __construct() {
parent::__construct();
}
pu... | 0a1b2c3d4e5 | trunk/leilao/action/IndexAction.class.php | PHP | asf20 | 449 |
<?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of enquete
*
* @author Daniel Medeiros - ichigo_dan@hotmail.com
*/
class EnqueteAction extends ActionDefault {
private $enqueteService;
private $statusService;
public static $V... | 0a1b2c3d4e5 | trunk/leilao/action/EnqueteAction.class.php | PHP | asf20 | 4,796 |
<?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of LoginAction
*
* @author Magno
*/
class LoginAction extends BaseAction{
function __construct() {
parent::__construct();
}
public function login(){
$ok ... | 0a1b2c3d4e5 | trunk/leilao/action/LoginAction.class.php | PHP | asf20 | 1,811 |
<?php
/**
* Description of CidadeAction
*
* @author Magno
*/
class CidadeAction extends BaseAction{
private $cidadeService;
public static $VIEW_CIDADE = "view/cidade/";
function __construct() {
parent::__construct();
$this->cidadeService = new CidadeService();
}
public functi... | 0a1b2c3d4e5 | trunk/leilao/action/CidadeAction.class.php | PHP | asf20 | 1,066 |
<?php
/**
* Description of SystemAction
*
* Classe Principal das Actions :
*
* Quebra a url, montando a classe action passada e seu metodo
* e depois o executa
* Tambem separa a string com os parametros
*
* @author Magno
*/
class SystemAction {
private $url;
private $actionClass;
private $action... | 0a1b2c3d4e5 | trunk/leilao/action/SystemAction.class.php | PHP | asf20 | 6,370 |
<?php
/**
* Description of AdminAction
*
* @author Magno
*/
class AdminAction extends ActionDefault{
private $adminService;
private $statusService;
private $mediaService;
public static $VIEW_ADMIN = "view/admin/";
function __construct() {
parent::__construct();
$this->setValue... | 0a1b2c3d4e5 | trunk/leilao/action/AdminAction.class.php | PHP | asf20 | 4,881 |
<?php
/**
* Classe que implementa a autorização nas actions
*
* @author Magno
*/
class AuthorizationAction extends AuthorizationBaseAction {
function __construct() {
parent::__construct();
$this->config();
}
/**
* Aki deve ficar as configurações de autorização
*/
public ... | 0a1b2c3d4e5 | trunk/leilao/action/AuthorizationAction.class.php | PHP | asf20 | 1,694 |
<?php
#define('SMARTY_SPL_AUTOLOAD',1);
require dirname(__FILE__).'/../include/php/smarty/Smarty.class.php';
/**
* Description of BaseAction
*
* Classe Base para as outras Actions que fore existir
*
* @author Magno
*/
class BaseAction {
private $input;
private $output;
private... | 0a1b2c3d4e5 | trunk/leilao/action/BaseAction.class.php | PHP | asf20 | 10,190 |
<?php
/**
* Description of PacoteLanceAction
*
* @author Ricardo Krieg
*/
class PacoteLanceAction extends ActionDefault{
private $pacoteLanceService;
public static $VIEW_PACOTE_LANCE = "view/pacoteLance/";
function __construct() {
parent::__construct();
$this->setValueOutput("pacoteLa... | 0a1b2c3d4e5 | trunk/leilao/action/PacoteLanceAction.class.php | PHP | asf20 | 3,932 |
<?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of MensagemMeta
*
* @author Magno
*/
class MensagemMeta {
private $tipo;
private $conteudo;
function __construct($tipo = "", $conteudo = "") {
$this->tipo = $tipo;
... | 0a1b2c3d4e5 | trunk/leilao/meta/MensagemMeta.class.php | PHP | asf20 | 674 |
<?php
/**
* Description of ErroMeta
*
* @author Magno
*/
class ErroMeta {
private $classe;
private $atributo;
private $mensagem;
function __construct($classe = "", $atributo = "", $mensagem = "") {
$this->classe = $classe;
$this->atributo = $atributo;
$this->mensage... | 0a1b2c3d4e5 | trunk/leilao/meta/ErroMeta.class.php | PHP | asf20 | 1,322 |
<?php
header('Content-type: text/html; charset=utf-8');
include_once 'autoload.php';
include_once 'include/php/Conexao.class.php';
include_once 'include/php/Constantes.class.php';
include_once 'include/php/Util.class.php';
include_once 'include/php/Seguranca.class.php';
$action = new SystemAction();... | 0a1b2c3d4e5 | trunk/leilao/index.php | PHP | asf20 | 348 |
<?php
/**
* Description of MenuViewGenerator
*
* @author Magno
*/
class MenuViewGenerator {
private $tablesMeta;
private $templateMenu;
private $params;
function __construct($tablesMeta, $params) {
$this->tablesMeta = $tablesMeta;
$this->params = $params;
i... | 0a1b2c3d4e5 | trunk/BloumGenerator/generator/MenuViewGenerator.class.php | PHP | asf20 | 1,840 |
<?php
/**
* Description of ActionGenerator
*
* @author BloumGenerator
*/
class ActionGenerator {
private $tableMeta;
private $parentTbMeta;
private $templateAction;
private $attPK;
private $params;
function __construct($tableMeta, $params) {
$this->tableMeta = $tableMeta;
... | 0a1b2c3d4e5 | trunk/BloumGenerator/generator/ActionGenerator.class.php | PHP | asf20 | 8,347 |
<?php
/**
* Description of ViewGenerator
*
* @author BloumGenerator
*/
abstract class ViewGenerator {
protected $tableMeta;
protected $viewParams;
protected $parentTbMeta;
protected $templateView;
protected $attPK;
function __construct($tableMeta, $viewParams, $templateView) {
... | 0a1b2c3d4e5 | trunk/BloumGenerator/generator/ViewGenerator.class.php | PHP | asf20 | 3,109 |
<?php
/**
* Description of CadastroViewGenerator
*
* @author Magno
*/
class CadastroViewGenerator extends ViewGenerator{
public function __construct($tableMeta, $viewParams) {
parent::__construct($tableMeta, $viewParams, Constantes::$TEMPLATES_VIEW_DIR."cadastro.bloum");
}
public function gene... | 0a1b2c3d4e5 | trunk/BloumGenerator/generator/CadastroViewGenerator.class.php | PHP | asf20 | 5,643 |
<?php
/**
* Description of DetalhesViewGenerator
*
* @author Magno
*/
class DetalhesViewGenerator extends ViewGenerator{
public function __construct($tableMeta, $viewParams) {
parent::__construct($tableMeta, $viewParams, Constantes::$TEMPLATES_VIEW_DIR."detalhes.bloum");
}
public function gene... | 0a1b2c3d4e5 | trunk/BloumGenerator/generator/DetalhesViewGenerator.class.php | PHP | asf20 | 3,987 |
<?php
/**
* Description of DetalhesIncludeViewGenerator
*
* @author Magno
*/
class DetalhesIncludeViewGenerator extends ViewGenerator{
public function __construct($tableMeta, $viewParams) {
parent::__construct($tableMeta, $viewParams, Constantes::$TEMPLATES_VIEW_DIR."detalhesInclude.bloum");
}
... | 0a1b2c3d4e5 | trunk/BloumGenerator/generator/DetalhesIncludeViewGenerator.class.php | PHP | asf20 | 4,001 |
<?php
/**
* Description of DAOGenerator
*
* @author BloumGenerator
*/
class DAOGenerator {
private $tableMeta;
private $parentTbMeta;
private $templateDAO;
private $attPK;
private $params;
function __construct($tableMeta, $params) {
$this->tableMeta = $tableMeta;
$this-... | 0a1b2c3d4e5 | trunk/BloumGenerator/generator/DAOGenerator.class.php | PHP | asf20 | 16,828 |
<?php
/**
* Description of FormBuscaViewGenerator
*
* @author Magno
*/
class FormBuscaViewGenerator extends ViewGenerator{
private $attBuscaForm;
public function __construct($tableMeta, $viewParams) {
$this->attBuscaForm = "";
parent::__construct($tableMeta, $viewParams, Constantes::$TEMPL... | 0a1b2c3d4e5 | trunk/BloumGenerator/generator/FormBuscaViewGenerator.class.php | PHP | asf20 | 2,956 |
<?php
/**
* Description of FormComboViewGenerator
*
* @author Magno
*/
class FormComboViewGenerator extends ViewGenerator{
public function __construct($tableMeta, $viewParams) {
parent::__construct($tableMeta, $viewParams, Constantes::$TEMPLATES_VIEW_DIR."formCombo.bloum");
}
public function g... | 0a1b2c3d4e5 | trunk/BloumGenerator/generator/FormComboViewGenerator.class.php | PHP | asf20 | 567 |
<?php
/**
* Description of BeanGenerator
*
* @author BloumGenerator
*/
class BeanGenerator {
private $tableMeta;
private $attributes;
private $templateBean;
private $params;
function __construct($tableMeta, $params) {
$this->tableMeta = $tableMeta;
$this->params = $params;
... | 0a1b2c3d4e5 | trunk/BloumGenerator/generator/BeanGenerator.class.php | PHP | asf20 | 12,030 |
<?php
/**
* Description of ListarViewGenerator
*
* @author Magno
*/
class ListarViewGenerator extends ViewGenerator{
public function __construct($tableMeta, $viewParams) {
parent::__construct($tableMeta, $viewParams, Constantes::$TEMPLATES_VIEW_DIR."listar.bloum");
}
public function generate()... | 0a1b2c3d4e5 | trunk/BloumGenerator/generator/ListarViewGenerator.class.php | PHP | asf20 | 2,902 |
<?php
/**
* Description of FormIncludeViewGenerator
*
* @author Magno
*/
class FormIncludeViewGenerator extends ViewGenerator{
public function __construct($tableMeta, $viewParams) {
parent::__construct($tableMeta, $viewParams, Constantes::$TEMPLATES_VIEW_DIR."formInclude.bloum");
}
public func... | 0a1b2c3d4e5 | trunk/BloumGenerator/generator/FormIncludeViewGenerator.class.php | PHP | asf20 | 4,042 |
<?php
/**
* Description of TabelaViewGenerator
*
* @author Magno
*/
class TabelaViewGenerator extends ViewGenerator{
public function __construct($tableMeta, $viewParams) {
parent::__construct($tableMeta, $viewParams, Constantes::$TEMPLATES_VIEW_DIR."tabela.bloum");
}
public function generate()... | 0a1b2c3d4e5 | trunk/BloumGenerator/generator/TabelaViewGenerator.class.php | PHP | asf20 | 4,011 |
<?php
/**
* Description of ServiceGenerator
*
* @author BloumGenerator
*/
class ServiceGenerator {
private $tableMeta;
private $parentTbMeta;
private $templateService;
private $attPK;
private $params;
function __construct($tableMeta, $params) {
$this->tableMeta = $tableMeta;
... | 0a1b2c3d4e5 | trunk/BloumGenerator/generator/ServiceGenerator.class.php | PHP | asf20 | 5,301 |
<!DOCTYPE html>
<html lang="en">
<head>
<title>System error</title>
<meta charset="utf-8">
<meta name="robots" content="none">
{literal}
<!-- Mobile metas -->
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<!-- Global stylesheets -->
<l... | 0a1b2c3d4e5 | trunk/BloumGenerator/view/erros/error.tpl | Smarty | asf20 | 7,243 |
{include file="steps/headStep.tpl"}
<h2 class="bigger">Pré Visualização das Actions e Views</h2>
<table class="table" cellspacing="0" width="100%">
<thead>
<tr>
<th scope="col">Tabela</th>
<th scope="col" class="table-actions">Visualizar</th>
</tr>
</thead>
... | 0a1b2c3d4e5 | trunk/BloumGenerator/view/steps/step8.tpl | Smarty | asf20 | 2,941 |
{include file="steps/headStep.tpl"}
<h2 class="bigger">Escolha o Atributo de Exibição dos ComboBox</h2>
<table class="table" cellspacing="0" width="100%">
<thead>
<tr>
<th scope="col">Tabela</th>
<th scope="col" class="table-actions">Atributos</th>
</tr>
... | 0a1b2c3d4e5 | trunk/BloumGenerator/view/steps/step6.tpl | Smarty | asf20 | 822 |
{include file="steps/headStep.tpl"}
<h2 class="bigger">Escolha As Definições das Páginas</h2>
<p>
<input type="checkbox" name="incValidate" id="incValidate" value="true" {if isset($params['incValidate']) && $params['incValidate']} checked="true"{/if} />
<label for="incValidate" class="inline">Incluir Va... | 0a1b2c3d4e5 | trunk/BloumGenerator/view/steps/step7.tpl | Smarty | asf20 | 803 |
{include file="steps/headStep.tpl"}
<h2 class="bigger">Forneça as Tabelas que Irão Ter Cadastro</h2>
<table class="table" cellspacing="0" width="100%">
<thead>
<tr>
<th scope="col">Tabela</th>
<th scope="col">Selecionar</th>
</tr>
</thead>
{fore... | 0a1b2c3d4e5 | trunk/BloumGenerator/view/steps/step4.tpl | Smarty | asf20 | 596 |
{include file="steps/headStep.tpl"}
<h2 class="bigger">Escolha os Atributos Mais Importantes</h2>
{foreach $tablesMeta as $table}
<div class="block-content">
{$tbName = $table->getName()|capitalize}
<h1>{$tbName}</h1>
<table class="table" cellspacing="0" w... | 0a1b2c3d4e5 | trunk/BloumGenerator/view/steps/step2.tpl | Smarty | asf20 | 1,136 |
<input type="hidden" id="step" name="step" value="{$step}"/>
<span class="number bigger">{$step}</span>
<small>Generator Wizard</small>
| 0a1b2c3d4e5 | trunk/BloumGenerator/view/steps/headStep.tpl | Smarty | asf20 | 141 |
{include file="layout/head.tpl"}
{literal}
<script type="text/javascript" src="include/js/funcoes.js"></script>
<script type="text/javascript">
$().ready(function() {
$('#stepForm').submit(function() {
var step = $("#step").val();
var janelaModal = abrirModalCarregando('Salvan... | 0a1b2c3d4e5 | trunk/BloumGenerator/view/steps/index.tpl | Smarty | asf20 | 2,677 |
{include file="steps/headStep.tpl"}
{literal}
<script type="text/javascript" src="include/js/funcoes.js"></script>
<script type="text/javascript">
$().ready(function() {
$("#download").click(function(){
$('#linkDownload').loadWithEffect('GeneratorAction.prepareProjectDownload', funct... | 0a1b2c3d4e5 | trunk/BloumGenerator/view/steps/lastStep.tpl | Smarty | asf20 | 754 |
{include file="steps/headStep.tpl"}
<h2 class="bigger">Escolha o Tipo de Formulário dos Relacionamentos</h2>
{foreach $tablesMeta as $table}
{if count($table->getFKReferences()) > 0}
<div class="block-content">
{$tbName = $table->getName()|capitalize}
<h1>{$tbName}</h... | 0a1b2c3d4e5 | trunk/BloumGenerator/view/steps/step5.tpl | Smarty | asf20 | 1,917 |
{include file="steps/headStep.tpl"}
<h2 class="bigger">Pré Visualização das Classes</h2>
<table class="table" cellspacing="0" width="100%">
<thead>
<tr>
<th scope="col">Tabela</th>
<th scope="col" class="table-actions">Visualizar</th>
</tr>
</thead... | 0a1b2c3d4e5 | trunk/BloumGenerator/view/steps/step3.tpl | Smarty | asf20 | 922 |
{include file="steps/headStep.tpl"}
<h2 class="bigger">Froneça as Heranças, Caso Exista</h2>
<table class="table" cellspacing="0" width="100%">
<thead>
<tr>
<th scope="col">Tabela</th>
<th scope="col">Relacionamento</th>
<th scope="col">Referencia</th>
... | 0a1b2c3d4e5 | trunk/BloumGenerator/view/steps/step1.tpl | Smarty | asf20 | 808 |
{include file="layout/head.tpl"}
{literal}
<script type="text/javascript" src="include/js/jquery.validate.min.js"></script>
<script type="text/javascript">
$().ready(function() {
$("#stepForm").validate({
rules: {
file: {
required:true,
accept: ... | 0a1b2c3d4e5 | trunk/BloumGenerator/view/index.tpl | Smarty | asf20 | 1,961 |
{if isset($numPaginas) && $numPaginas > 1}
<ul class="controls-buttons" style="text-align: center">
{$anterior = $pagina-1}
{if $anterior <= 0}
{$anterior = 1}
{/if}
<li>
<a class="with-tip" title="Anterior" href="javas... | 0a1b2c3d4e5 | trunk/BloumGenerator/view/include/paginacao.tpl | Smarty | asf20 | 1,641 |
<?php
/**
* Description of FKReferenceStringManager
*
* @author Magno
*/
class FKReferenceStringManager {
private $tableString;
private $tableMeta;
private $tablesMeta;
function __construct($tableString, $tableMeta, $tablesMeta) {
$this->tableString = $tableString;
$this->table... | 0a1b2c3d4e5 | trunk/BloumGenerator/manager/FKReferenceStringManager.class.php | PHP | asf20 | 4,497 |
<?php
/**
* Description of UploadManager
*
* @author Magno
*/
class UploadManager {
function __construct() {
}
public static function salvarArquivoSimples($nome, $destino = ""){
//NOME TEMPORÁRIO NO SERVIDOR
$arquivo_temp = @$_FILES[$nome]["tmp_name"];
//NOME DO ARQUIV... | 0a1b2c3d4e5 | trunk/BloumGenerator/manager/UploadManager.class.php | PHP | asf20 | 1,337 |
<?php
/**
* Description of AttributeStringManager
*
* @author Magno
*/
class AttributeStringManager {
private $attributeString;
private $attributes;
function __construct($attributeString) {
$this->attributeString = $attributeString;
}
public function generateAttributesString(){
... | 0a1b2c3d4e5 | trunk/BloumGenerator/manager/AttributeStringManager.class.php | PHP | asf20 | 7,277 |
<?php
/**
* Description of FileManager
*
* @author Magno
*/
class FileStringManager {
//put your code here
private $file;
private $fileString;
function __construct($file) {
$this->file = $file;
if(!file_exists($file))
throw new Exception ("File Not Foun... | 0a1b2c3d4e5 | trunk/BloumGenerator/manager/FileStringManager.class.php | PHP | asf20 | 807 |