Return to Snippet

Revision: 17166
at August 25, 2009 20:16 by StrawMan


Updated Code
<?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() {
	}	
}
////////////////////////////////////
?>

Revision: 17165
at August 25, 2009 20:15 by StrawMan


Initial Code
<?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() {
		}	
}
////////////////////////////////////
?>

Initial URL

                                

Initial Description
A simple class layout template that I always use to get me started.
Nothing fancy. Just your basic structure.

Initial Title
Simple class layout template.

Initial Tags
class, php, layout

Initial Language
PHP