This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/ mock data | |
$__categories = array(1 => new Category(1, "Mobile & Wireless Computing"), | |
2 => new Category(2, "Functional Programming"), | |
3 => new Category(3, "C / C++"), | |
4 => new Category(4, "<< New Publications >>")); | |
$__books = array(1 => new Book(1, 1, "Hello, Android:\nIntroducing Google's Mobile Development Platform", "Ed Burnette", 19.97), | |
2 => new Book(2, 1, "Android Wireless Application Development", "Shane Conder, Lauren Darcey", 31.22), | |
5 => new Book(5, 1, "Professional Flash Mobile Development", "Richard Wagner", 19.90), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table class="table"> | |
<thead> | |
<tr> | |
<th> | |
Title | |
</th> | |
<th> | |
Author | |
</th> | |
<th> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config { | |
debug = 1 | |
doctype = html5 | |
htmlTag_setParams = none | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Util extends BaseObject { | |
/** | |
* bereinigt den output | |
* | |
* @param string $string der string | |
* @return string | |
*/ | |
public static function escape($string) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (AuthenticationManager::isAuthenticated()) { | |
Util::redirect("index.php"); | |
} | |
$userName = isset($_REQUEST['userName']) ? $_REQUEST['userName'] : null; | |
?> | |
<?php | |
require_once('views/partials/header.php'); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DROP DATABASE fh_scm4_bookshop; | |
CREATE DATABASE fh_scm4_bookshop; | |
USE fh_scm4_bookshop; | |
CREATE TABLE books ( | |
id int(11) NOT NULL AUTO_INCREMENT, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Controller | |
* | |
* class handles POST requests and redirects | |
* the client after processing | |
* - demo of singleton pattern | |
*/ | |
class Controller extends BaseObject { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* User | |
* | |
* | |
* @extends Entity | |
* @package | |
* @subpackage | |
* @author John Doe <jd@fbi.gov> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// mock data | |
$__categories = array(1 => new Category(1, "Mobile & Wireless Computing"), | |
2 => new Category(2, "Functional Programming"), | |
3 => new Category(3, "C / C++"), | |
4 => new Category(4, "<< New Publications >>")); | |
$__books = array(1 => new Book(1, 1, "Hello, Android:\nIntroducing Google's Mobile Development Platform", "Ed Burnette", 19.97), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$nameOnCard = isset($_REQUEST['nameOnCard']) ? $_REQUEST['nameOnCard'] : null; | |
$cardNumber = isset($_REQUEST['cardNumber']) ? $_REQUEST['cardNumber'] : null; | |
require_once('views/partials/header.php'); | |
$cartSize = ShoppingCart::size(); | |
?> | |
OlderNewer