code
stringlengths
1
2.01M
language
stringclasses
1 value
<?php /** * Smarty Internal Plugin Compile Modifier * * Compiles code for modifier execution * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Modifier Class */ class Smarty_Internal_Compile_Private_Modifier extends Smarty_Internal_CompileB...
PHP
<?php /** * Smarty Internal Plugin Compile Rdelim * * Compiles the {rdelim} tag * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Rdelim Class */ class Smarty_Internal_Compile_Rdelim extends Smarty_Internal_CompileBase { /** * Compiles code for the...
PHP
<?php /** * Smarty Internal Plugin Resource Stream * * Implements the streams as resource for Smarty template * * @package Smarty * @subpackage TemplateResources * @author Uwe Tews */ /** * Smarty Internal Plugin Resource Stream */ class Smarty_Internal_Resource_Stream { public function __construct(...
PHP
<?php /** * Smarty Internal Plugin Compile Eval * * Compiles the {eval} tag * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Eval Class */ class Smarty_Internal_Compile_Eval extends Smarty_Internal_CompileBase { public $required_attributes = array('var...
PHP
<?php /** * Smarty Internal Plugin Compile Nocache * * Compiles the {nocache} {/nocache} tags * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Nocache Class */ class Smarty_Internal_Compile_Nocache extends Smarty_Internal_CompileBase { /** * Compi...
PHP
<?php /** * Smarty Internal Plugin Template * * This file contains the Smarty template engine * * @package Smarty * @subpackage Templates * @author Uwe Tews */ /** * Main class with template data structures and methods */ class Smarty_Internal_Template extends Smarty_Internal_Data { // object cache ...
PHP
<?php /** * Smarty Internal Plugin Compile Function Plugin * * Compiles code for the execution of function plugin * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Function Plugin Class */ class Smarty_Internal_Compile_Private_Function_Plugin extends Sma...
PHP
<?php /** * Smarty Internal Plugin CacheResource File * * Implements the file system as resource for the HTML cache * Version ussing nocache inserts * * @package Smarty * @subpackage Cacher * @author Uwe Tews */ /** * This class does contain all necessary methods for the HTML cache on file system */ cla...
PHP
<?php /** * Smarty Internal Plugin Filter Handler * * Smarty filter handler class * * @package Smarty * @subpackage PluginsInternal * @author Uwe Tews */ /** * Class for filter processing */ class Smarty_Internal_Filter_Handler { /** * Run filters over content * * The filters will be ...
PHP
<?php /** * Smarty Internal Plugin Templateparser * * This is the template parser. * It is generated from the internal.templateparser.y file * @package Smarty * @subpackage Compiler * @author Uwe Tews */ class TP_yyToken implements ArrayAccess { public $string = ''; public $metadata = array(); function __...
PHP
<?php /** * Smarty Internal Plugin Compile Object Funtion * * Compiles code for registered objects as function * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Object Function Class */ class Smarty_Internal_Compile_Private_Object_Function extends Smarty...
PHP
<?php /** * Smarty Internal Plugin Resource String * * Implements the strings as resource for Smarty template * * @package Smarty * @subpackage TemplateResources * @author Uwe Tews */ /** * Smarty Internal Plugin Resource String */ class Smarty_Internal_Resource_String { public function __construct(...
PHP
<?php /** * Smarty Internal Plugin Compile Registered Function * * Compiles code for the execution of a registered function * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Registered Function Class */ class Smarty_Internal_Compile_Privat...
PHP
<?php /** * Smarty Internal Plugin Compile Print Expression * * Compiles any tag which will output an expression or variable * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Print Expression Class */ class Smarty_Internal_Compile_Private_Print_Expressio...
PHP
<?php /** * Smarty Internal Plugin Compile Section * * Compiles the {section} {sectionelse} {/section} tags * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Section Class */ class Smarty_Internal_Compile_Section extends Smarty_Internal_CompileBase { //...
PHP
<?php /** * Smarty Internal Plugin Function Call Handler * * @package Smarty * @subpackage PluginsInternal * @author Uwe Tews */ /** * This class does call function defined with the {function} tag */ class Smarty_Internal_Function_Call_Handler extends Smarty_Internal_Template { static functi...
PHP
<?php /** * Project: Smarty: the PHP compiling template engine * File: smarty_internal_utility.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...
PHP
<?php /** * Smarty Internal Plugin Configfilelexer * * This is the lexer to break the config file source into tokens * @package Smarty * @subpackage Config * @author Uwe Tews */ /** * Smarty Internal Plugin Configfilelexer */ class Smarty_Internal_Configfilelexer { public $data; public $counter; public ...
PHP
<?php /** * Smarty write file plugin * * @package Smarty * @subpackage PluginsInternal * @author Monte Ohrt */ /** * Smarty Internal Write File Class */ class Smarty_Internal_Write_File { /** * Writes file in a save way to disk * * @param string $_filepath complete filepath * @param...
PHP
<?php /** * Smarty Internal Plugin Resource Eval * * Implements the strings as resource for Smarty template * * @package Smarty * @subpackage TemplateResources * @author Uwe Tews */ /** * Smarty Internal Plugin Resource Eval */ class Smarty_Internal_Resource_Eval { public function __...
PHP
<?php /** * Smarty Internal Plugin Compile Block * * Compiles the {block}{/block} tags * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Block Class */ class Smarty_Internal_Compile_Block extends Smarty_Internal_CompileBase { // attribute definitions ...
PHP
<?php /** * Smarty Internal Plugin Config File Compiler * * This is the config file compiler class. It calls the lexer and parser to * perform the compiling. * * @package Smarty * @subpackage Config * @author Uwe Tews */ /** * Main config file compiler class */ class Smarty_Internal_Config_File_Compile...
PHP
<?php /** * Smarty Internal Plugin Compile Special Smarty Variable * * Compiles the special $smarty variables * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile special Smarty Variable Class */ class Smarty_Internal_Compile_Private_Special_Variable extend...
PHP
<?php /** * Smarty Internal Plugin Compile For * * Compiles the {for} {forelse} {/for} tags * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile For Class */ class Smarty_Internal_Compile_For extends Smarty_Internal_CompileBase { /** * Compiles cod...
PHP
<?php /** * Smarty Internal Plugin Templateparser Parsetrees * * These are classes to build parsetrees in the template parser * * @package Smarty * @subpackage Compiler * @author Thue Kristensen * @author Uwe Tews */ abstract class _smarty_parsetree { abstract public function to_smarty_php...
PHP
<?php /** * Smarty Internal Plugin Smarty Template Compiler Base * * This file contains the basic classes and methodes for compiling Smarty templates with lexer/parser * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Main compiler class */ class Smarty_Internal_Template...
PHP
<?php /** * Smarty Internal Plugin Resource Extends * * Implements the file system as resource for Smarty which does extend a chain of template files templates * * @package Smarty * @subpackage TemplateResources * @author Uwe Tews */ /** * Smarty Internal Plugin Resource Extends */ class Smarty_Internal_...
PHP
<?php /** * Smarty Internal Plugin Compile Capture * * Compiles the {capture} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Capture Class */ class Smarty_Internal_Compile_Capture extends Smarty_Internal_CompileBase { // attribute definitions ...
PHP
<?php /** * Smarty Internal Plugin Compile Ldelim * * Compiles the {ldelim} tag * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Ldelim Class */ class Smarty_Internal_Compile_Ldelim extends Smarty_Internal_CompileBase { /** * Compiles code for the...
PHP
<?php /** * Smarty Internal Plugin Compile Config Load * * Compiles the {config load} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Config Load Class */ class Smarty_Internal_Compile_Config_Load extends Smarty_Internal_CompileBase { // attribut...
PHP
<?php /** * Smarty Internal Plugin Compile Debug * * Compiles the {debug} tag * It opens a window the the Smarty Debugging Console * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Debug Class */ class Smarty_Internal_Compile_Debug extends Smarty_Internal_...
PHP
<?php /** * Smarty Internal Plugin Compile Continue * * Compiles the {continue} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Continue Class */ class Smarty_Internal_Compile_Continue extends Smarty_Internal_CompileBase { // attrib...
PHP
<?php /** * Smarty Internal Plugin Filter * * External Smarty filter methods * * @package Smarty * @author Uwe Tews */ /** * Class for filter methods */ class Smarty_Internal_Filter { function __construct($smarty) { $this->smarty = $smarty; } /** * Registers a filter functio...
PHP
<?php /** * Smarty Internal Plugin Smarty Template Compiler Base * * This file contains the basic classes and methodes for compiling Smarty templates with lexer/parser * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ require_once("smarty_internal_parsetree.php"); /** * Class SmartyTemplat...
PHP
<?php /** * Smarty Internal Plugin Compile Function * * Compiles the {function} {/function} tags * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Function Class */ class Smarty_Internal_Compile_Function extends Smarty_Internal_CompileBase { // attribut...
PHP
<?php /** * Smarty Internal Plugin Compile Include * * Compiles the {include} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Include Class */ class Smarty_Internal_Compile_Include extends Smarty_Internal_CompileBase { // caching mode to create n...
PHP
<?php /** * Smarty Internal Plugin Compile Block Plugin * * Compiles code for the execution of block plugin * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Block Plugin Class */ class Smarty_Internal_Compile_Private_Block_Plugin extends Smarty_Internal...
PHP
<?php /** * Smarty Internal Plugin Data * * This file contains the basic classes and methodes for template and variable creation * * @package Smarty * @subpackage Templates * @author Uwe Tews */ /** * Base class with template and variable methodes */ class Smarty_Internal_Data { // class used for tem...
PHP
<?php /** * Smarty Internal Plugin Compile If * * Compiles the {if} {else} {elseif} {/if} tags * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile If Class */ class Smarty_Internal_Compile_If extends Smarty_Internal_CompileBase { /** * Compiles co...
PHP
<?php /** * Smarty Internal Plugin Compile Registered Block * * Compiles code for the execution of a registered block function * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Registered Block Class */ class Smarty_Internal_Compile_Private...
PHP
<?php /** * Smarty Internal Plugin Compile Foreach * * Compiles the {foreach} {foreachelse} {/foreach} tags * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Foreach Class */ class Smarty_Internal_Compile_Foreach extends Smarty_Internal_CompileBase { //...
PHP
<?php /** * Smarty Internal Plugin Resource File * * Implements the file system as resource for Smarty templates * * @package Smarty * @subpackage TemplateResources * @author Uwe Tews */ /** * Smarty Internal Plugin Resource File */ class Smarty_Internal_Resource_File { public function __construct($...
PHP
<?php /** * Smarty Internal Plugin Resource PHP * * Implements the file system as resource for PHP templates * * @package Smarty * @subpackage TemplateResources * @author Uwe Tews */ /** * Smarty Internal Plugin Resource PHP */ class Smarty_Internal_Resource_PHP { /** * Class constructor, enable...
PHP
<?php /** * Smarty Internal Plugin Compile Include PHP * * Compiles the {include_php} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Insert Class */ class Smarty_Internal_Compile_Include_Php extends Smarty_Internal_CompileBase { // attribute def...
PHP
<?php /** * Smarty Internal Plugin Configfileparser * * This is the config file parser. * It is generated from the internal.configfileparser.y file * @package Smarty * @subpackage Compiler * @author Uwe Tews */ class TPC_yyToken implements ArrayAccess { public $string = ''; public $metadata = array(); fun...
PHP
<?php /** * Smarty Internal Plugin Resource Registered * * Implements the registered resource for Smarty template * * @package Smarty * @subpackage TemplateResources * @author Uwe Tews */ /** * Smarty Internal Plugin Resource Registered */ class Smarty_Internal_Resource_Registered { public function ...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage Security * @author Uwe Tews */ /** * This class does contain the security settings */ class Smarty_Security { /** * This determines how Smarty handles "<?php ... ?>" tags in templates. * possible values: * <ul> * <li>Smart...
PHP
<?php /** * Smarty Internal Plugin CompileBase * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * This class does extend all internal compile plugins */ // abstract class Smarty_Internal_CompileBase implements TagCompilerInterface class Smarty_Internal_CompileBase { public $required_att...
PHP
<?php /** * Smarty Internal Plugin Compile Insert * * Compiles the {insert} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Insert Class */ class Smarty_Internal_Compile_Insert extends Smarty_Internal_CompileBase { // attribute definitions pu...
PHP
<?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...
PHP
<?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...
PHP
<?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; } /** ...
PHP
<?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...
PHP
<?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...
PHP
<?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...
PHP
<?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 ...
PHP
<?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; ...
PHP
<?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...
PHP
<?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) { ...
PHP
<?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 ...
PHP
<?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...
PHP
<?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; } } ?>
PHP
<?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...
PHP
<?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...
PHP
<?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(); ...
PHP
<?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...
PHP
<?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...
PHP
<?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) { ...
PHP
<?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) { ...
PHP
<?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 ...
PHP
<?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); } } ?>
PHP
<?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) { ...
PHP
<?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...
PHP
<?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...
PHP
<?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) { ...
PHP
<?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); ...
PHP
<?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...
PHP
<?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...
PHP
<?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{ ...
PHP
<?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) { ...
PHP
<?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...
PHP
<?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: ...
PHP
<?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->...
PHP
<?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/"; ...
PHP
<?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...
PHP
<?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...
PHP
<?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...
PHP
<?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...
PHP
<?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...
PHP
<?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...
PHP
<?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...
PHP
<?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...
PHP
<?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 ...
PHP
<?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...
PHP
<?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...
PHP
<?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...
PHP
<?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 ...
PHP
<?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...
PHP
<?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...
PHP
<?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; ...
PHP