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'); }
public function __construct() { parent::__construct(); $this->tabela = 'tb_vaga_garagem'; $this->primaryKey = 'cd_vaga'; $this->dataTransfer = 'VagaGaragemDTO'; }
public function __construct() { parent::__construct(); $this->tabela = 'tb_ocorrencia'; $this->primaryKey = 'cd_ocorrencia'; $this->dataTransfer = 'OcorrenciaDTO'; }
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'; }
public function __construct() { parent::__construct(); $this->tabela = 'tb_profissao'; $this->primaryKey = 'cd_profissao'; $this->dataTransfer = 'ProfissaoDTO'; }
public function __construct() { parent::__construct(); $this->tabela = 'tb_morador_endereco'; $this->primaryKey = 'nr_sequencia'; $this->dataTransfer = 'MoradorEnderecoDTO'; }
public function __construct() { parent::__construct(); $this->tabela = 'tb_cidades'; $this->primaryKey = 'id'; $this->dataTransfer = 'CidadesDTO'; }
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'; }
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); }
public function __construct() { parent::__construct(); $this->tabela = 'tb_servico_adicional'; $this->primaryKey = 'cd_serv_adicional'; $this->dataTransfer = 'ServicoAdicionalDTO'; }
public function __construct() { parent::__construct(); $this->tabela = 'tb_orcamento'; $this->primaryKey = 'cd_orcamento'; $this->dataTransfer = 'OrcamentoDTO'; }
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'; }
public function __construct() { parent::__construct(); $this->tabela = 'tb_info_estudos'; $this->primaryKey = 'cd_info_estudos'; $this->dataTransfer = 'InfoEstudosDTO'; }
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'; }
public function __construct() { parent::__construct(); $this->tabela = 'tb_relacionados'; $this->primaryKey = 'cd_pessoa_fisica_1, cd_pessoa_fisica_2'; //Chave composta $this->dataTransfer = 'RelacionadosDTO'; }
public function get($id) { $vo = parent::get($id); if (is_object($vo)) { $vo->class = $vo->class_name; } return $vo; }
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; }
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; }
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'; }