✏️ 正在编辑: TipoContrato.php
路径:
/srv/systems_dir/yuppiecred-lidernegocios/application/models/TipoContrato.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Model_TipoContrato { private $_id; private $_nome; public function getId() { return $this->_id; } public function setId($id) { $this->_id = $id; } public function getNome() { return $this->_nome; } public function setNome($nome) { $this->_nome = $nome; } public function __construct($options = null) { if( is_array($options) ){ $this->setOptions($options); } } public function setOptions(array $options) { $methods = get_class_methods($this); foreach ( $options as $key => $value ) { $explode = explode("_", $key); $methodName = ''; foreach ( $explode as $v ) { $methodName .= ucfirst($v); } $key = $methodName != '' ? $methodName : $key; $method = 'set' . ucfirst($key); if( in_array($method, $methods) ){ $this->$method($value); } } return $this; } public function _toArray() { $data['id'] = $this->getId(); $data['nome'] = $this->getNome(); return $data; } /** * Retorna uma lista * @param string $where * @param string $order * @param int $count * @param int $offset * @return array */ public function listar() { return array( array( 'id' => 'COMPRA', 'nome' => 'COMPRA'), array( 'id' => 'NOVO', 'nome' => 'NOVO'), array( 'id' => 'REFINANCIAMENTO', 'nome' => 'REFINANCIAMENTO'), array( 'id' => 'SAQUE COMPLEMENTAR', 'nome' => 'SAQUE COMPLEMENTAR'), ); } }
💾 保存文件
← 返回文件管理器