Login   Register  
PHP Classes
elePHPant
Icontem

File: in/testfile.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Eper Kalman  >  PHP Refactor  >  in/testfile.php  >  Download  
File: in/testfile.php
Role: Auxiliary script
Content type: text/plain
Description: test file
Class: PHP Refactor
Refactor PHP replacing variables and functions
Author: By
Last change:
Date: 2013-11-08 01:10
Size: 432 bytes
 

Contents

Class file image Download
<?php
    
/**
     * Replacer class testfile
     */

    
class classname    {
    
          public static 
$varname 0;
          
          function 
__construct()    {
          
            
$this->varname 1;
            
            
$this->funcname();
          }
          
          function 
funcname()    {
          
            
self::$varname 2;            
          }
          
          function 
__destruct()    {
          
            
self::funcname();
          }
    }
    
    
$class = new classname;
    
    unset(
$class);
?>