Esempio n. 1
0
 public function __construct()
 {
     parent::__construct(new WebM\Album(), 'website', TXT_MODELO_ALBUM);
     $this->carregarPost(['id' => FILTER_VALIDATE_INT, 'nome' => FILTER_SANITIZE_STRING, 'publicar' => FILTER_VALIDATE_BOOLEAN]);
 }
Esempio n. 2
0
 public function __construct()
 {
     parent::__construct(new WebM\ContatoSite(), 'website', TXT_MODELO_CONTATOSITE);
 }
 public function __construct()
 {
     parent::__construct(new AdminM\GrupoUsuario(), 'admin', TXT_MODELO_GRUPOUSUARIO);
     $this->carregarPost(['id' => FILTER_VALIDATE_INT, 'descr' => FILTER_SANITIZE_STRING, 'funcs' => ['filter' => FILTER_VALIDATE_INT, 'flags' => FILTER_REQUIRE_ARRAY], 'publicar' => FILTER_VALIDATE_BOOLEAN]);
 }
Esempio n. 4
0
 public function __construct()
 {
     parent::__construct(new WebSiteM\ConfiguracaoSite(), 'website', TXT_MODELO_CONFIGURACAOSITE);
     $this->carregarPost(['id' => FILTER_VALIDATE_INT, 'album_tema' => FILTER_SANITIZE_STRING, 'album_fotow' => FILTER_SANITIZE_NUMBER_INT, 'album_fotoh' => FILTER_SANITIZE_NUMBER_INT, 'album_miniw' => FILTER_SANITIZE_NUMBER_INT, 'album_minih' => FILTER_SANITIZE_NUMBER_INT]);
 }
Esempio n. 5
0
 public function __construct()
 {
     parent::__construct(null, 'login', null);
     $this->visao->setPgMestra('login');
 }
Esempio n. 6
0
 /**
  * Salvar um registro através do modelo
  */
 protected function salvar()
 {
     parent::salvar();
     if (filter_input(INPUT_POST, 'criar-funcs', FILTER_VALIDATE_BOOLEAN, ['options' => ['default' => false]])) {
         $this->criarFuncionalidadesPadrao($this->modelo->id);
     }
     // Fim if
     \Funcoes::mostrarMsg(sprintf(SUCESSO_PADRAO_REGISTRO_SALVO, $this->nome), '-sucesso');
 }
Esempio n. 7
0
 public function __construct()
 {
     parent::__construct(new WebM\DadoContato(), 'website', TXT_MODELO_DADOCONTATO);
     $this->carregarPost(['id' => FILTER_VALIDATE_INT, 'tipo' => FILTER_VALIDATE_INT, 'descr' => FILTER_SANITIZE_STRING, 'publicar' => FILTER_VALIDATE_BOOLEAN]);
 }
Esempio n. 8
0
 public function __construct()
 {
     parent::__construct(new WebM\FotoAlbum(), 'website', TXT_MODELO_FOTO);
     $this->carregarPost(['id' => FILTER_VALIDATE_INT, 'titulo' => FILTER_SANITIZE_STRING, 'descr' => FILTER_SANITIZE_STRING, 'capa' => FILTER_VALIDATE_BOOLEAN, 'publicar' => FILTER_VALIDATE_BOOLEAN]);
 }
 public function __construct()
 {
     parent::__construct(new WebM\AssuntoContato(), 'website', TXT_MODELO_ASSUNTOCONTATO);
     $this->carregarPost(['id' => FILTER_VALIDATE_INT, 'descr' => FILTER_SANITIZE_STRING, 'email' => FILTER_VALIDATE_EMAIL, 'cor' => ['filter' => FILTER_VALIDATE_REGEXP, 'options' => ['regexp' => EXPREG_COR_HEXA]], 'publicar' => FILTER_VALIDATE_BOOLEAN]);
 }
Esempio n. 10
0
 public function __construct()
 {
     parent::__construct(new DevM\ModuloFunc(), 'desenvolvedor', TXT_MODELO_MODULOFUNC);
     $this->carregarPost(['id' => FILTER_VALIDATE_INT, 'func_modulo' => FILTER_VALIDATE_INT, 'descr' => FILTER_SANITIZE_STRING, 'classe' => FILTER_SANITIZE_STRING, 'metodos' => ['filter' => FILTER_SANITIZE_STRING, 'flags' => FILTER_REQUIRE_ARRAY], 'grupos' => ['filter' => FILTER_VALIDATE_INT, 'flags' => FILTER_REQUIRE_ARRAY]]);
 }
 public function __construct()
 {
     parent::__construct(new WebM\GoogleAnalytics(), 'website', TXT_MODELO_GOOGLEANALYTICS);
     $this->carregarPost(['id' => FILTER_VALIDATE_INT, 'apelido' => FILTER_SANITIZE_STRING, 'usuario' => FILTER_SANITIZE_STRING, 'perfil_id' => FILTER_VALIDATE_INT, 'codigo_ua' => FILTER_SANITIZE_STRING, 'principal' => FILTER_VALIDATE_BOOLEAN, 'publicar' => FILTER_VALIDATE_BOOLEAN]);
 }
 public function __construct()
 {
     parent::__construct(new WebM\TipoDadoContato(), 'website', TXT_MODELO_TIPODADOCONTATO);
     $this->carregarPost(['id' => FILTER_VALIDATE_INT, 'nome' => FILTER_SANITIZE_STRING, 'exibicao' => FILTER_SANITIZE_STRING, 'rede_social' => FILTER_VALIDATE_BOOLEAN, 'mascara' => FILTER_DEFAULT, 'expreg' => FILTER_DEFAULT, 'exemplo' => FILTER_DEFAULT, 'publicar' => FILTER_VALIDATE_BOOLEAN]);
 }
