Пример #1
0
 public function __construct($item, $noticia, $usuario)
 {
     parent::__construct();
     $this->item = $item;
     $this->noticia = $noticia;
     $this->usuario = $usuario;
 }
Пример #2
0
 public function __construct($id = -1, $login = "")
 {
     parent::__construct();
     $this->setCdg($id);
     $this->setLogin($login);
     $this->carregar_dados();
 }
Пример #3
0
 public function __construct($login = '', $senha = '', $imagem_padrao = '')
 {
     parent::__construct();
     $this->imagem_padrao = $imagem_padrao;
     $this->login = strtoupper(trim($login));
     $this->senha = strtoupper(trim($senha));
 }
Пример #4
0
 public function __construct($id, $login = "")
 {
     parent::__construct();
     $this->cdg = $id;
     $this->login = $login;
     $this->carregar_dados();
 }
Пример #5
0
 public function __construct($item_cdg = -1, $noticia_cdg = -1)
 {
     parent::__construct();
     $this->total_atual = 0;
     $this->noticia = isset($noticia_cdg) ? $noticia_cdg : -1;
     $this->item = isset($item_cdg) ? $item_cdg : -1;
     //if($this->comentario_cdg != -1)
     //  $this->carregar_comentario_noticia();
 }
Пример #6
0
 public function __construct($bairro_cdg = null, $bairro_url = null)
 {
     parent::__construct($bairro_cdg, 1);
     $this->carregado = false;
     $this->bairro_cdg = isset($bairro_cdg) ? $bairro_cdg : -1;
     $this->url_solicitada = isset($bairro_url) ? $bairro_url : '-1';
     if ($this->bairro_cdg != -1 || $this->url_solicitada != '-1') {
         $this->carregar_bairro();
     }
 }
Пример #7
0
 public function __construct($cat_cdg = null, $cat_url = null)
 {
     parent::__construct($cat_cdg, 1);
     $this->carregado = false;
     $this->cat_cdg = isset($cat_cdg) ? $cat_cdg : -1;
     $this->item_url_solicitada = isset($cat_url) ? $cat_url : '-1';
     if ($this->cat_cdg != -1 || $this->cat_url_solicitada != '-1') {
         $this->carregar_cat();
     }
 }
Пример #8
0
 public function __construct($item_cdg = null, $item_url = null)
 {
     parent::__construct();
     $this->dbaux = new Mysql();
     $this->carregado = false;
     $this->item_cdg = isset($item_cdg) ? $item_cdg : -1;
     $this->item_url_solicitada = isset($item_url) ? $item_url : '-1';
     if ($this->item_cdg != -1 || $this->item_url_solicitada != '-1') {
         $this->carregar_item();
     }
 }
Пример #9
0
 public function __construct($noticia_cdg = null, $noticia_url = null)
 {
     parent::__construct($noticia_cdg);
     $this->tags = array();
     $this->carregado = false;
     $this->noticia_url_solicitada = isset($noticia_url) ? $noticia_url : '-1';
     $this->noticia_cdg = isset($noticia_cdg) ? $noticia_cdg : -1;
     if ($this->noticia_cdg != -1 || $this->noticia_url_solicitada != '-1') {
         $this->carregar_noticia();
     }
 }
Пример #10
0
 public function __construct($login, $serie, $senha = '')
 {
     parent::__construct();
     $this->turmaatual_cdg = null;
     $this->serie = strtoupper(trim($serie));
     $this->login = strtoupper(trim($login));
     // remove espaços extras entre nome e sobrenome
     $this->login = str_replace('    ', ' ', $this->login);
     $this->login = str_replace('   ', ' ', $this->login);
     $this->login = str_replace('  ', ' ', $this->login);
     // remove os espaços entre a serie e a letra
     $this->serie = str_replace(' ', '', $this->serie);
     $this->serie = str_replace('  ', '', $this->serie);
     $this->serie = str_replace('   ', '', $this->serie);
     $this->senha = trim($senha);
 }
Пример #11
0
 public function __construct($aluno_cdg = -1)
 {
     parent::__construct();
     $aluno_cdg = isset($aluno_cdg) && $aluno_cdg > 0 ? $aluno_cdg : -1;
     $this->db->Query("SELECT * FROM ALUNO WHERE ALUNO_CDG = " . $aluno_cdg);
     $this->db->MoveFirst();
     if ($this->db->RowCount() > 0) {
         $row = $this->db->Row();
         $this->aluno_cdg = $row->ALUNO_CDG;
         $this->aluno_senhag = $row->ALUNO_SENHA;
         $this->aluno_pontuacao = $row->ALUNO_PONTOS;
         $this->aluno_serie = $row->ALUNO_SERIE;
         $this->aluno_nivel = $row->ALUNO_NIVEL;
         $this->aluno_atividadeconcluida = $row->ALUNO_ATIVIDADECONCLUIDA;
     } else {
         $this->aluno_cdg = -1;
     }
 }
Пример #12
0
 public function __construct($atividade_cdg, $turmaatual)
 {
     parent::__construct();
     if ($atividade_cdg != -1) {
         //carregar informações da atividades
         $this->db->Query(" SELECT ATIVIDADE_VERIFICAACENTO FROM ATIVIDADE " . " WHERE ATIVIDADE_CDG = " . $atividade_cdg);
         $this->db->MoveFirst();
         while (!$this->db->EndOfSeek()) {
             $row = $this->db->Row();
             $this->verifica_acentuacao = $row->ATIVIDADE_VERIFICAACENTO;
         }
         // atribui os questao_cdg ao array
         $this->carregar_cdg_Questoes($atividade_cdg);
         // adiciona os questaodigitar_cdg ao array  somando com os questao_cdg ja adicionados
         $this->carregar_cdg_QuestoesDigitar($atividade_cdg);
     }
     $this->atividade_cdg = $atividade_cdg;
     $this->turma_atual = $turmaatual;
 }
Пример #13
0
 public function __construct()
 {
     parent::__construct();
 }
Пример #14
0
 public function __construct($escola_cdg = -1)
 {
     parent::__construct();
 }
Пример #15
0
 public function __construct()
 {
     parent::__construct();
     $this->sql = " SELECT TURMA_CDG,TURMA_CDG id,\n                            CONCAT(TURMA_SERIE,'º',TURMA_LETRA) AS TURMA_NOME ,                                \n                            TURMA_ANO, TURMA_SERIE, TURMA_ATIVO, TURMA_ESCOLA,\n                            TURMA_LETRA, TURMA_PROF,\n                            USUARIO_NOME AS 'TURMA_PROFESSOR'\n                     FROM TURMA \n                        LEFT JOIN USUARIO ON USUARIO_CDG = TURMA_PROF \n                        WHERE (TURMA_ANO = " . (isset($_SESSION['ANO_DE_CONSULTA']) ? $_SESSION['ANO_DE_CONSULTA'] : '-1') . " ) ";
 }
Пример #16
0
 function __construct()
 {
     parent::__construct();
     print "Este é o construtor da SubClasse<br>";
 }
Пример #17
0
 public function __construct()
 {
     parent::__construct();
     $this->db_aux = new MySQL();
 }