public function __construct($type = '2', $orientation = 'portrait', $paper = 'a4') { $this->type = $type; $this->pdf = $this->type == '1' ? new MCpdf() : new MCezpdf($paper, $orientation); $this->diff = array(".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", "space", "exclam", "quotedbl", "numbersign", "dollar", "percent", "ampersand", "quoteright", "parenleft", "parenright", "asterisk", "plus", "comma", "minus", "period", "slash", "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "colon", "semicolon", "less", "equal", "greater", "question", "at", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "bracketleft", "backslash", "bracketright", "asciicircum", "underscore", "quoteleft", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "braceleft", "bar", "braceright", "asciitilde", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", "dotlessi", "grave", "acute", "circumflex", "tilde", "macron", "breve", "dotaccent", "dieresis", ".notdef", "ring", "cedilla", ".notdef", "hungarumlaut", "ogonek", "caron", "space", "exclamdown", "cent", "sterling", "currency", "yen", "brokenbar", "section", "dieresis", "copyright", "ordfeminine", "guillemotleft", "logicalnot", "hyphen", "registered", "macron", "degree", "plusminus", "twosuperior", "threesuperior", "acute", "mu", "paragraph", "periodcentered", "cedilla", "onesuperior", "ordmasculine", "guillemotright", "onequarter", "onehalf", "threequarters", "questiondown", "Agrave", "Aacute", "Acircumflex", "Atilde", "Adieresis", "Aring", "AE", "Ccedilla", "Egrave", "Eacute", "Ecircumflex", "Edieresis", "Igrave", "Iacute", "Icircumflex", "Idieresis", "Eth", "Ntilde", "Ograve", "Oacute", "Ocircumflex", "Otilde", "Odieresis", "multiply", "Oslash", "Ugrave", "Uacute", "Ucircumflex", "Udieresis", "Yacute", "Thorn", "germandbls", "agrave", "aacute", "acircumflex", "atilde", "adieresis", "aring", "ae", "ccedilla", "egrave", "eacute", "ecircumflex", "edieresis", "igrave", "iacute", "icircumflex", "idieresis", "eth", "ntilde", "ograve", "oacute", "ocircumflex", "otilde", "odieresis", "divide", "oslash", "ugrave", "uacute", "ucircumflex", "udieresis", "yacute", "thorn", "ydieresis"); $fontsPath = Manager::getPublicPath('', '', 'fonts/afm'); $this->pdf->setFontsPath($fontsPath); $this->setFont('Helvetica.afm'); parent::__construct(); }
public function load() { $report = 'repExemploCSV.jrxml'; $logo = Manager::getPublicPath('exemplos', '', 'images/logo.png'); $parametros['logo'] = $logo; //str_replace("/", "\\", $logo); $parametros['instituicao'] = Manager::getConf('instituicao'); $parametros['param1'] = $this->data->param1; $parametros['param2'] = $this->data->param2; $parametros['param3'] = $this->data->param3; $parametros['param4'] = $this->data->param4; $url = $this->executeCSV($this->data->result, $report, $parametros); $this->page->window($url); }
public function __construct($path = '') { parent::__construct(); $this->path = $path; if (function_exists('mb_internal_charset')) { mb_internal_charset('UTF-8'); } define('SMARTY_RESOURCE_CHAR_SET', 'UTF-8'); $this->engine = new Smarty(); $this->engine->setTemplateDir($path ? $path : Manager::getPublicPath() . '/templates'); $this->engine->setCompileDir(Manager::getFrameworkPath() . '/var/templates'); $this->engine->setCacheDir(Manager::getFrameworkPath() . '/var/cache'); $this->engine->setConfigDir(Manager::getClassPath() . '/ui/smarty/configs'); $this->engine->left_delimiter = '{{'; $this->engine->right_delimiter = '}}'; $this->context = array(); $this->context('manager', Manager::getInstance()); }
public function uploadFile() { //mdump($_FILES); $files = \MUtil::parseFiles('uploadFile'); if (is_array($files)) { foreach ($files as $file) { $path = \Manager::getPublicPath('exemplos', '', 'files/' . $file->getName()); $file->copyTo($path); } } $files = \MUtil::parseFiles('uploadMultiple'); if (is_array($files)) { foreach ($files as $file) { $path = \Manager::getPublicPath('exemplos', '', 'files/' . $file->getName()); $file->copyTo($path); } } $go = 'exemplos/controls/formFileUpload'; $this->renderPrompt('information', 'OK', $go); }
private function getCaptcha($name) { $font = Manager::getPublicPath('', '', 'fonts/ttf/arial.ttf'); $path = Manager::getFilesPath(); return new Zend\Captcha\Image(array('name' => $name, 'font' => $font, 'imgDir' => $path)); }