コード例 #1
0
ファイル: asus.php プロジェクト: naisly/WodenS
<?php

/**
 * Created by PhpStorm.
 * User: Home
 * Date: 20.11.2015
 * Time: 20:20
 */
include_once $_SERVER['DOCUMENT_ROOT'] . '/Controllers/ShopController.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/Model/DefaultModel.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/View/ShopView.php';
//initiate the triad
$model = new DefaultModel();
//It is important that the controller and the view share the model
$controller = new ShopController($model);
$view = new ShopView($model);
$controller->actionGetData('Asus', 'Notebooks', 'Asus');
$view->DoctypeView('Buy Asus Laptop');
$view->headerView();
$view->GetUI('laptop', 'notebooks');
コード例 #2
0
ファイル: index.php プロジェクト: naisly/WodenS
<?php

/**
 * Created by PhpStorm.
 * User: Home
 * Date: 22.11.2015
 * Time: 0:12
 */
include_once $_SERVER['DOCUMENT_ROOT'] . '/Controllers/ShopController.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/Model/DefaultModel.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/View/ShopView.php';
//initiate the triad
$model = new DefaultModel();
//It is important that the controller and the view share the model
$controller = new ShopController($model);
$view = new ShopView($model);
$controller->actionGetData('Gadgets', 'Gadgets', 'All');
$view->DoctypeView('Buy Device');
$view->headerView();
$view->GetUI('device', 'gadgets');
コード例 #3
0
ファイル: samsung.php プロジェクト: naisly/WodenS
<?php

/**
 * Created by PhpStorm.
 * User: Home
 * Date: 22.11.2015
 * Time: 1:04
 */
include_once $_SERVER['DOCUMENT_ROOT'] . '/Controllers/ShopController.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/Model/DefaultModel.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/View/ShopView.php';
//initiate the triad
$model = new DefaultModel();
//It is important that the controller and the view share the model
$controller = new ShopController($model);
$view = new ShopView($model);
$controller->actionGetData('Samsung', 'Gadgets', 'Samsung');
$view->DoctypeView('Buy Galaxy Tab');
$view->headerView();
$view->GetUI('device', 'gadgets');
コード例 #4
0
ファイル: index.php プロジェクト: naisly/WodenS
<?php

/**
 * Created by PhpStorm.
 * User: Home
 * Date: 28.10.2015
 * Time: 18:57
 */
include_once $_SERVER['DOCUMENT_ROOT'] . '/Controllers/ShopController.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/Model/DefaultModel.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/View/ShopView.php';
//initiate the triad
$model = new DefaultModel();
//It is important that the controller and the view share the model
$controller = new ShopController($model);
$view = new ShopView($model);
$controller->actionGetData('Phones', 'Phones', 'All');
$view->DoctypeView('Buy Phone');
$view->headerView();
$view->GetUI('phone', 'phones');
コード例 #5
0
ファイル: AppleTV.php プロジェクト: naisly/WodenS
<?php

/**
 * Created by PhpStorm.
 * User: Home
 * Date: 21.11.2015
 * Time: 1:35
 */
include_once $_SERVER['DOCUMENT_ROOT'] . '/Controllers/ShopController.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/Model/DefaultModel.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/View/ShopView.php';
//initiate the triad
$model = new DefaultModel();
//It is important that the controller and the view share the model
$controller = new ShopController($model);
$view = new ShopView($model);
$controller->actionGetData('AppleTV', 'Television', 'AppleTV');
$view->DoctypeView('Buy Apple TV');
$view->headerView();
$view->GetUI('tv', 'television');
コード例 #6
0
ファイル: IMac.php プロジェクト: naisly/WodenS
<?php

/**
 * Created by PhpStorm.
 * User: Home
 * Date: 21.11.2015
 * Time: 1:32
 */
include_once $_SERVER['DOCUMENT_ROOT'] . '/Controllers/ShopController.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/Model/DefaultModel.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/View/ShopView.php';
//initiate the triad
$model = new DefaultModel();
//It is important that the controller and the view share the model
$controller = new ShopController($model);
$view = new ShopView($model);
$controller->actionGetData('IMac', 'Television', 'IMac');
$view->DoctypeView('Buy IMac');
$view->headerView();
$view->GetUI('tv', 'television');
コード例 #7
0
ファイル: ShowTop.php プロジェクト: naisly/WodenS
<?php

/**
 * Created by PhpStorm.
 * User: Home
 * Date: 21.11.2015
 * Time: 2:06
 */
include_once $_SERVER['DOCUMENT_ROOT'] . '/Controllers/ShopController.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/Model/DefaultModel.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/View/ShopView.php';
//initiate the triad
$model = new DefaultModel();
//It is important that the controller and the view share the model
$controller = new ShopController($model);
$view = new ShopView($model);
$controller->actionGetData('ShowTop', 'Television', 'ShowTop');
$view->DoctypeView('Buy ShowTop');
$view->headerView();
$view->GetUI('tv', 'television');