✏️ 正在编辑: PessoaFisica.php
路径:
/srv/systems_dir/yuppiecred-bkp/application/models/PessoaFisica.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Model_PessoaFisica extends Model_Pessoa { private $_cpf; private $_dataNascimento; private $_estadoCivil; private $_rg; private $_orgaoExpedidor; private $_ufExpedidor; private $_dataExpedicao; private $_telefoneComercial; private $_sexo; private $_nacionalidade; private $_naturalidade; private $_nomePai; private $_nomeMae; private $_conjuge; //<editor-fold> public function getCpf() { return $this->_cpf; } public function setCpf($cpf) { $this->_cpf = String_Refatorar::formatarCpf($cpf); } public function getDataNascimento() { return $this->_dataNascimento; } public function setDataNascimento($dataNascimento) { if( !empty($dataNascimento) ){ try{ $data = new Zend_Date($dataNascimento, Zend_Date::DATES, 'pt'); $dataNascimento = $data->toString('yyyy-MM-dd'); } catch (Zend_Date_Exception $e){ echo $e->getMessage(); $dataNascimento = null; } }else{ $dataNascimento = null; } $this->_dataNascimento = $dataNascimento; } public function getEstadoCivil() { return $this->_estadoCivil; } public function setEstadoCivil($estadoCivil) { $this->_estadoCivil = $estadoCivil; } public function getRg() { return $this->_rg; } public function setRg($rg) { $this->_rg = $rg; } public function getOrgaoExpedidor() { return $this->_orgaoExpedidor; } public function setOrgaoExpedidor($orgaoExpedidor) { $this->_orgaoExpedidor = $orgaoExpedidor; } public function getUfExpedidor() { return $this->_ufExpedidor; } public function setUfExpedidor($ufExpedidor) { $this->_ufExpedidor = $ufExpedidor; } public function getTelefoneComercial() { return $this->_telefoneComercial; } public function setTelefoneComercial($telefoneComercial) { $this->_telefoneComercial = $telefoneComercial; } public function getSexo() { return $this->_sexo; } public function setSexo($sexo) { $this->_sexo = $sexo; } public function getNacionalidade() { return $this->_nacionalidade; } public function setNacionalidade($nacionalidade) { $this->_nacionalidade = $nacionalidade; } public function getNaturalidade() { return $this->_naturalidade; } public function setNaturalidade($naturalidade) { $this->_naturalidade = $naturalidade; } public function getNomePai() { return $this->_nomePai; } public function setNomePai($nomePai) { $this->_nomePai = $nomePai; } public function getNomeMae() { return $this->_nomeMae; } public function setNomeMae($nomeMae) { $this->_nomeMae = $nomeMae; } public function getConjuge() { return $this->_conjuge; } public function setConjuge($conjuge) { $this->_conjuge = $conjuge; } public function getDataExpedicao() { return $this->_dataExpedicao; } public function setDataExpedicao($dataExpedicao) { if( !empty($dataExpedicao) ){ try{ $data = new Zend_Date($dataExpedicao, Zend_Date::DATES, 'pt'); $dataExpedicao = $data->toString('yyyy-MM-dd'); } catch (Zend_Date_Exception $e){ echo $e->getMessage(); $dataExpedicao = null; } }else{ $dataExpedicao = null; } $this->_dataExpedicao = $dataExpedicao; } //</editor-fold> }
💾 保存文件
← 返回文件管理器