本文整理汇总了PHP中EEH_Template::pretty_status方法的典型用法代码示例。如果您正苦于以下问题:PHP EEH_Template::pretty_status方法的具体用法?PHP EEH_Template::pretty_status怎么用?PHP EEH_Template::pretty_status使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EEH_Template
的用法示例。
在下文中一共展示了EEH_Template::pretty_status方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: column_name
public function column_name(EE_Promotion $item)
{
$edit_link = EEH_URL::add_query_args_and_nonce(array('action' => 'edit', 'PRO_ID' => $item->ID()), EE_PROMOTIONS_ADMIN_URL);
$content = EE_Registry::instance()->CAP->current_user_can('ee_edit_promotion', 'espresso_promotions_edit_promotion', $item->ID()) ? '<a href="' . $edit_link . '" title="' . __('Edit Promotion', 'event_espresso') . '">' . $item->name() . '</a>' : $item->name();
$content .= '<br><span class="ee-status-text-small">' . EEH_Template::pretty_status($item->status(), false, 'sentence') . '</span>';
return $content;
}
示例2: column_ATT_name
function column_ATT_name(EE_Registration $item)
{
$attendee = $item->attendee();
if (!$attendee instanceof EE_Attendee) {
return __('No contact record for this registration.', 'event_espresso');
}
// edit attendee link
$edit_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array('action' => 'view_registration', '_REG_ID' => $item->ID()), REG_ADMIN_URL);
$name_link = EE_Registry::instance()->CAP->current_user_can('ee_edit_contacts', 'espresso_registrations_edit_attendee') ? '<a href="' . $edit_lnk_url . '" title="' . esc_attr__('Edit Contact', 'event_espresso') . '">' . $item->attendee()->full_name() . '</a>' : $item->attendee()->full_name();
$name_link .= $item->count() == 1 ? ' <sup><div class="dashicons dashicons-star-filled lt-blue-icon ee-icon-size-8"></div></sup> ' : '';
//add group details
$name_link .= ' ' . sprintf(__('(%s of %s)', 'event_espresso'), $item->count(), $item->group_size());
//add regcode
$link = EE_Admin_Page::add_query_args_and_nonce(array('action' => 'view_registration', '_REG_ID' => $item->ID()), REG_ADMIN_URL);
$name_link .= '<br>';
$name_link .= EE_Registry::instance()->instance()->CAP->current_user_can('ee_read_registration', 'view_registration', $item->ID()) ? '<a href="' . $link . '" title="' . esc_attr__('View Registration Details', 'event_espresso') . '">' . $item->reg_code() . '</a>' : $item->reg_code();
//status
$name_link .= '<br><span class="ee-status-text-small">' . EEH_Template::pretty_status($item->status_ID(), false, 'sentence') . '</span>';
$actions = array();
$DTT_ID = !empty($this->_req_data['DTT_ID']) ? $this->_req_data['DTT_ID'] : NULL;
$DTT_ID = empty($DTT_ID) && !empty($this->_req_data['event_id']) ? EEM_Event::instance()->get_one_by_ID($this->_req_data['event_id'])->primary_datetime()->ID() : $DTT_ID;
if (!empty($DTT_ID) && EE_Registry::instance()->CAP->current_user_can('ee_read_checkins', 'espresso_registrations_registration_checkins')) {
$checkin_list_url = EE_Admin_Page::add_query_args_and_nonce(array('action' => 'registration_checkins', '_REGID' => $item->ID(), 'DTT_ID' => $DTT_ID));
$actions['checkin'] = '<a href="' . $checkin_list_url . '" title="' . esc_attr__('View all the check-ins/checkouts for this registrant', 'event_espresso') . '">' . __('View', 'event_espresso') . '</a>';
}
return !empty($DTT_ID) ? sprintf('%1$s %2$s', $name_link, $this->row_actions($actions)) : $name_link;
}
开发者ID:kaffiemetsuker,项目名称:event-espresso-core,代码行数:27,代码来源:EE_Event_Registrations_List_Table.class.php
示例3: _set_related_details
/**
* Set the $_transaction_details property if not set yet.
*
* @param EE_Registration $registration
*/
protected function _set_related_details(EE_Registration $registration)
{
$transaction = $registration->get_first_related('Transaction');
$status = $transaction instanceof EE_Transaction ? $transaction->status_ID() : EEM_Transaction::failed_status_code;
$this->_transaction_details = array('transaction' => $transaction, 'status' => $status, 'id' => $transaction instanceof EE_Transaction ? $transaction->ID() : 0, 'title_attr' => sprintf(__('View Transaction Details (%s)', 'event_espresso'), EEH_Template::pretty_status($status, false, 'sentence')));
$event = $registration->event();
$status = $event instanceof EE_Event ? $event->get_active_status() : EE_Datetime::inactive;
$this->_event_details = array('event' => $event, 'status' => $status, 'id' => $event instanceof EE_Event ? $event->ID() : 0, 'title_attr' => sprintf(__('Edit Event (%s)', 'event_espresso'), EEH_Template::pretty_status($status, false, 'sentence')));
}
示例4: column_name
/**
* @param EE_Event $item
*
* @return string
*/
public function column_name(EE_Event $item)
{
$edit_query_args = array('action' => 'edit', 'post' => $item->ID());
$edit_link = EE_Admin_Page::add_query_args_and_nonce($edit_query_args, EVENTS_ADMIN_URL);
$actions = $this->_column_name_action_setup($item);
$status = '';
//$item->status() !== 'publish' ? ' (' . $item->status() . ')' : '';
$content = '<strong><a class="row-title" href="' . $edit_link . '">' . $item->name() . '</a></strong>' . $status;
$content .= '<br><span class="ee-status-text-small">' . EEH_Template::pretty_status($item->get_active_status(), false, 'sentence') . '</span>';
$content .= $this->row_actions($actions);
return $content;
}
示例5: _transaction_legend_items
/**
* _transaction_legend_items
*
* @access protected
* @return array
*/
protected function _transaction_legend_items()
{
EE_Registry::instance()->load_helper('MSG_Template');
$items = array();
if (EE_Registry::instance()->CAP->current_user_can('ee_read_global_messages', 'view_filtered_messages')) {
$related_for_icon = EEH_MSG_Template::get_message_action_icon('see_notifications_for');
if (isset($related_for_icon['css_class']) && isset($related_for_icon['label'])) {
$items['view_related_messages'] = array('class' => $related_for_icon['css_class'], 'desc' => $related_for_icon['label']);
}
}
$items = apply_filters('FHEE__Transactions_Admin_Page___transaction_legend_items__items', array_merge($items, array('view_details' => array('class' => 'dashicons dashicons-cart', 'desc' => __('View Transaction Details', 'event_espresso')), 'view_invoice' => array('class' => 'dashicons dashicons-media-spreadsheet', 'desc' => __('View Transaction Invoice', 'event_espresso')), 'view_receipt' => array('class' => 'dashicons dashicons-media-default', 'desc' => __('View Transaction Receipt', 'event_espresso')), 'view_registration' => array('class' => 'dashicons dashicons-clipboard', 'desc' => __('View Registration Details', 'event_espresso')))));
if (EE_Registry::instance()->CAP->current_user_can('ee_send_message', 'espresso_transactions_send_payment_reminder')) {
if (EEH_MSG_Template::is_mt_active('payment_reminder')) {
$items['send_payment_reminder'] = array('class' => 'dashicons dashicons-email-alt', 'desc' => __('Send Payment Reminder', 'event_espresso'));
} else {
$items['blank*'] = array('class' => '', 'desc' => '');
}
} else {
$items['blank*'] = array('class' => '', 'desc' => '');
}
$more_items = apply_filters('FHEE__Transactions_Admin_Page___transaction_legend_items__more_items', array('overpaid' => array('class' => 'ee-status-legend ee-status-legend-' . EEM_Transaction::overpaid_status_code, 'desc' => EEH_Template::pretty_status(EEM_Transaction::overpaid_status_code, FALSE, 'sentence')), 'complete' => array('class' => 'ee-status-legend ee-status-legend-' . EEM_Transaction::complete_status_code, 'desc' => EEH_Template::pretty_status(EEM_Transaction::complete_status_code, FALSE, 'sentence')), 'incomplete' => array('class' => 'ee-status-legend ee-status-legend-' . EEM_Transaction::incomplete_status_code, 'desc' => EEH_Template::pretty_status(EEM_Transaction::incomplete_status_code, FALSE, 'sentence')), 'abandoned' => array('class' => 'ee-status-legend ee-status-legend-' . EEM_Transaction::abandoned_status_code, 'desc' => EEH_Template::pretty_status(EEM_Transaction::abandoned_status_code, FALSE, 'sentence')), 'failed' => array('class' => 'ee-status-legend ee-status-legend-' . EEM_Transaction::failed_status_code, 'desc' => EEH_Template::pretty_status(EEM_Transaction::failed_status_code, FALSE, 'sentence'))));
return array_merge($items, $more_items);
}
示例6: _change_reg_status
/**
* incoming reg status change from reg details page.
* @return void
*/
protected function _change_reg_status()
{
$this->_req_data['return'] = 'view_registration';
//set notify based on whether the send notifications toggle is set or not
$notify = !empty($this->_req_data['txn_reg_status_change']['send_notifications']);
$this->_req_data['_reg_status_id'] = isset($this->_req_data['_reg_status_id']) ? $this->_req_data['_reg_status_id'] : '';
switch ($this->_req_data['_reg_status_id']) {
case EEH_Template::pretty_status(EEM_Registration::status_id_approved, false, 'sentence'):
$this->approve_registration($notify);
break;
case EEH_Template::pretty_status(EEM_Registration::status_id_pending_payment, false, 'sentence'):
$this->pending_registration($notify);
break;
case EEH_Template::pretty_status(EEM_Registration::status_id_not_approved, false, 'sentence'):
$this->not_approve_registration($notify);
break;
case EEH_Template::pretty_status(EEM_Registration::status_id_declined, false, 'sentence'):
$this->decline_registration($notify);
break;
case EEH_Template::pretty_status(EEM_Registration::status_id_cancelled, false, 'sentence'):
$this->cancel_registration($notify);
break;
default:
$result['success'] = false;
unset($this->_req_data['return']);
$this->_reg_status_change_return('', false);
break;
}
}
示例7: ticket_status
/**
* Using the start date and end date this method calculates whether the ticket is On Sale, Pending, or Expired
* @param bool $display true = we'll return a localized string, otherwise we just return the value of the relevant status const
* @return mixed(int|string) status int if the display string isn't requested
*/
public function ticket_status($display = FALSE)
{
if (!$this->is_remaining()) {
return $display ? EEH_Template::pretty_status(EE_Ticket::sold_out, FALSE, 'sentence') : EE_Ticket::sold_out;
}
if ($this->get('TKT_deleted')) {
return $display ? EEH_Template::pretty_status(EE_Ticket::archived, FALSE, 'sentence') : EE_Ticket::archived;
}
if ($this->is_expired()) {
return $display ? EEH_Template::pretty_status(EE_Ticket::expired, FALSE, 'sentence') : EE_Ticket::expired;
}
if ($this->is_pending()) {
return $display ? EEH_Template::pretty_status(EE_Ticket::pending, FALSE, 'sentence') : EE_Ticket::pending;
}
if ($this->is_on_sale()) {
return $display ? EEH_Template::pretty_status(EE_Ticket::onsale, FALSE, 'sentence') : EE_Ticket::onsale;
}
return '';
}
示例8: printf
<?php
printf(__('%s Registrations', 'event_espresso'), EEH_Template::pretty_status(EEM_Registration::status_id_pending_payment, FALSE, 'sentence'));
?>
</a>:
<?php
echo $pending_payment_regs;
?>
</div>
<div class="misc-pub-section">
<span class="dashicons dashicons-groups ee-icon-color-ee-orange ee-icon-size-20"></span>
<a href="<?php
echo $view_not_approved_reg_url;
?>
">
<?php
printf(__('%s Registrations', 'event_espresso'), EEH_Template::pretty_status(EEM_Registration::status_id_not_approved, FALSE, 'sentence'));
?>
</a>:
<?php
echo $not_approved_regs;
?>
</div>
<?php
/*
//todo .. hook in newsletter message type trigger in later versions.
<div class="misc-pub-section <?php echo $misc_pub_section_class; ?>" id="visibility2">
<a href="<?php echo $email_attendees_url;?>" title="<?php _e('Email Event Attendees', 'event_espresso'); ?>">
<div class="ee-icon ee-icon-email-send"></div>
<?php _e('Email Event Attendees', 'event_espresso'); ?>
</a>
</div> /**/
示例9: _event_registrations_list_table
/**
* generates HTML for the Event Registrations List Table
* @access protected
* @return void
*/
protected function _event_registrations_list_table()
{
do_action('AHEE_log', __FILE__, __FUNCTION__, '');
$this->_admin_page_title .= isset($this->_req_data['event_id']) ? $this->get_action_link_or_button('new_registration', 'add-registrant', array('event_id' => $this->_req_data['event_id']), 'add-new-h2') : '';
$legend_items = array('star-icon' => array('class' => 'dashicons dashicons-star-filled lt-blue-icon ee-icon-size-8', 'desc' => __('This Registrant is the Primary Registrant', 'event_espresso')), 'checkin' => array('class' => 'ee-icon ee-icon-check-in', 'desc' => __('This Registrant has been Checked In', 'event_espresso')), 'checkout' => array('class' => 'ee-icon ee-icon-check-out', 'desc' => __('This Registrant has been Checked Out', 'event_espresso')), 'nocheckinrecord' => array('class' => 'dashicons dashicons-no', 'desc' => __('No Check-in Record has been Created for this Registrant', 'event_espresso')), 'view_details' => array('class' => 'dashicons dashicons-search', 'desc' => __('View All Check-in Records for this Registrant', 'event_espresso')), 'approved_status' => array('class' => 'ee-status-legend ee-status-legend-' . EEM_Registration::status_id_approved, 'desc' => EEH_Template::pretty_status(EEM_Registration::status_id_approved, FALSE, 'sentence')), 'cancelled_status' => array('class' => 'ee-status-legend ee-status-legend-' . EEM_Registration::status_id_cancelled, 'desc' => EEH_Template::pretty_status(EEM_Registration::status_id_cancelled, FALSE, 'sentence')), 'declined_status' => array('class' => 'ee-status-legend ee-status-legend-' . EEM_Registration::status_id_declined, 'desc' => EEH_Template::pretty_status(EEM_Registration::status_id_declined, FALSE, 'sentence')), 'not_approved' => array('class' => 'ee-status-legend ee-status-legend-' . EEM_Registration::status_id_not_approved, 'desc' => EEH_Template::pretty_status(EEM_Registration::status_id_not_approved, FALSE, 'sentence')), 'pending_status' => array('class' => 'ee-status-legend ee-status-legend-' . EEM_Registration::status_id_pending_payment, 'desc' => EEH_Template::pretty_status(EEM_Registration::status_id_pending_payment, FALSE, 'sentence')));
$this->_template_args['after_list_table'] = $this->_display_legend($legend_items);
$event_id = isset($this->_req_data['event_id']) ? $this->_req_data['event_id'] : null;
$this->_template_args['before_list_table'] = !empty($event_id) ? '<h2>' . sprintf(__('Viewing Registrations for Event: %s', 'event_espresso'), EEM_Event::instance()->get_one_by_ID($event_id)->get('EVT_name')) . '</h2>' : '';
$this->_template_args['list_table_hidden_fields'] = !empty($event_id) ? '<input type="hidden" name="event_id" value="' . $event_id . '">' : '';
$this->display_admin_list_table_page_with_no_sidebar();
}
示例10: column_ATT_fname
/**
* column_ATT_fname
*
* @access public
* @param \EE_Registration $item
* @return string
*/
function column_ATT_fname(EE_Registration $item)
{
$attendee = $item->attendee();
$edit_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array('action' => 'view_registration', '_REG_ID' => $item->ID()), REG_ADMIN_URL);
$attendee_name = $attendee instanceof EE_Attendee ? $attendee->full_name() : '';
$link = EE_Registry::instance()->CAP->current_user_can('ee_read_registration', 'espresso_registrations_view_registration', $item->ID()) ? '<a href="' . $edit_lnk_url . '" title="' . esc_attr__('View Registration Details', 'event_espresso') . '">' . $attendee_name . '</a>' : $attendee_name;
$link .= $item->count() == 1 ? ' <sup><div class="dashicons dashicons-star-filled lt-blue-icon ee-icon-size-8"></div></sup>' : '';
$t = $item->get_first_related('Transaction');
$payment_count = $t instanceof EE_Transaction ? $t->count_related('Payment') : 0;
//append group count to name
$link .= ' ' . sprintf(__('(%1$s / %2$s)', 'event_espresso'), $item->count(), $item->group_size());
//append reg_code
$link .= '<br>' . sprintf(__('Reg Code: %s', 'event_espresso'), $item->get('REG_code'));
//reg status text for accessibility
$link .= '<br><span class="ee-status-text-small">' . EEH_Template::pretty_status($item->status_ID(), false, 'sentence') . '</span>';
//trash/restore/delete actions
$actions = array();
if ($this->_view != 'trash' && $payment_count === 0 && EE_Registry::instance()->CAP->current_user_can('ee_delete_registration', 'espresso_registrations_trash_registrations', $item->ID())) {
$trash_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array('action' => 'trash_registrations', '_REG_ID' => $item->ID()), REG_ADMIN_URL);
$actions['trash'] = '<a href="' . $trash_lnk_url . '" title="' . esc_attr__('Trash Registration', 'event_espresso') . '">' . __('Trash', 'event_espresso') . '</a>';
} elseif ($this->_view == 'trash') {
// restore registration link
if (EE_Registry::instance()->CAP->current_user_can('ee_delete_registration', 'espresso_registrations_restore_registrations', $item->ID())) {
$restore_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array('action' => 'restore_registrations', '_REG_ID' => $item->ID()), REG_ADMIN_URL);
$actions['restore'] = '<a href="' . $restore_lnk_url . '" title="' . esc_attr__('Restore Registration', 'event_espresso') . '">' . __('Restore', 'event_espresso') . '</a>';
}
if (EE_Registry::instance()->CAP->current_user_can('ee_delete_registration', 'espresso_registrations_ee_delete_registrations', $item->ID())) {
$delete_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array('action' => 'delete_registrations', '_REG_ID' => $item->ID()), REG_ADMIN_URL);
$actions['delete'] = '<a href="' . $delete_lnk_url . '" title="' . esc_attr__('Delete Registration Permanently', 'event_espresso') . '">' . __('Delete', 'event_espresso') . '</a>';
}
}
return sprintf('%1$s %2$s', $link, $this->row_actions($actions));
}
示例11: _message_legend_items
protected function _message_legend_items()
{
$action_css_classes = EEH_MSG_Template::get_message_action_icons();
$action_items = array();
foreach ($action_css_classes as $action_item => $action_details) {
if ($action_item === 'see_notifications_for') {
continue;
}
$action_items[$action_item] = array('class' => $action_details['css_class'], 'desc' => $action_details['label']);
}
/** @type array $status_items status legend setup*/
$status_items = array('sent_status' => array('class' => 'ee-status-legend ee-status-legend-' . EEM_Message::status_sent, 'desc' => EEH_Template::pretty_status(EEM_Message::status_sent, false, 'sentence')), 'idle_status' => array('class' => 'ee-status-legend ee-status-legend-' . EEM_Message::status_idle, 'desc' => EEH_Template::pretty_status(EEM_Message::status_idle, false, 'sentence')), 'failed_status' => array('class' => 'ee-status-legend ee-status-legend-' . EEM_Message::status_failed, 'desc' => EEH_Template::pretty_status(EEM_Message::status_failed, false, 'sentence')), 'resend_status' => array('class' => 'ee-status-legend ee-status-legend-' . EEM_Message::status_resend, 'desc' => EEH_Template::pretty_status(EEM_Message::status_resend, false, 'sentence')), 'incomplete_status' => array('class' => 'ee-status-legend ee-status-legend-' . EEM_Message::status_incomplete, 'desc' => EEH_Template::pretty_status(EEM_Message::status_incomplete, false, 'sentence')), 'retry_status' => array('class' => 'ee-status-legend ee-status-legend-' . EEM_Message::status_retry, 'desc' => EEH_Template::pretty_status(EEM_Message::status_retry, false, 'sentence')));
if (EEM_Message::debug()) {
$status_items['debug_only_status'] = array('class' => 'ee-status-legend ee-status-legend-' . EEM_Message::status_debug_only, 'desc' => EEH_Template::pretty_status(EEM_Message::status_debug_only, false, 'sentence'));
}
return array_merge($action_items, $status_items);
}
示例12: _stop_two
protected function _stop_two()
{
return '<p>' . sprintf(__('Specify whether the default registration status be set to Approved, Not Approved, or Pending Payment.', 'event_espresso'), EEH_Template::pretty_status(EEM_Registration::status_id_not_approved, 'lowercase'), EEH_Template::pretty_status(EEM_Registration::status_id_pending_payment, 'lowercase'), EEH_Template::pretty_status(EEM_Registration::status_id_approved, 'lowercase')) . '</p>';
}
开发者ID:DavidSteinbauer,项目名称:event-espresso-core,代码行数:4,代码来源:Event_Default_Settings_Help_Tour.class.php
示例13: column_TXN_timestamp
/**
* column_TXN_timestamp
* @param \EE_Transaction $item
* @return string
*/
function column_TXN_timestamp(EE_Transaction $item)
{
$view_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array('action' => 'view_transaction', 'TXN_ID' => $item->ID()), TXN_ADMIN_URL);
$txn_date = '<a href="' . $view_lnk_url . '" title="' . esc_attr__('View Transaction Details for TXN #', 'event_espresso') . $item->ID() . '">' . $this->_get_txn_timestamp($item) . '</a>';
//status
$txn_date .= '<br><span class="ee-status-text-small">' . EEH_Template::pretty_status($item->status_ID(), false, 'sentence') . '</span>';
return $txn_date;
}
开发者ID:DavidSteinbauer,项目名称:event-espresso-core,代码行数:13,代码来源:EE_Admin_Transactions_List_Table.class.php
示例14: _event_legend_items
protected function _event_legend_items()
{
$items = array('view_details' => array('class' => 'dashicons dashicons-search', 'desc' => __('View Event', 'event_espresso')), 'edit_event' => array('class' => 'ee-icon ee-icon-calendar-edit', 'desc' => __('Edit Event Details', 'event_espresso')), 'view_attendees' => array('class' => 'dashicons dashicons-groups', 'desc' => __('View Registrations for Event', 'event_espresso')));
$items = apply_filters('FHEE__Events_Admin_Page___event_legend_items__items', $items);
$statuses = array('sold_out_status' => array('class' => 'ee-status-legend ee-status-legend-' . EE_Datetime::sold_out, 'desc' => EEH_Template::pretty_status(EE_Datetime::sold_out, FALSE, 'sentence')), 'active_status' => array('class' => 'ee-status-legend ee-status-legend-' . EE_Datetime::active, 'desc' => EEH_Template::pretty_status(EE_Datetime::active, FALSE, 'sentence')), 'upcoming_status' => array('class' => 'ee-status-legend ee-status-legend-' . EE_Datetime::upcoming, 'desc' => EEH_Template::pretty_status(EE_Datetime::upcoming, FALSE, 'sentence')), 'postponed_status' => array('class' => 'ee-status-legend ee-status-legend-' . EE_Datetime::postponed, 'desc' => EEH_Template::pretty_status(EE_Datetime::postponed, FALSE, 'sentence')), 'cancelled_status' => array('class' => 'ee-status-legend ee-status-legend-' . EE_Datetime::cancelled, 'desc' => EEH_Template::pretty_status(EE_Datetime::cancelled, FALSE, 'sentence')), 'expired_status' => array('class' => 'ee-status-legend ee-status-legend-' . EE_Datetime::expired, 'desc' => EEH_Template::pretty_status(EE_Datetime::expired, FALSE, 'sentence')), 'inactive_status' => array('class' => 'ee-status-legend ee-status-legend-' . EE_Datetime::inactive, 'desc' => EEH_Template::pretty_status(EE_Datetime::inactive, FALSE, 'sentence')));
$statuses = apply_filters('FHEE__Events_Admin_Page__event_legend_items__statuses', $statuses);
return array_merge($items, $statuses);
}
示例15: _change_reg_status
/**
* incoming reg status change from reg details page.
* @return void
*/
protected function _change_reg_status()
{
$success = FALSE;
$this->_req_data['return'] = 'view_registration';
if (!isset($this->_req_data['_reg_status_id'])) {
$result['success'] = FALSE;
$this->_reg_status_change_return('', $result);
}
switch ($this->_req_data['_reg_status_id']) {
case EEH_Template::pretty_status(EEM_Registration::status_id_approved, FALSE, 'sentence'):
$this->approve_registration();
break;
case EEH_Template::pretty_status(EEM_Registration::status_id_pending_payment, FALSE, 'sentence'):
$this->pending_registration();
break;
case EEH_Template::pretty_status(EEM_Registration::status_id_not_approved, FALSE, 'sentence'):
$this->not_approve_registration();
break;
case EEH_Template::pretty_status(EEM_Registration::status_id_declined, FALSE, 'sentence'):
$this->decline_registration();
break;
case EEH_Template::pretty_status(EEM_Registration::status_id_cancelled, FALSE, 'sentence'):
$this->cancel_registration();
break;
default:
$result['success'] = FALSE;
$this->_reg_status_change_return('', $result);
break;
}
}