@@ 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 | } |
@@ 1240-1249 (lines=10) @@ | ||
1237 | * @see EEI_Admin_Links for comments |
|
1238 | * @return string |
|
1239 | */ |
|
1240 | public function get_admin_edit_link() { |
|
1241 | EE_Registry::instance()->load_helper('URL'); |
|
1242 | return EEH_URL::add_query_args_and_nonce( array( |
|
1243 | 'page' => 'espresso_events', |
|
1244 | 'action' => 'edit', |
|
1245 | 'post' => $this->ID() |
|
1246 | ), |
|
1247 | admin_url( 'admin.php' ) |
|
1248 | ); |
|
1249 | } |
|
1250 | ||
1251 | ||
1252 | ||
@@ 1258-1266 (lines=9) @@ | ||
1255 | * @see EEI_Admin_Links for comments |
|
1256 | * @return string |
|
1257 | */ |
|
1258 | public function get_admin_settings_link() { |
|
1259 | EE_Registry::instance()->load_helper('URL'); |
|
1260 | return EEH_URL::add_query_args_and_nonce( array( |
|
1261 | 'page' => 'espresso_events', |
|
1262 | 'action' => 'default_event_settings' |
|
1263 | ), |
|
1264 | admin_url( 'admin.php' ) |
|
1265 | ); |
|
1266 | } |
|
1267 | ||
1268 | ||
1269 | ||
@@ 1277-1286 (lines=10) @@ | ||
1274 | * @see EEI_Admin_Links for comments |
|
1275 | * @return string |
|
1276 | */ |
|
1277 | public function get_admin_overview_link() { |
|
1278 | ||
1279 | EE_Registry::instance()->load_helper('URL'); |
|
1280 | return EEH_URL::add_query_args_and_nonce( array( |
|
1281 | 'page' => 'espresso_events', |
|
1282 | 'action' => 'default' |
|
1283 | ), |
|
1284 | admin_url( 'admin.php' ) |
|
1285 | ); |
|
1286 | } |
|
1287 | ||
1288 | } |
|
1289 |
@@ 1245-1255 (lines=11) @@ | ||
1242 | * Return the link to the admin details for the object. |
|
1243 | * @return string |
|
1244 | */ |
|
1245 | public function get_admin_details_link() { |
|
1246 | EE_Registry::instance()->load_helper( 'URL' ); |
|
1247 | return EEH_URL::add_query_args_and_nonce( |
|
1248 | array( |
|
1249 | 'page' => 'espresso_registrations', |
|
1250 | 'action' => 'view_registration', |
|
1251 | '_REG_ID' => $this->ID() |
|
1252 | ), |
|
1253 | admin_url( 'admin.php' ) |
|
1254 | ); |
|
1255 | } |
|
1256 | ||
1257 | /** |
|
1258 | * Returns the link to the editor for the object. Sometimes this is the same as the details. |
@@ 744-753 (lines=10) @@ | ||
741 | * Returns the link to a settings page for the object. |
|
742 | * @return string |
|
743 | */ |
|
744 | public function get_admin_settings_link() { |
|
745 | EE_Registry::instance()->load_helper( 'URL' ); |
|
746 | return EEH_URL::add_query_args_and_nonce( |
|
747 | array( |
|
748 | 'page' => 'espresso_messages', |
|
749 | 'action' => 'settings', |
|
750 | ), |
|
751 | admin_url( 'admin.php' ) |
|
752 | ); |
|
753 | } |
|
754 | ||
755 | /** |
|
756 | * Returns the link to the "overview" for the object (typically the "list table" view). |
|
@@ 759-768 (lines=10) @@ | ||
756 | * Returns the link to the "overview" for the object (typically the "list table" view). |
|
757 | * @return string |
|
758 | */ |
|
759 | public function get_admin_overview_link() { |
|
760 | EE_Registry::instance()->load_helper( 'URL' ); |
|
761 | return EEH_URL::add_query_args_and_nonce( |
|
762 | array( |
|
763 | 'page' => 'espresso_messages', |
|
764 | 'action' => 'default', |
|
765 | ), |
|
766 | admin_url( 'admin.php' ) |
|
767 | ); |
|
768 | } |
|
769 | ||
770 | ||
771 | } |