Code Duplication    Length = 9-11 lines in 4 locations

core/db_classes/EE_Attendee.class.php 2 locations

@@ 582-591 (lines=10) @@
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
	/**
@@ 606-614 (lines=9) @@
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

core/db_classes/EE_Message.class.php 1 location

@@ 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).

core/db_classes/EE_Registration.class.php 1 location

@@ 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.