php 通用类的完整代码

前端之家收集整理的这篇文章主要介绍了php 通用类的完整代码前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
讲述一下一个PHP通用类代码 ,感兴趣的小伙伴,下面一起跟随编程之家 jb51.cc的小编来看看吧。
经测试代码如下:

<?PHP
/**
 * 通用类
 *
 * @param 
 * @arrange (512.笔记) jb51.cc
 **/
require_once('SuperClass.PHP');
 
/**
 * This is a class
 * 
 * @author Your Name
 * @copyright Your Copyright info
 */
class ClassName extends SuperClass
{
 // PUBLIC PROPERTIES --------------------------------------------------------------
 
 /**
  * This is a public variable
  * 
  * @author Your Name
  */
 public $publicVar = 'a public variable';
 
 // PRIVATE PROPERTIES -------------------------------------------------------------
 
 /**
  * This is a private variable
  * 
  * @author Your Name
  */
 private $privateVar = array();
 
 // MAGIC METHODS ------------------------------------------------------------------
 
 /**
  * The constructor
  * 
  * @author Your Name
  */
 public function __construct ()
 {
  parent::__construct();
 }
 
 /**
  * The destructor
  * 
  * @author Your Name
  */
 public function __destruct ()
 {
  parent::__destruct();
 }
 
 // PUBLIC METHODS -----------------------------------------------------------------
 
 /**
  * This is a public method
  * 
  * @author Your Name
  */
 public function publicMethod ()
 {
  // do something
 }
 
 // PRIVATE METHODS ----------------------------------------------------------------
 
 /**
  * This is a private method
  * 
  * @author Your Name
  */
 private function privateMethod ()
 {
  // do something
 }
}
 


/***   代码来自编程之家 jb51.cc(jb51.cc)   ***/
原文链接:https://www.f2er.com/php/528837.html

猜你在找的PHP相关文章