Esempio n. 13
0
 public function __construct($m = null)
 {
     parent::__construct($m, 'home', '');
 }
Esempio n. 14
0
 public function __construct()
 {
     parent::__construct(new AdminM\Usuario(), 'admin', TXT_MODELO_USUARIO);
     $this->carregarPost(['id' => FILTER_VALIDATE_INT, 'info_grupo' => FILTER_VALIDATE_INT, 'info_nome' => FILTER_SANITIZE_STRING, 'info_email' => FILTER_VALIDATE_EMAIL, 'info_telefone' => FILTER_SANITIZE_STRING, 'info_sexo' => FILTER_SANITIZE_STRING, 'info_login' => FILTER_SANITIZE_STRING, 'info_senha' => FILTER_DEFAULT, 'info_senha_conf' => FILTER_DEFAULT, 'pref_idioma' => FILTER_VALIDATE_INT, 'pref_tema' => FILTER_VALIDATE_INT, 'pref_formato_data' => FILTER_VALIDATE_INT, 'pref_num_registros' => FILTER_VALIDATE_INT, 'pref_exibir_id' => FILTER_VALIDATE_BOOLEAN, 'pref_filtro_menu' => FILTER_VALIDATE_BOOLEAN, 'conf_reset' => FILTER_VALIDATE_BOOLEAN, 'conf_bloq' => FILTER_VALIDATE_BOOLEAN]);
 }
Esempio n. 15
0
 public function __construct()
 {
     parent::__construct(new WebM\Institucional(), 'website', TXT_MODELO_SOBRE);
     $this->carregarPost(['id' => FILTER_VALIDATE_INT, 'historia' => FILTER_DEFAULT, 'missao' => FILTER_DEFAULT, 'visao' => FILTER_DEFAULT, 'valores' => FILTER_DEFAULT, 'publicar' => FILTER_VALIDATE_BOOLEAN]);
 }
Esempio n. 16
0
 public function __construct()
 {
     parent::__construct(new AdminM\ConfigEmail(), 'admin', TXT_MODELO_CONFIGEMAIL);
     $this->carregarPost(['id' => FILTER_VALIDATE_INT, 'titulo' => FILTER_SANITIZE_STRING, 'host' => FILTER_SANITIZE_STRING, 'porta' => FILTER_SANITIZE_NUMBER_INT, 'autent' => FILTER_VALIDATE_BOOLEAN, 'cripto' => FILTER_SANITIZE_STRING, 'conta' => FILTER_SANITIZE_STRING, 'senha' => FILTER_SANITIZE_STRING, 'de_email' => FILTER_VALIDATE_EMAIL, 'de_nome' => FILTER_SANITIZE_STRING, 'responder_para' => FILTER_VALIDATE_EMAIL, 'html' => FILTER_VALIDATE_BOOLEAN, 'principal' => FILTER_VALIDATE_BOOLEAN, 'debug' => FILTER_VALIDATE_BOOLEAN]);
 }
Esempio n. 17
0
 public function __construct()
 {
     parent::__construct(new DevM\Idioma(), 'desenvolvedor', TXT_MODELO_IDIOMA);
     $this->carregarPost(['id' => FILTER_VALIDATE_INT, 'descr' => FILTER_SANITIZE_STRING, 'sigla' => FILTER_SANITIZE_STRING, 'publicar' => FILTER_VALIDATE_BOOLEAN]);
 }
Esempio n. 18
0
 public function __construct()
 {
     parent::__construct(new DevM\Tema(), 'desenvolvedor', TXT_MODELO_TEMA);
     $this->carregarPost(['id' => FILTER_VALIDATE_INT, 'descr' => FILTER_SANITIZE_STRING, 'diretorio' => FILTER_SANITIZE_STRING, 'pagina_mestra' => FILTER_SANITIZE_STRING, 'padrao' => FILTER_VALIDATE_BOOLEAN, 'publicar' => FILTER_VALIDATE_BOOLEAN]);
 }