/ Published in: PHP

A simple class layout template that I always use to get me started.
Nothing fancy. Just your basic structure.
Nothing fancy. Just your basic structure.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php //////////////////////////////////// //Class template. //Class description goes here. //////////////////////////////////// //Class name. class template { //Variables. public $variable; private $variable; protected $variable; //////////////////////////// //Constructor. //////////////////////////// public function __construct() { } //////////////////////////// //Public class functions. //////////////////////////// public function func_public() { } //////////////////////////// //Private class functions. //////////////////////////// private function func_private() { } //////////////////////////// //Protected class functions. //////////////////////////// protected function func_protected() { } //////////////////////////// //Destructor. //////////////////////////// public function __destruct() { } } //////////////////////////////////// ?>
Comments
