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');
 }
Example #2
0
 public function __construct()
 {
     parent::__construct();
     $this->tabela = 'tb_vaga_garagem';
     $this->primaryKey = 'cd_vaga';
     $this->dataTransfer = 'VagaGaragemDTO';
 }
Example #3
0
 public function __construct()
 {
     parent::__construct();
     $this->tabela = 'tb_ocorrencia';
     $this->primaryKey = 'cd_ocorrencia';
     $this->dataTransfer = 'OcorrenciaDTO';
 }
Example #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';
 }
Example #6
0
 public function __construct()
 {
     parent::__construct();
     $this->tabela = 'tb_profissao';
     $this->primaryKey = 'cd_profissao';
     $this->dataTransfer = 'ProfissaoDTO';
 }
Example #7
0
 public function __construct()
 {
     parent::__construct();
     $this->tabela = 'tb_morador_endereco';
     $this->primaryKey = 'nr_sequencia';
     $this->dataTransfer = 'MoradorEnderecoDTO';
 }
Example #8
0
 public function __construct()
 {
     parent::__construct();
     $this->tabela = 'tb_cidades';
     $this->primaryKey = 'id';
     $this->dataTransfer = 'CidadesDTO';
 }
Example #9
0
 public function __construct()
 {
     parent::__construct();
     $this->tabela = 'tb_estados';
     $this->primaryKey = 'id';
     $this->dataTransfer = 'EstadosDTO';
 }
Example #10
0
 public function __construct()
 {
     parent::__construct();
     $this->tabela = 'tb_pf_endereco';
     $this->primaryKey = 'nr_sequencia';
     $this->dataTransfer = 'PessoaFisicaEnderecoDTO';
 }
Example #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);
 }
Example #13
0
 public function __construct()
 {
     parent::__construct();
     $this->tabela = 'tb_servico_adicional';
     $this->primaryKey = 'cd_serv_adicional';
     $this->dataTransfer = 'ServicoAdicionalDTO';
 }
Example #14
0
 public function __construct()
 {
     parent::__construct();
     $this->tabela = 'tb_orcamento';
     $this->primaryKey = 'cd_orcamento';
     $this->dataTransfer = 'OrcamentoDTO';
 }
Example #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);
     }
 }
Example #17
0
 public function __construct()
 {
     parent::__construct();
     $this->tabela = 'tb_pf_telefone';
     $this->primaryKey = 'cd_pf_fone';
     $this->dataTransfer = 'PessoaFisicaTelefoneDTO';
 }
Example #18
0
 public function __construct()
 {
     parent::__construct();
     $this->tabela = 'tb_info_estudos';
     $this->primaryKey = 'cd_info_estudos';
     $this->dataTransfer = 'InfoEstudosDTO';
 }
Example #19
0
 public function __construct()
 {
     parent::__construct();
     $this->tabela = 'tb_usuario';
     $this->primaryKey = 'cd_usuario';
     $this->dataTransfer = 'UsuarioDTO';
 }
Example #20
0
 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';
 }
Example #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';
 }
Example #23
0
 public function get($id)
 {
     $vo = parent::get($id);
     if (is_object($vo)) {
         $vo->class = $vo->class_name;
     }
     return $vo;
 }
Example #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;
 }
Example #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;
 }
Example #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';
 }