✏️ 正在编辑: ConfigSincronizacao.php
路径:
/srv/systems_dir/yuppiecred-lidernegocios/application/models/DbTable/ConfigSincronizacao.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Model_DbTable_ConfigSincronizacao extends Core_DbTable { /** @var string */ protected $_primary = 'id'; /** @var string */ protected $_name = 'tb_config_sincronizacao'; /** * @param string $nome * @return mixed */ public function findByNome(string $nome): array { $select = $this->getAdapter() ->select() ->from(['c' => $this->_name], ['*']) ->join(['b' => 'tb_bancos'], 'b.id = c.banco_id', []) ->where('nome = ?', $nome) ->where('c.excluido <> ?', 1) ; $layoutArquivo = $this->getAdapter()->fetchRow($select); return !empty($layoutArquivo) ? $layoutArquivo : []; } /** * @param string $nome * @return int|null */ public function findIdByNome(string $nome): ?int { $select = $this->getAdapter() ->select() ->from(['c' => $this->_name], ['id']) ->join(['b' => 'tb_bancos'], 'b.id = c.banco_id', []) ->where('nome = ?', $nome) ->where('c.excluido <> ?', 1) ; $layoutArquivo = $this->getAdapter()->fetchOne($select); return !empty($layoutArquivo) ? $layoutArquivo : null; } /** * @param int|null $id * @return array|mixed */ public function findById(?int $id): array { $select = $this->getAdapter() ->select() ->from(['c' => $this->_name], ['*']) ->join(['b' => 'tb_bancos'], 'b.id = c.banco_id', []) ->where('c.id = ?', $id) ->where('c.excluido <> ?', 1) ; $layoutArquivo = $this->getAdapter()->fetchRow($select); return !empty($layoutArquivo) ? $layoutArquivo : []; } }
💾 保存文件
← 返回文件管理器