function getFieldNames() { $fieldNames = parent::getFieldNames(); unset($fieldNames['tmr_currency']); unset($fieldNames['tmr_tmb_id']); if (isset($fieldNames['tmr_id'])) { $fieldNames['tmr_id'] = wfMessage('id')->text(); } if (isset($fieldNames['tmr_desc'])) { $fieldNames['tmr_desc'] = wfMessage('description')->text(); } if (isset($fieldNames['tmr_date_created'])) { $fieldNames['tmr_date_created'] = wfMessage('date_created')->text(); } if (isset($fieldNames['tmr_date_modified'])) { $fieldNames['tmr_date_modified'] = wfMessage('date_modified')->text(); } if (isset($fieldNames['tmr_amount'])) { $fieldNames['tmr_amount'] = wfMessage('amount')->text(); } if (isset($fieldNames['tmr_status'])) { $fieldNames['tmr_status'] = wfMessage('status')->text(); } return $fieldNames; }
function getFieldNames() { $fieldNames = parent::getFieldNames(); unset($fieldNames['wpp_id']); unset($fieldNames['wpp_currency']); unset($fieldNames['wpp_nb_wikiplaces']); unset($fieldNames['wpp_nb_wikiplace_pages']); unset($fieldNames['wpp_diskspace']); unset($fieldNames['wpp_monthly_page_hits']); unset($fieldNames['wpp_monthly_bandwidth']); $fieldNames['hard_quotas'] = wfMessage('wp-hard-quotas'); $fieldNames['monthly_quotas'] = wfMessage('wp-monthly-quotas'); if (isset($fieldNames['wpp_name'])) { $fieldNames['wpp_name'] = wfMessage('wp-name')->text(); } if (isset($fieldNames['wpp_period_months'])) { $fieldNames['wpp_period_months'] = wfMessage('wp-duration')->text(); } if (isset($fieldNames['wpp_price'])) { $fieldNames['wpp_price'] = wfMessage('price')->text(); } if (isset($fieldNames['wpp_end_date'])) { $fieldNames['wpp_end_date'] = wfMessage('end_date')->text(); } return $fieldNames; }
function getFieldNames() { $fieldNames = parent::getFieldNames(); unset($fieldNames['user_name']); $fieldNames['wpi_code'] = wfMessage('wpi-code')->text(); $fieldNames['wpic_desc'] = wfMessage('wpi-type')->text(); $fieldNames['wpi_to_email'] = wfMessage('wpi-to-email')->text(); $fieldNames['wpi_date_created'] = wfMessage('date_created')->text(); $fieldNames['wpi_counter'] = wfMessage('status')->text(); return $fieldNames; }
function getFieldNames() { $fieldNames = parent::getFieldNames(); unset($fieldNames['user_id']); if (isset($fieldNames['user_name'])) { $fieldNames['user_name'] = wfMessage('wp-username'); } if (isset($fieldNames['user_real_name'])) { $fieldNames['user_real_name'] = wfMessage('wp-realname'); } $fieldNames['actions'] = ''; return $fieldNames; }
function getFieldNames() { $fieldNames = parent::getFieldNames(); unset($fieldNames['page_is_redirect']); $fieldNames['actions'] = ''; if (isset($fieldNames['page_title'])) { $fieldNames['page_title'] = wfMessage('wp-name'); } if (isset($fieldNames['page_touched'])) { $fieldNames['page_touched'] = wfMessage('date_modified'); } if (isset($fieldNames['page_namespace'])) { $fieldNames['page_namespace'] = wfMessage('type'); } if (isset($fieldNames['page_counter'])) { $fieldNames['page_counter'] = wfMessage('wp-Hits'); } return $fieldNames; }
/** * Add "active" class for actives rows, and "warning" for not "OK or PE" tmr * * @param $row Object: the database result row * @return String */ function getRowAttrs($row) { $attrs = parent::getRowAttrs($row); $classes = explode(' ', $attrs['class']); if ($row->wps_active == '1') { $classes[] = 'active'; } if ($row->wps_tmr_status == 'PE') { $classes[] = 'pending'; } else { if ($row->wps_tmr_status == 'KO') { $classes[] = 'canceled'; } } return array('class' => implode(' ', $classes)); }
/** * Determine if $field should be sortable * * @param string $field * @return boolean * */ function isFieldSortable($field) { return $field == 'count' || $field == 'members' ? false : parent::isFieldSortable($field); }