@@ 582-592 (lines=11) @@ | ||
579 | * Returns the link to the editor for the object. Sometimes this is the same as the details. |
|
580 | * @return string |
|
581 | */ |
|
582 | public function get_admin_edit_link() { |
|
583 | EE_Registry::instance()->load_helper( 'URL' ); |
|
584 | return EEH_URL::add_query_args_and_nonce( |
|
585 | array( |
|
586 | 'page' => 'espresso_registrations', |
|
587 | 'action' => 'edit_attendee', |
|
588 | 'post' => $this->ID() |
|
589 | ), |
|
590 | admin_url( 'admin.php' ) |
|
591 | ); |
|
592 | } |
|
593 | ||
594 | /** |
|
595 | * Returns the link to a settings page for the object. |
|
@@ 606-615 (lines=10) @@ | ||
603 | * Returns the link to the "overview" for the object (typically the "list table" view). |
|
604 | * @return string |
|
605 | */ |
|
606 | public function get_admin_overview_link() { |
|
607 | EE_Registry::instance()->load_helper( 'URL' ); |
|
608 | return EEH_URL::add_query_args_and_nonce( |
|
609 | array( |
|
610 | 'page' => 'espresso_registrations', |
|
611 | 'action' => 'contact_list' |
|
612 | ), |
|
613 | admin_url( 'admin.php' ) |
|
614 | ); |
|
615 | } |
|
616 | ||
617 | ||
618 | } |
@@ 823-832 (lines=10) @@ | ||
820 | * Returns the link to a settings page for the object. |
|
821 | * @return string |
|
822 | */ |
|
823 | public function get_admin_settings_link() { |
|
824 | EE_Registry::instance()->load_helper( 'URL' ); |
|
825 | return EEH_URL::add_query_args_and_nonce( |
|
826 | array( |
|
827 | 'page' => 'espresso_messages', |
|
828 | 'action' => 'settings', |
|
829 | ), |
|
830 | admin_url( 'admin.php' ) |
|
831 | ); |
|
832 | } |
|
833 | ||
834 | /** |
|
835 | * Returns the link to the "overview" for the object (typically the "list table" view). |
|
@@ 838-847 (lines=10) @@ | ||
835 | * Returns the link to the "overview" for the object (typically the "list table" view). |
|
836 | * @return string |
|
837 | */ |
|
838 | public function get_admin_overview_link() { |
|
839 | EE_Registry::instance()->load_helper( 'URL' ); |
|
840 | return EEH_URL::add_query_args_and_nonce( |
|
841 | array( |
|
842 | 'page' => 'espresso_messages', |
|
843 | 'action' => 'default', |
|
844 | ), |
|
845 | admin_url( 'admin.php' ) |
|
846 | ); |
|
847 | } |
|
848 | ||
849 | ||
850 | } |
@@ 1256-1266 (lines=11) @@ | ||
1253 | * Return the link to the admin details for the object. |
|
1254 | * @return string |
|
1255 | */ |
|
1256 | public function get_admin_details_link() { |
|
1257 | EE_Registry::instance()->load_helper( 'URL' ); |
|
1258 | return EEH_URL::add_query_args_and_nonce( |
|
1259 | array( |
|
1260 | 'page' => 'espresso_registrations', |
|
1261 | 'action' => 'view_registration', |
|
1262 | '_REG_ID' => $this->ID() |
|
1263 | ), |
|
1264 | admin_url( 'admin.php' ) |
|
1265 | ); |
|
1266 | } |
|
1267 | ||
1268 | /** |
|
1269 | * Returns the link to the editor for the object. Sometimes this is the same as the details. |