/** * output the relevant ee-status-legend with the designated status highlighted. * @param EEM_Message constant $status What status is set (by class) * @return string The status legend with the related status highlighted */ private function _message_status_legend($status) { $status_array = array('sent_status' => EEM_Message::status_sent, 'idle_status' => EEM_Message::status_idle, 'failed_status' => EEM_Message::status_failed, 'resend_status' => EEM_Message::status_resend, 'incomplete_status' => EEM_Message::status_incomplete, 'retry_status' => EEM_Message::status_retry); if (defined('WP_DEBUG') && WP_DEBUG) { $status_array['debug_only_status'] = EEM_Message::status_debug_only; } return EEH_Template::status_legend($status_array, $status); }
/** * output the relevant ee-status-legend with the designated status highlighted. * @param EEM_Transaction constant $status What status is set (by class) * @return string The status legend with the related status highlighted */ private function _transaction_status_legend($status) { $status_array = array('overpaid' => EEM_Transaction::overpaid_status_code, 'complete' => EEM_Transaction::complete_status_code, 'incomplete' => EEM_Transaction::incomplete_status_code, 'failed' => EEM_Transaction::failed_status_code); return EEH_Template::status_legend($status_array, $status); }
/** * output the relevant ee-status-legend with the designated status highlighted. * @param EEM_Registration constant $status What status is set (by class) * @return string The status legend with the related status highlighted */ private function _registration_status_legend($status) { $status_array = array('approved_status' => EEM_Registration::status_id_approved, 'pending_status' => EEM_Registration::status_id_pending_payment, 'not_approved' => EEM_Registration::status_id_not_approved, 'declined_status' => EEM_Registration::status_id_declined, 'cancelled_status' => EEM_Registration::status_id_cancelled); return EEH_Template::status_legend($status_array, $status); }
/** * output the relevant ee-status-legend with the designated status highlighted. * @param EE_Datetime constant $status What status is set (by class) * @return string The status legend with the related status highlighted */ private function _event_status_legend($status) { $status_array = array('active_status' => EE_Datetime::active, 'upcoming_status' => EE_Datetime::upcoming, 'postponed_status' => EE_Datetime::postponed, 'sold_out_status' => EE_Datetime::sold_out, 'cancelled_status' => EE_Datetime::cancelled, 'expired_status' => EE_Datetime::expired, 'inactive_status' => EE_Datetime::inactive); return EEH_Template::status_legend($status_array, $status); }
/** * output the relevant ee-status-legend with the designated status highlighted. * * @since 1.0.0 * * @param EE_Promotion constant $status What status is set (by class) * @return string The status legend with the related status highlighted */ private function _promotion_status_legend($status) { $status_array = array('active_status' => EE_Promotion::active, 'upcoming_status' => EE_Promotion::upcoming, 'expired_status' => EE_Promotion::expired, 'unavailable_status' => EE_Promotion::unavailable); return EEH_Template::status_legend($status_array, $status); }
/** * output the relevant ee-status-legend with the designated status highlighted. * @param EE_Ticket constant $status What status is set (by class) * @return string The status legend with the related status highlighted */ private function _ticket_status_legend($status) { $status_array = array('archived' => EE_Ticket::archived, 'expired' => EE_Ticket::expired, 'sold_out' => EE_Ticket::sold_out, 'pending' => EE_Ticket::pending, 'onsale' => EE_Ticket::onsale); return EEH_Template::status_legend($status_array, $status); }
/** * output the relevant ee-status-legend with the designated status highlighted. * @param EEM_Payment constant $status What status is set (by class) * @return string The status legend with the related status highlighted */ private function _payment_status_legend($status) { $status_array = array('approved' => EEM_Payment::status_id_approved, 'pending' => EEM_Payment::status_id_pending, 'cancelled' => EEM_Payment::status_id_cancelled, 'declined' => EEM_Payment::status_id_declined, 'failed' => EEM_Payment::status_id_failed); return EEH_Template::status_legend($status_array, $status); }