✏️ 正在编辑: GrupoLead.php
路径:
/srv/systems_dir/oakberry/application/forms/Filtro/GrupoLead.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Form_Filtro_GrupoLead extends Yuppie_Form_Filtro { public function init() { $this->dbtable = Model_Container::getGrupoLead(); $this->addElement('text', 'descricao', array( 'label' => 'Descrição:', 'size' => 40 )); $this->_initButtons(); } protected function _getWhere() { $fields = $this->getValues(); $where = ['empresa_id = ?' => Yuppie_Auth::getIdentity()->empresa_id]; if (!empty($fields['descricao'])) { $where['descricao LIKE ?'] = "%{$fields['descricao']}%"; } return $where; } }
💾 保存文件
← 返回文件管理器