This repository was archived by the owner on Mar 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.php
More file actions
executable file
·87 lines (69 loc) · 2.34 KB
/
test.php
File metadata and controls
executable file
·87 lines (69 loc) · 2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
class Education {
public $course = "default course";
public $subject = "default subject";
function __construct($course, $subject) {
$this->course = $course;
$this->subject = $subject;
}
public function getInfo(){
return "Course: " . $this->course . "Subject: " . $this->subject;
}
}
$e = new Education("Hardware -", "Mouse Basics- "); ?>
<?php echo $e->getInfo(); ?>
<?php
class Fish
{
public $common_name;
public $flavor;
public $record_weight;
function __construct($name, $flavor, $record){
$this->common_name = $name;
$this->flavor = $flavor;
$this->record_weight = $record;
}
public function getInfo() {
$output = "The " . $this->common_name . "is an awesome fish. ";
$output .= "It is very" . $this->flavor . " when eaten.- ";
$output .= "Currently the world record" . $this->common_name . "weighed" . $this->record_weight;
return $output;
}
}
class Trout extends Fish{
public $species;
function __construct($name, $flavor, $record,$species) {
$this->species = $species;
parent::__construct($name, $flavor,$record);
}
function getInfo() {
$output = $this->species . " " . $this->common_name . " tastes " . $this->flavor . ". ";
$output .= "The record " . $this->species . " " . $this->common_name . " weighed " . $this->record_weight . ".";
return $output;
}
}
$brook_trout = new Trout("Trout","Delicious","14 pounds 8 ounces","Brook");
?>
<?php echo $brook_trout->getInfo(); ?>
//test html for wiki pages. add content
<?php
//require 'vendor/autoload.php';
//$log = new Monolog\Logger('name');
//$log->pushHandler(new Monolog\Handler\StreamHandler('app.log',Monolog\Logger::WARNING));
// $log->addWarning('Foo two');
//$app = new \Slim\Slim();
//$app->get('/hello/:name', function ($name) {
//echo "Hello, $name";
// });
?>
<?php
require 'vendor/autoload.php';
date_default_timezone_set ( 'America/New_York');
use Monolog\Logger;
use Monolog\Handler\StreamHandler;
$log = new Logger( 'name');
$log->pushHandler(new StreamHandler('app.log', Monolog\Logger::WARNING));
$log->addWarning('Foo Two');
//#36246644728248 - online calendar training schedule. -->
//#33053744815478 - create simple php website. -->
?>