/* * grifare.net * Author name : Armagan Tekdoner * Date : May 2015 * File name : oop.txt * File location : https://www.grifare.net/examples/oop/oop.txt ,---.| |o ,---. o ,---. `---.|--- . .,---|.,---. | _.,---.. |__.,---.,---.,---. || | || ||| | | || | | ,---|| |---' `---'`---'`---'`---'``---' `---'` ` ` `---^` `---' */ // CONTENTS OF website.php FILE class Website { // class Website's attributes public $title = "Dummy website using PHP classes"; public $keywords = "Object-oriented PHP"; public $links = array("Home" => "home.php", "Photography" => "photography.php", "Literature" => "literature.php", "Web Development" => "web_development.php", "About" => "about.php" ); public $content; // class Website's operations public function __set($name, $value) { $this->$name = $value; } // page structure in a function public function page() { echo "
"; $this -> Title(); $this -> Keywords(); $this -> stylesheet(); echo ""; $this -> Header(); $this -> DisplayMenu($this->links); echo $this->content; $this -> footer(); echo ""; } public function Title() { echo "