function testDao()
 {
     $da = new MockDataAccess($this);
     $dar = new MockDataAccessResult($this);
     $da->setReturnReference('query', $dar);
     $dao = new DataAccessObject($da);
     $result = $dao->retrieve("SELECT *");
     $this->assertIsA($result, 'MockDataAccessResult');
 }
Exemple #2
0
 public function __construct()
 {
     parent::__construct();
     $this->tabela = 'tb_vaga_garagem';
     $this->primaryKey = 'cd_vaga';
     $this->dataTransfer = 'VagaGaragemDTO';
 }
Exemple #3
0
 public function __construct()
 {
     parent::__construct();
     $this->tabela = 'tb_ocorrencia';
     $this->primaryKey = 'cd_ocorrencia';
     $this->dataTransfer = 'OcorrenciaDTO';
 }
Exemple #4
0
 public function __construct()
 {
     parent::__construct();
     $this->tabela = 'tb_ordem_servico';
     $this->primaryKey = 'cd_ordem_servico';
     $this->dataTransfer = 'OrdemServicoDTO';
 }
 public function __construct()
 {
     parent::__construct();
     $this->tabela = 'tb_relac_parametro';
     $this->primaryKey = 'cd_catg_vl_relac_1';
     $this->dataTransfer = 'RelacionamentoParametroDTO';
 }
Exemple #6
0
 public function __construct()
 {
     parent::__construct();
     $this->tabela = 'tb_profissao';
     $this->primaryKey = 'cd_profissao';
     $this->dataTransfer = 'ProfissaoDTO';
 }
Exemple #7
0
 public function __construct()
 {
     parent::__construct();
     $this->tabela = 'tb_morador_endereco';
     $this->primaryKey = 'nr_sequencia';
     $this->dataTransfer = 'MoradorEnderecoDTO';
 }
Exemple #8
0
 public function __construct()
 {
     parent::__construct();
     $this->tabela = 'tb_cidades';
     $this->primaryKey = 'id';
     $this->dataTransfer = 'CidadesDTO';
 }
Exemple #9
0
 public function __construct()
 {
     parent::__construct();
     $this->tabela = 'tb_estados';
     $this->primaryKey = 'id';
     $this->dataTransfer = 'EstadosDTO';
 }
 public function __construct()
 {
     parent::__construct();
     $this->tabela = 'tb_pf_endereco';
     $this->primaryKey = 'nr_sequencia';
     $this->dataTransfer = 'PessoaFisicaEnderecoDTO';
 }
Exemple #11
0
 public function __construct()
 {
     parent::__construct();
     $this->tabela = 'tb_itens_orcamento';
     $this->primaryKey = 'nr_sequencia';
     $this->dataTransfer = 'ItensOrcamentoDTO';
 }
 function CodendiUpgrade()
 {
     $this->_upgradeError = null;
     $this->setEnvironment();
     $da =& CodendiDataAccess::instance();
     parent::DataAccessObject($da);
 }
Exemple #13
0
 public function __construct()
 {
     parent::__construct();
     $this->tabela = 'tb_servico_adicional';
     $this->primaryKey = 'cd_serv_adicional';
     $this->dataTransfer = 'ServicoAdicionalDTO';
 }
Exemple #14
0
 public function __construct()
 {
     parent::__construct();
     $this->tabela = 'tb_orcamento';
     $this->primaryKey = 'cd_orcamento';
     $this->dataTransfer = 'OrcamentoDTO';
 }
Exemple #15
0
 public function __construct()
 {
     parent::__construct();
     $this->tabela = 'tb_categoria_valor';
     $this->primaryKey = 'cd_vl_categoria';
     $this->dataTransfer = 'CategoriaValorDTO';
 }
 /**
  * Constructor of the class
  *
  * @param DataAccess $da      Data access details
  * @param Integer    $groupId Project Id
  *
  * @return void
  */
 function __construct(DataAccess $da, $groupId = null)
 {
     parent::__construct($da);
     if ($groupId) {
         $this->groupFilter = ' AND group_id=' . $this->da->escapeInt($groupId);
     }
 }
 public function __construct()
 {
     parent::__construct();
     $this->tabela = 'tb_pf_telefone';
     $this->primaryKey = 'cd_pf_fone';
     $this->dataTransfer = 'PessoaFisicaTelefoneDTO';
 }
Exemple #18
0
 public function __construct()
 {
     parent::__construct();
     $this->tabela = 'tb_info_estudos';
     $this->primaryKey = 'cd_info_estudos';
     $this->dataTransfer = 'InfoEstudosDTO';
 }
Exemple #19
0
 public function __construct()
 {
     parent::__construct();
     $this->tabela = 'tb_usuario';
     $this->primaryKey = 'cd_usuario';
     $this->dataTransfer = 'UsuarioDTO';
 }
 public function __construct()
 {
     parent::__construct();
     $this->tabela = 'tb_instituicao_ensino';
     $this->primaryKey = 'cd_instituicao';
     $this->dataTransfer = 'InstituicaoEnsinoDTO';
 }
 public function __construct()
 {
     parent::__construct();
     $this->tabela = 'tb_ocorrencia_pf_envolvida';
     $this->primaryKey = 'cd_ocorrencia, cd_pessoa_fisica';
     //Chave composta
     $this->dataTransfer = 'OcorrenciaPessoaFisicaEnvolvidaDTO';
 }
Exemple #22
0
 public function __construct()
 {
     parent::__construct();
     $this->tabela = 'tb_relacionados';
     $this->primaryKey = 'cd_pessoa_fisica_1, cd_pessoa_fisica_2';
     //Chave composta
     $this->dataTransfer = 'RelacionadosDTO';
 }
Exemple #23
0
 public function get($id)
 {
     $vo = parent::get($id);
     if (is_object($vo)) {
         $vo->class = $vo->class_name;
     }
     return $vo;
 }
Exemple #24
0
 public function __construct()
 {
     parent::__construct();
     $this->tabela = 'tb_pessoa_juridica';
     $this->primaryKey = 'cd_pessoa_juridica';
     $this->dataTransfer = 'PessoaJuridicaDTO';
     $this->colunaImagem = 'im_perfil';
     $this->imgFolder = IMG_UPLOADS_FOLDER . "{$this->tabela}/";
     $this->fotoDefault = ICON_PESSOA_JURIDICA;
 }
Exemple #25
0
 public function __construct()
 {
     parent::__construct();
     $this->tabela = 'tb_condominio';
     $this->primaryKey = 'cd_condominio';
     $this->dataTransfer = 'CondominioDTO';
     $this->colunaImagem = 'im_perfil';
     $this->imgFolder = IMG_UPLOADS_FOLDER . "{$this->tabela}/";
     $this->fotoDefault = ICON_USER;
 }
Exemple #26
0
 public function save(ValueObject $vo)
 {
     if (empty($vo)) {
         return false;
     }
     $vo2 = clone $vo;
     // Make cloned copy of the vo
     // Have to unset joined class data, though not the _foreign keys, I guess.
     unset($vo2->identity);
     unset($vo2->class_name);
     unset($vo2->theme);
     parent::save($vo2);
 }
 function __construct()
 {
     parent::__construct();
     $this->table_name = 'tracker_perm';
 }
 public function __construct()
 {
     parent::__construct();
     $this->table_name = 'tracker_artifact';
 }
 public function __construct($da = null)
 {
     parent::__construct($da);
     $this->table_name = 'groups';
 }
 function __construct()
 {
     parent::__construct();
     $this->table_name = 'tracker_field_list_bind_static_value';
 }