✏️ 正在编辑: Parceiro.php
路径:
/srv/systems_dir/yuppiecred-lidernegocios/application/models/DbTable/Parceiro.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Model_DbTable_Parceiro extends Core_DbTable { protected $_primary = 'id'; protected $_name = 'tb_empresas'; protected static $_viewName = 'vw_empresas'; protected $_dependentTables = array( 'Model_DbTable_Corretor', 'Model_DbTable_Cliente', ); public static function getViewName() { return self::$_viewName; } public function fetchAll($where = null, $order = null, $count = null, $offset = null) { if( ($where instanceof Zend_Db_Table_Select ) ){ $strWhere = "excluido<>1 AND tipo = 'PARCEIRO'"; foreach ( $where->getPart(Zend_Db_Table_Select::WHERE) as $w ) { $strWhere .= " AND " . $w; } $where->where($strWhere); } elseif( $where != null ){ $where = $where . " AND excluido<>1 AND tipo = 'PARCEIRO'"; } else { $where = "excluido<>1 AND tipo = 'PARCEIRO'"; } return parent::fetchAll($where, $order, $count, $offset); } }
💾 保存文件
← 返回文件管理器