code stringlengths 1 2.01M | language stringclasses 1
value |
|---|---|
<?php
/**
* Description of CategoriaProdutoService
*
* @author Magno
*/
class CategoriaProdutoService {
private $categoriaProdutoDAO;
public function __construct() {
$this->categoriaProdutoDAO = new CategoriaProdutoDAO();
}
public function salvar($categoriaProduto) {
try {
... | PHP |
<?php
/**
* Description of EstadoService
*
* @author Magno
*/
class EstadoService {
private $estadoDAO;
public function __construct() {
$this->estadoDAO = new EstadoDAO();
}
public function salvar($estado) {
try {
return $this->estadoDAO->salvar($estado);
}catch... | PHP |
<?php
/**
* Description of MediaService
*
* @author Magno
*/
class MediaService {
private $mediaDAO;
public function __construct() {
$this->mediaDAO = new MediaDAO();
}
public function salvar($media) {
try {
return $this->mediaDAO->salvar($media);
}catch(Excepti... | PHP |
<?php
/**
* Description of DepoimentoService
*
* @author Magno
*/
class DepoimentoService {
private $depoimentoDAO;
function __construct() {
$this->depoimentoDAO = new DepoimentoDAO();
}
public function salvar($depoimento) {
try {
return $this->depoimentoDAO->salvar(... | PHP |
<?php
/**
* Description of TiposGenericosService
*
* @author Magno
*/
class TiposGenericosService {
function __construct() {
}
public static function listarTiposInformacao($incluirSelecione = false){
$tipos = array();
if($incluirSelecione)
$tipos[''] = " -- Selecione -- ... | PHP |
<?php
/**
* Description of CompraService
*
* @author Magno
*/
class CompraService {
private $compraDAO;
function __construct() {
$this->compraDAO = new CompraDAO();
}
public function salvar($compra) {
try {
return $this->compraDAO->salvar($compra);
}catch(Exc... | PHP |
<?php
/**
* Description of MediaProdutoService
*
* @author Magno
*/
class MediaProdutoService {
private $mediaProdutoDAO;
function __construct() {
$this->mediaProdutoDAO = new MediaProdutoDAO();
}
public function salvar($mediaProduto) {
try {
return $this->mediaProdu... | PHP |
<?php
/**
* Description of StatusService
*
* @author Magno
*/
class StatusService {
private $statusDAO;
public function __construct() {
$this->statusDAO = new StatusDAO();
}
public function salvar($status) {
try {
return $this->statusDAO->salvar($status);
}catch... | PHP |
<?php
/**
* Description of EmailService
*
* @author Magno
*/
class EmailService {
function __construct() {
}
#por fazer
public function enviarEmail($destino, $conteudo){
return true;
}
public static function existeEmailArray($email, $array){
for (... | PHP |
<?php
/**
* Description of InteresseService
*
* @author Magno
*/
class InteresseService {
private $interesseDAO;
function __construct() {
$this->interesseDAO = new InteresseDAO();
}
public function listarCategoriaProdutoPorCliente($pagina = 0, $usuarioID = -1) {
try {
... | PHP |
<?php
/**
* Description of CidadeService
*
* @author Magno
*/
class CidadeService {
private $cidadeDAO;
function __construct() {
$this->cidadeDAO = new CidadeDAO();
}
public function salvar($cidade) {
try {
return $this->cidadeDAO->salvar($cidade);
}catch(Exc... | PHP |
<?php
/**
* Description of ChatService
*
* @author Magno
*/
class ChatService {
private $chatDAO;
function __construct() {
$this->chatDAO = new ChatDAO();
}
public function salvar($chat) {
try {
return $this->chatDAO->salvar($chat);
}catch(Exception $err) {
... | PHP |
<?php
/**
* Description of EnderecoService
*
* @author Magno
*/
class EnderecoService {
private $enderecoDAO;
function __construct() {
$this->enderecoDAO = new EnderecoDAO();
}
public function salvar($endereco) {
try {
return $this->enderecoDAO->salvar($endereco);
... | PHP |
<?php
/**
* Description of CronometroService
*
* @author Magno
*/
class CronometroService {
private $cronometroDAO;
public function __construct() {
$this->cronometroDAO = new CronometroDAO();
}
public function salvar($cronometro) {
try {
return $this->cronometroDAO->sal... | PHP |
<?php
class UsuarioService {
private $usuarioDAO;
public function __construct() {
$this->usuarioDAO = new UsuarioDAO();
}
public function salvar($usuario) {
try {
$usuario->setSenha(Seguranca::criptografaSenha($usuario->getSenha()));
if($usuar... | PHP |
<?php
/**
* Description of UploadService
*
* @author Magno
*/
class UploadService {
function __construct() {
}
public static function salvarArquivoSimples($nome, $destino = ""){
//NOME TEMPORÁRIO NO SERVIDOR
$arquivo_temp = @$_FILES[$nome]["tmp_name"];
//NOME DO ARQUIV... | PHP |
<?php
#if (!function_exists('__autoload')) {
function loadClass($class) {
if (strpos($class,'DAO')) {
require_once("dao/".$class.".class.php");
}else if (strpos($class,'Service')) {
require_once("service/".$class.".class.php");
}else if (strpos($class,'Bean... | PHP |
<?php
/**
* Description of LeilaoDAO
*
* @author Magno
*/
class LeilaoDAO {
private $conexao;
private $cronometroDAO;
private $mediaDAO;
private $tipoLeilaoDAO;
private $statusDAO;
private $adminDAO;
private $produtoDAO;
private $lancesDAO;
public function __construct() {
... | PHP |
<?php
/**
* Description of LanceDAO
*
* @author Magno
*/
class LanceDAO {
private $conexao;
private $leilaoDAO;
private $clienteDAO;
public function __construct() {
$this->conexao = Conexao::getConexao();
$this->leilaoDAO = new LeilaoDAO();
$this->clienteDAO = new ClienteDA... | PHP |
<?php
/**
* Description of PessoaDAO
*
* @author Magno
*/
class EnderecoDAO {
private $conexao;
public function __construct() {
$this->conexao = Conexao::getConexao();
}
public function salvar($endereco) {
try {
if($this->existe($endereco->getPessoa()->getCliente()->g... | PHP |
<?php
/**
* Description of ClienteDAO
*
* @author Magno
*/
class ClienteDAO extends UsuarioDAO{
protected $conexao;
protected $mediaDAO;
protected $statusDAO;
private $pessoaDAO;
private $informacaoDAO;
private $depoimentoDAO;
private $compraDAO;
private $conviteDAO;
private $c... | PHP |
<?php
/**
* Description of StatusDAO
*
* @author Magno
*/
class StatusDAO {
private $conexao;
public function __construct() {
$this->conexao = Conexao::getConexao();
}
public function salvar($status) {
try {
if($status->getStatusID() != null && $status->getStatusID() ... | PHP |
<?php
/**
* Description of LoginDAO
*
* @author Magno
*/
class LoginDAO {
private $conexao;
private $usuarioDAO;
public function __construct() {
$this->conexao = Conexao::getConexao();
$this->usuarioDAO = new UsuarioDAO();
}
public function salvar($login) {
try {
... | PHP |
<?php
/**
* Description of PessoaDAO
*
* @author Magno
*/
class BonusDAO {
private $conexao;
public function __construct() {
$this->conexao = Conexao::getConexao();
}
public function salvar($bonus) {
try {
if($bonus->getBonusID() != null && $bonus->getBonusID() > 0) {... | PHP |
<?php
/**
* Description of TipoLeilaoDAO
*
* @author Magno
*/
class TipoLeilaoDAO {
private $conexao;
public function __construct() {
$this->conexao = Conexao::getConexao();
}
public function salvar($tipoLeilao) {
try {
if($tipoLeilao->getTipoLeilaoID() != null && $ti... | PHP |
<?php
/**
* Description of ConviteDAO
*
* @author Magno
*/
class ConviteDAO {
private $conexao;
private $statusDAO;
private $clienteDAO;
public function __construct() {
$this->conexao = Conexao::getConexao();
$this->statusDAO = new StatusDAO();
$this->clienteDAO = new Clien... | PHP |
<?php
/**
* Description of MediaDAO
*
* @author Magno
*/
class MediaDAO {
private $conexao;
public function __construct() {
$this->conexao = Conexao::getConexao();
}
public function salvar($media) {
try {
if($media->getMediaID() != null && $media->getMediaID()... | PHP |
<?php
/**
* Description of PessoaDAO
*
* @author Magno
*/
class PessoaDAO {
private $conexao;
private $enderecoDAO;
public function __construct() {
$this->conexao = Conexao::getConexao();
$this->enderecoDAO = new EnderecoDAO();
}
public function salvar($pessoa) {
try ... | PHP |
<?php
/**
* Description of CategoriaProdutoDAO
*
* @author Magno
*/
class RespostaDAO {
private $conexao;
public function __construct() {
$this->conexao = Conexao::getConexao();
}
public function salvar($resposta) {
try {
$enqueteDAO = new EnqueteDAO();
i... | PHP |
<?php
/**
* Description of ProdutoDAO
*
* @author Magno
*/
class ProdutoDAO {
private $conexao;
private $leilaoDAO;
private $mediaProdutoDAO;
private $catProDAO;
private $statusDAO;
public function __construct() {
$this->conexao = Conexao::getConexao();
$this->leilaoDAO = n... | PHP |
<?php
/**
* Description of CronometroDAO
*
* @author Magno
*/
class CronometroDAO {
private $conexao;
public function __construct() {
$this->conexao = Conexao::getConexao();
}
public function salvar($cronometro) {
try {
if($cronometro->getCronometroID() != null && $cr... | PHP |
<?php
/**
* Description of ChatDAO
*
* @author Magno
*/
class ChatDAO {
private $conexao;
private $leilaoDAO;
private $clienteDAO;
public function __construct() {
$this->conexao = Conexao::getConexao();
$this->leilaoDAO = new LeilaoDAO();
$this->clienteDAO = new ClienteDAO(... | PHP |
<?php
/**
* Description of InteresseDAO
*
* @author Magno
*/
class InteresseDAO {
private $conexao;
private $categoriaProdutoDAO;
private $clienteDAO;
public function __construct() {
$this->conexao = Conexao::getConexao();
$this->categoriaProdutoDAO = new CategoriaProdutoDAO();
... | PHP |
<?php
/**
* Description of CompraDAO
*
* @author Magno
*/
class CompraDAO {
private $conexao;
private $statusDAO;
private $clienteDAO;
private $pacoteLanceDAO;
public function __construct() {
$this->conexao = Conexao::getConexao();
$this->statusDAO = new StatusDAO();
$t... | PHP |
<?php
/**
* Description of InformacaoDAO
*
* @author Magno
*/
class InformacaoDAO {
private $conexao;
private $statusDAO;
private $clienteDAO;
public function __construct() {
$this->conexao = Conexao::getConexao();
$this->statusDAO = new StatusDAO();
$this->clienteDAO = new... | PHP |
<?php
/**
* Description of AdminDAO
*
* @author Magno
*/
class AdminDAO extends UsuarioDAO{
protected $conexao;
protected $mediaDAO;
protected $statusDAO;
private $join = " SELECT * FROM admin a INNER JOIN usuario u ON a.usuarioID = u.usuarioID ";
public function __construct() {
pa... | PHP |
<?php
/**
* Description of CategoriaProdutoDAO
*
* @author Magno
*/
class CidadeDAO {
private $conexao;
public function __construct() {
$this->conexao = Conexao::getConexao();
}
public function salvar($cidade) {
try {
$estadoDAO = new EstadoDAO();
... | PHP |
<?php
/**
* Description of MediaProdutoDAO
*
* @author Magno
*/
class MediaProdutoDAO {
private $conexao;
public function __construct() {
$this->conexao = Conexao::getConexao();
}
public function salvar($mediaProduto) {
try {
if($mediaProduto->getMediaProd... | PHP |
<?php
/**
* Description of ClienteBonusDAO
*
* @author Magno
*/
class ClienteBonusDAO {
private $conexao;
private $bonusDAO;
private $clienteDAO;
public function __construct() {
$this->conexao = Conexao::getConexao();
$this->bonusDAO = new BonusDAO();
$this->clienteDAO... | PHP |
<?php
/**
* Description of UsuarioDAO
*
* @author Magno
*/
class UsuarioDAO {
protected $conexao;
protected $mediaDAO;
protected $statusDAO;
public function __construct() {
$this->conexao = Conexao::getConexao();
$this->mediaDAO = new MediaDAO();
$this->statu... | PHP |
<?php
/**
* Description of PessoaDAO
*
* @author Magno
*/
class EstadoDAO {
private $conexao;
public function __construct() {
$this->conexao = Conexao::getConexao();
}
public function salvar($estado) {
try {
if($estado->getEstadoID() != null && $estad... | PHP |
<?php
/**
* Description of PessoaDAO
*
* @author Magno
*/
class PacoteLanceDAO {
private $conexao;
public function __construct() {
$this->conexao = Conexao::getConexao();
}
public function salvar($pacoteLance) {
try {
if($pacoteLance->getPacoteLanceID() != null && $pa... | PHP |
<?php
/**
* Description of DepoimentoDAO
*
* @author Magno
*/
class DepoimentoDAO {
private $conexao;
private $statusDAO;
private $clienteDAO;
private $mediaDAO;
public function __construct() {
$this->conexao = Conexao::getConexao();
$this->statusDAO = new StatusDAO();
... | PHP |
<?php
/**
* Description of CategoriaProdutoDAO
*
* @author Magno
*/
class CategoriaProdutoDAO {
private $conexao;
public function __construct() {
$this->conexao = Conexao::getConexao();
}
public function salvar($categoriaProduto) {
try {
if($categoriaProduto->getCateg... | PHP |
<?php
/**
* Description of EnqueteDAO
*
* @author Magno
*/
class EnqueteDAO {
private $conexao;
private $statusDAO;
public function __construct() {
$this->conexao = Conexao::getConexao();
$this->statusDAO = new StatusDAO();
}
public function salvar($enquete) {
try {
... | PHP |
<?php
/**
* Description of VotoDAO
*
* @author Magno
*/
class VotoDAO {
private $conexao;
private $enqueteDAO;
private $clienteDAO;
private $respostaDAO;
public function __construct() {
$this->conexao = Conexao::getConexao();
$this->enqueteDAO = new EnqueteDAO();
$this-... | PHP |
<?php
?>
| PHP |
<?php
/**
* jsmin.php - PHP implementation of Douglas Crockford's JSMin.
*
* This is pretty much a direct port of jsmin.c to PHP with just a few
* PHP-specific performance tweaks. Also, whereas jsmin.c reads from stdin and
* outputs to stdout, this library accepts a string as input and returns another
* string a... | PHP |
<?php
/**
* Simple script to combine and compress JS 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: 4... | PHP |
<?php
/**
* Addendum PHP Reflection Annotations
* http://code.google.com/p/addendum/
*
* Copyright (C) 2006-2009 Jan "johno Suchal <johno@jsmf.net>
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as publishe... | PHP |
<?php
class DocComment {
private static $classes = array();
private static $methods = array();
private static $fields = array();
private static $parsedFiles = array();
public static function clearCache() {
self::$classes = array();
self::$methods = array();
self::$fields = array();
s... | PHP |
<?php
/**
* Addendum PHP Reflection Annotations
* http://code.google.com/p/addendum/
*
* Copyright (C) 2006-2009 Jan "johno Suchal <johno@jsmf.net>
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as publishe... | PHP |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
/**
* Smarty lower modifier plugin
*
* Type: modifier<br>
* Name: lower<br>
* Purpose: convert string to lowercase
*
* @link http://smarty.php.net/manual/en/language.modifier.lower.php lower (Smarty... | PHP |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsModifier
*/
/**
* Smarty capitalize modifier plugin
*
* Type: modifier<br>
* Name: capitalize<br>
* Purpose: capitalize words in the string
*
* @link
* @author Monte Ohrt <monte at ohrt dot com>
* @param string $
* @return... | PHP |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
/**
* Smarty count_sentences modifier plugin
*
* Type: modifier<br>
* Name: count_sentences
* Purpose: count the number of sentences in a text
* @link http://smarty.php.net/manual/en/language.modifi... | PHP |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsModifier
*/
/**
* Smarty date_format modifier plugin
*
* Type: modifier<br>
* Name: date_format<br>
* Purpose: format datestamps via strftime<br>
* Input:<br>
* - string: input date string
* - format: strftime ... | PHP |
<?php
/**
* Smarty plugin to format text blocks
*
* @package Smarty
* @subpackage PluginsBlock
*/
/**
* Smarty {textformat}{/textformat} block plugin
*
* Type: block function<br>
* Name: textformat<br>
* Purpose: format text a certain way with preset styles
* or custom wrap/indent setti... | PHP |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage PluginsFunction
*/
/**
* Smarty {counter} function plugin
*
* Type: function<br>
* Name: counter<br>
* Purpose: print out a counter value
* @author Monte Ohrt <monte at ohrt dot com>
* @link http://smarty.php.net/manual/en/language.function.... | PHP |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsFunction
*/
/**
* Smarty {popup_init} function plugin
*
* Type: function<br>
* Name: popup_init<br>
* Purpose: initialize overlib
* @link http://smarty.php.net/manual/en/language.function.popup.init.php {popup_init}
* ... | PHP |
<?php
/**
* Smarty shared plugin
*
* @package Smarty
* @subpackage PluginsShared
*/
/**
* Function: smarty_make_timestamp<br>
* Purpose: used by other smarty functions to make a timestamp
* from a string.
* @author Monte Ohrt <monte at ohrt dot com>
* @param string $string
* @return string
*/
... | PHP |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
/**
* Smarty wordwrap modifier plugin
*
* Type: modifier<br>
* Name: wordwrap<br>
* Purpose: wrap a string of text at a given length
*
* @link http://smarty.php.net/manual/en/language.modifier.w... | PHP |
<?php
/**
* Smarty plugin to execute PHP code
*
* @package Smarty
* @subpackage PluginsBlock
* @author Uwe Tews
*/
/**
* Smarty {php}{/php} block plugin
*
* @param string $content contents of the block
* @param object $template template object
* @param boolean $ &$repeat repeat flag
* @return string con... | PHP |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
/**
* Smarty strip modifier plugin
*
* Type: modifier<br>
* Name: strip<br>
* Purpose: Replace all repeated spaces, newlines, tabs
* with a single space or supplied replacement string.... | PHP |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
/**
* Smarty strip_tags modifier plugin
*
* Type: modifier<br>
* Name: strip_tags<br>
* Purpose: strip html tags from text
*
* @link http://smarty.php.net/manual/en/language.modifier.strip.tags.... | PHP |
<?php
/**
* Smarty plugin
*
* This plugin is only for Smarty2 BC
* @package Smarty
* @subpackage PluginsFunction
*/
/**
* Smarty {math} function plugin
*
* Type: function<br>
* Name: math<br>
* Purpose: handle math computations in template<br>
* @link http://smarty.php.net/manual/en/language.funct... | PHP |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsFunction
*/
/**
* Smarty {html_options} function plugin
*
* Type: function<br>
* Name: html_options<br>
* Purpose: Prints the list of <option> tags generated from
* the passed parameters
*
* @link http://smarty.php.n... | PHP |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage Debug
*/
/**
* Smarty debug_print_var modifier plugin
*
* Type: modifier<br>
* Name: debug_print_var<br>
* Purpose: formats variable contents for display in the console
*
* @link http://smarty.php.net/manual/en/language.modifier.debug.... | PHP |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage PluginsModifier
*/
/**
* Smarty spacify modifier plugin
*
* Type: modifier<br>
* Name: spacify<br>
* Purpose: add spaces between characters in a string
*
* @link http://smarty.php.net/manual/en/language.modifier.spacify.php spacify (Smarty... | PHP |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsModifier
*/
/**
* Smarty escape modifier plugin
*
* Type: modifier<br>
* Name: escape<br>
* Purpose: escape string for output
*
* @link http://smarty.php.net/manual/en/language.modifier.count.characters.php count_characters (Sm... | PHP |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
/**
* Smarty default modifier plugin
*
* Type: modifier<br>
* Name: default<br>
* Purpose: designate default value for empty variables
*
* @link http://smarty.php.net/manual/en/language.modifier... | PHP |
<?php
// <button class="grey" type="button"></button>
function smarty_function_action_button($params, $template) {
$label = isset ($params['label']) ? $params['label'] : '';
$acao = isset ($params['action']) ? trim($params['action']) : '';
$class = isset ($params['class']) ? trim($params['cla... | PHP |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsFunction
*/
/**
* Smarty {html_checkboxes} function plugin
*
* File: function.html_checkboxes.php<br>
* Type: function<br>
* Name: html_checkboxes<br>
* Date: 24.Feb.2003<br>
* Purpose: Prints out a list of checkb... | PHP |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
/**
* Smarty noprint modifier plugin
*
* Type: modifier<br>
* Name: noprint<br>
* Purpose: return an empty string
* @author Uwe Tews
* @param array $params parameters
* @return string with com... | PHP |
<?php
/**
* Smarty shared plugin
*
* @package Smarty
* @subpackage PluginsShared
*/
/**
* escape_special_chars common function
*
* Function: smarty_function_escape_special_chars<br>
* Purpose: used by other smarty functions to escape
* special chars except for already escaped ones
* @author Mon... | PHP |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsFunction
*/
/**
* Smarty {html_select_time} function plugin
*
* Type: function<br>
* Name: html_select_time<br>
* Purpose: Prints the dropdowns for time selection
*
* @link http://smarty.php.net/manual/en/language.function.html.... | PHP |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsFunction
*/
/**
* Smarty {html_image} function plugin
*
* Type: function<br>
* Name: html_image<br>
* Date: Feb 24, 2003<br>
* Purpose: format HTML tags for the image<br>
* Examples: {html_image file="/images/masthead.gif"}
... | PHP |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage PluginsModifier
*/
/**
* Smarty replace modifier plugin
*
* Type: modifier<br>
* Name: replace<br>
* Purpose: simple search/replace
*
* @link http://smarty.php.net/manual/en/language.modifier.replace.php replace (Smarty online manual)
* @... | PHP |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsFunction
*/
/**
* Smarty {html_select_date} plugin
*
* Type: function<br>
* Name: html_select_date<br>
* Purpose: Prints the dropdowns for date selection.
*
* ChangeLog:<br>
* - 1.0 initial release
* - 1.... | PHP |
<?php
/** <p>
<label for="field1">Default block label</label>
<input type="text" id="field1" name="field1"/>
</p>
* **/
function smarty_function_form_input($params, $template) {
$required = isset ($params['required']) ? $params['required'] : false;
$label = isset ($params['label']) ? $pa... | PHP |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsFilter
*/
/**
* Smarty trimwhitespace outputfilter plugin
*
* File: outputfilter.trimwhitespace.php<br>
* Type: outputfilter<br>
* Name: trimwhitespace<br>
* Date: Jan 25, 2003<br>
* Purpose: trim leading white space and bl... | PHP |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsModifier
*/
/**
* Smarty truncate modifier plugin
*
* Type: modifier<br>
* Name: truncate<br>
* Purpose: Truncate a string to a certain length if necessary,
* optionally splitting in the middle of a word, and
* ... | PHP |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsModifier
*/
/**
* Smarty regex_replace modifier plugin
*
* Type: modifier<br>
* Name: regex_replace<br>
* Purpose: regular expression search/replace
* @link http://smarty.php.net/manual/en/language.modifier.regex.replace.php
* ... | PHP |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
/**
* Smarty upper modifier plugin
*
* Type: modifier<br>
* Name: lower<br>
* Purpose: convert string to uppercase
*
* @link http://smarty.php.net/manual/en/language.modifier.upper.php lower (Sm... | PHP |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
/**
* Smarty string_format modifier plugin
*
* Type: modifier<br>
* Name: string_format<br>
* Purpose: format strings via sprintf
*
* @link http://smarty.php.net/manual/en/language.modifier.str... | PHP |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsFunction
*/
/**
* Smarty {popup} function plugin
*
* Type: function<br>
* Name: popup<br>
* Purpose: make text pop up in windows via overlib
* @link http://smarty.php.net/manual/en/language.function.popup.php {popup}
* (Sm... | PHP |
<?php
function smarty_function_display_errors($params, $template) {
$errors = isset ($params['errors']) ? $params['errors'] : null;
$autoClose = isset ($params['autoClose']) ? $params['autoClose'] : false;
if($errors == null || count($errors) <= 0) return '';
$div = ""; $script = "";
if($auto... | PHP |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
/**
* Smarty count_characters modifier plugin
*
* Type: modifier<br>
* Name: count_characteres<br>
* Purpose: count the number of characters in a text
*
* @link http://smarty.php.net/manual/en/l... | PHP |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
/**
* Smarty cat modifier plugin
*
* Type: modifier<br>
* Name: cat<br>
* Date: Feb 24, 2003
* Purpose: catenate a value to a variable
* Input: string to catenate
* Example: {$var|cat:"f... | PHP |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsFunction
*/
/**
* Smarty {fetch} plugin
*
* Type: function<br>
* Name: fetch<br>
* Purpose: fetch file, web or ftp data and display results
* @link http://smarty.php.net/manual/en/language.function.fetch.php {fetch}
* (Smarty... | PHP |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsFunction
*/
/**
* Smarty {mailto} function plugin
*
* Type: function<br>
* Name: mailto<br>
* Date: May 21, 2002
* Purpose: automate mailto address link creation, and optionally
* encode them.<br>
*
* Examples:
... | PHP |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsFilter
*/
/**
* Smarty htmlspecialchars variablefilter plugin
*
* @param string $source input string
* @param object $ &$smarty Smarty object
* @return string filtered output
*/
function smarty_variablefilter_htmlspecialchars($source, $sm... | PHP |
<?php
/** MODELO PADRAO
<p class="message error"></p>
/**
* MODELO MENOR
*
* <p class="message error"></p>
*
*/
function smarty_function_msg($params, $template) {
$obj = isset ($params['obj']) ? $params['obj'] : null;
$tam = isset ($params['tam']) ? $params[... | PHP |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsFunction
*/
/**
* Smarty {cycle} function plugin
*
* Type: function<br>
* Name: cycle<br>
* Date: May 3, 2002<br>
* Purpose: cycle through given values<br>
* Input:
* - name = name of cycle (optional)
* - valu... | PHP |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsFunction
*/
/**
* Smarty {html_radios} function plugin
*
* File: function.html_radios.php<br>
* Type: function<br>
* Name: html_radios<br>
* Date: 24.Feb.2003<br>
* Purpose: Prints out a list of radio input type... | PHP |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
/**
* Smarty count_paragraphs modifier plugin
*
* Type: modifier<br>
* Name: count_paragraphs<br>
* Purpose: count the number of paragraphs in a text
* @link http://smarty.php.net/manual/en/language... | PHP |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
/**
* Smarty count_words modifier plugin
*
* Type: modifier<br>
* Name: count_words<br>
* Purpose: count the number of words in a text
*
* @link http://smarty.php.net/manual/en/language.modifie... | PHP |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsFunction
*/
/**
* Smarty {html_table} function plugin
*
* Type: function<br>
* Name: html_table<br>
* Date: Feb 17, 2003<br>
* Purpose: make an html table from an array of data<br>
*
*
* Examples:
* <pre>
* {table loop=... | PHP |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
/**
* Smarty indent modifier plugin
*
* Type: modifier<br>
* Name: indent<br>
* Purpose: indent lines of text
* @link http://smarty.php.net/manual/en/language.modifier.indent.php
* indent (Sm... | PHP |
<?php
/**
* Project: Smarty: the PHP compiling template engine
* File: Smarty.class.php
* SVN: $Id: Smarty.class.php 3845 2010-12-05 17:21:02Z uwe.tews@googlemail.com $
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Publ... | PHP |
<?php
/**
* Smarty Internal Plugin Debug
*
* Class to collect data for the Smarty Debugging Consol
*
* @package Smarty
* @subpackage Debug
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Debug Class
*/
class Smarty_Internal_Debug extends Smarty_Internal_Data {
// template data
static $template_data = array();
... | PHP |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.