PHP Classes
elePHPant
Icontem

File: example.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  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example script
Class: PHP Refactor
Refactor PHP replacing variables and functions
Author: By
Last change:
Date: 1 year ago
Size: 502 bytes
 

Contents

Class file image Download
<?php
      
/*
        * Replacer class usage example
        */
       
       
error_reporting(E_ALL);
      
        include(
'replacer.class.php');
      
   
$repl = new Replacer();
   
   
$repl -> inputDirectory('in');
   
   
$repl -> outputDirectory('out');
   
   
$repl -> replaceVariable(array('varname'=>'changed_varname'));
   
   
$repl -> replaceFunction('funcname', 'changed_funcname');
   
   
$repl -> replaceClass('classname', 'changed_classname');
   
   
$repl->findReplace();
   
    echo
$repl->log();
      
?>