/** * put your comment there... * * @param mixed $extensionData * @return CJTProUpdateCheck */ public function __construct() { # Get Services API instance $this->servicesAPI =& CJTServicesClient::getInstance(); # Obtain module name from $this class name with CJT prefix removed $this->moduleName = strtolower(substr(get_class($this), 3)); }
/** * put your comment there... * * @return CJTServicesClient */ public static function &getInstance() { # Maintain only ONE instance if (!self::$instance) { self::$instance = new CJTServicesClient(); } return self::$instance; }