✏️ 正在编辑: CallcenterStatusAtendimento.php
路径:
/srv/systems_dir/yuppiecred-bkp/application/models/DbTable/CallcenterStatusAtendimento.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Model_DbTable_CallcenterStatusAtendimento extends Core_DbTable { protected $_primary = 'id'; protected $_name = 'tb_callcenter_status'; protected $_dependentsTable = array( 'Model_DbTable_CallcenterBase', 'Model_DbTable_CallcenterAtendimento', ); public function insert(array $data) { $data['descricao'] = trim($data['descricao']); return parent::insert($data); } public function update(array $data, $where, $registerLog = true) { $dados = $this->fetchRow($where); if( $dados ){ if( $dados->bloquear == 1 ){ throw new Exception("Não é possível alterar/remover esse registro."); } } if( isset($data['descricao']) ){ $data['descricao'] = trim($data['descricao']); } return parent::update($data, $where, $registerLog); } }
💾 保存文件
← 返回文件管理器