All pastes #163706 Raw Edit

Something

public php v1 · immutable
·published 2006-09-07 20:13 UTC
rendered paste body
<?phperror_reporting(E_ALL);/** * Die Klasse SearchView ist fr die Ansicht der Suchmaske zus&#65533;dig. * * @author Christoph  */if (0 > version_compare(PHP_VERSION, '5')) {    die('This file was generated for PHP 5');}/** * In dieser Klasse werden die Modelle Search und Product abgebildet, sie greift * n&#65533;ig auf die Data Access Schicht zu. * * @author Christoph  */require_once('class.SearchService.php');/** * Die abstrakte Klasse View ist die Elternklasse aller Views (OrderView, * SearchView, BrowseView, OrderStatusView) in der View Schicht. Sie stellt die * Methode display():void zur Verfgung. Zur Erstellung eigener Views mssen * Klassen erstellt werden, welche von der Klasse View erben und die abstrakte * umsetzten. * * @author Christoph  */require_once('class.View.php');/* user defined includes */// section .:0000000000000FD2-includes begin// section .:0000000000000FD2-includes end/* user defined constants */// section .:0000000000000FD2-constants begin// section .:0000000000000FD2-constants end/** * Die Klasse SearchView ist fr die Ansicht der Suchmaske zus&#65533;dig. * * @access public * @author Christoph  */class SearchView extends View{    // --- ATTRIBUTES ---    /**     * Attribut der Klasse SearchView     *     * @access private     * @var array     */    private $m_request = array(null);    public function __constuct($request)    {        // section .:0000000000000FD1 begin                $this->m_request = $request;        // section .:0000000000000FD1 end    }    // --- OPERATIONS ---    /**     * Gibt das Suchergebnis am Bildschirm aus     *     * @access public     * @author Christoph      * @return void     */    public function display()    {        		// section .:0000000000000FCD begin	        print_r($this);		// Output: SearchView Object ( [m_request:private] => Array ( [0] => ) )  		if (array_key_exists('description', $this->m_request))			$desc = $this->m_request['description'];		if (array_key_exists('price', $this->m_request)){			$price = $this->m_request['price'];		}else{		 if(array_key_exists('category', $this->m_request))			$category = $this->m_request['category'];		}		echo $desc;		        // section .:0000000000000FCD end    }    /**     * Erzeugt einen Konstruktor, der die Anfrage als &#65533;ergabeparameter bekommt     *     * @access public     * @author Christoph      * @param array     * @return void     */} /* end of class SearchView */?>