✏️ 正在编辑: EspelhoImportacao.php
路径:
/srv/systems_dir/yuppiecred/application/models/DbTable/EspelhoImportacao.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php /** * Esta classe está extendendo diretamente o Zend_Db_Table_Abstract * para que o método insert não gere log. */ class Model_DbTable_EspelhoImportacao extends Zend_Db_Table_Abstract { protected $_primary = 'id'; protected $_name = 'tb_espelho_importacao'; public function fetchRow($where = null, $order = null, $offset = null) { $info = $this->info(); $cols = $info['cols']; if (in_array("excluido", $cols)) { if (($where instanceof Zend_Db_Table_Select)) { $strWhere = "{$this->_name}.excluido<>1"; foreach ($where->getPart(Zend_Db_Table_Select::WHERE) as $w) { if (substr($w, 0, 3) == "AND") { $w = trim(substr($w, 3, strlen($w))); } $strWhere .= " AND " . $w; } $where->where($strWhere); } elseif (is_array($where)) { $where[] = "{$this->_name}.excluido<>1"; } elseif ($where != null) { $where = "{$where} AND {$this->_name}.excluido<>1"; } else { $where = "{$this->_name}.excluido<>1"; } } return parent::fetchRow($where, $order, $offset); } public function fetchAll($where = null, $order = null, $count = null, $offset = null) { $info = $this->info(); $cols = $info['cols']; if (in_array("excluido", $cols)) { if (($where instanceof Zend_Db_Table_Select)) { $strWhere = "{$this->_name}.excluido<>1"; foreach ($where->getPart(Zend_Db_Table_Select::WHERE) as $w) { if (substr($w, 0, 3) == "AND") { $w = trim(substr($w, 3, strlen($w))); } $strWhere .= ' AND ' . $w; } $where->where($strWhere); } elseif (is_array($where)) { $where[] = "{$this->_name}.excluido<>1"; } elseif ($where != null) { $where .= " AND {$this->_name}.excluido<>1"; } else { $where = "{$this->_name}.excluido<>1"; } } return parent::fetchAll($where, $order, $count, $offset); } }
💾 保存文件
← 返回文件管理器