| @@ 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 | } |
|
| @@ 1301-1311 (lines=11) @@ | ||
| 1298 | * Return the link to the admin details for the object. |
|
| 1299 | * @return string |
|
| 1300 | */ |
|
| 1301 | public function get_admin_details_link() { |
|
| 1302 | EE_Registry::instance()->load_helper( 'URL' ); |
|
| 1303 | return EEH_URL::add_query_args_and_nonce( |
|
| 1304 | array( |
|
| 1305 | 'page' => 'espresso_registrations', |
|
| 1306 | 'action' => 'view_registration', |
|
| 1307 | '_REG_ID' => $this->ID() |
|
| 1308 | ), |
|
| 1309 | admin_url( 'admin.php' ) |
|
| 1310 | ); |
|
| 1311 | } |
|
| 1312 | ||
| 1313 | /** |
|
| 1314 | * Returns the link to the editor for the object. Sometimes this is the same as the details. |
|