Projekt

Allgemein

Profil

GX-Feature #44342 » SampleExtender.inc.php

Daniel Wu, 23.12.2015 15:50

 
1
<?php
2

    
3
/* --------------------------------------------------------------
4
   SampleExtender.inc.php 2014-01-01 gm
5
   Gambio GmbH
6
   http://www.gambio.de
7
   Copyright (c) 2014 Gambio GmbH
8
   Released under the GNU General Public License (Version 2)
9
   [http://www.gnu.org/licenses/gpl-2.0.html]
10
   --------------------------------------------------------------
11
*/
12

    
13
class SampleExtender extends SampleExtender_parent
14
{
15
	public function proceed()
16
	{
17
		$this->v_output_buffer['below_withdrawal_heading'] = 'SampleExtender';
18
		$this->v_output_buffer['below_withdrawal']         = '<div style="color: #0000FF">'
19
		                                                     . $this->getContent()
20
		                                                     . '</div>';
21
		
22
		echo 'This will appear below the order information box.';
23
		
24
		//The following two rows need to be at the end of every overload of the OrderExtender
25
		$this->addContent();
26
		parent::proceed();
27
	}
28
	
29
	
30
	protected function getContent()
31
	{
32
		return 'This could be your content!';
33
	}
34
}
    (1-1/1)