PHP Classes

File: vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/EvalObjectFactoryUnitTest.inc

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/EvalObjectFactoryUnitTest.inc   Download  
File: vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/EvalObjectFactoryUnitTest.inc
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Download Installed Plugin
Download a WordPress plugin as a ZIP archive
Author: By
Last change:
Date: 2 days ago
Size: 394 bytes
 

Contents

Class file image Download
<?php function getWidget($type) { eval('$obj = new '.$type.'();'); return $obj; }//end getWidget() function getWidget2($type) { $string = '$obj = new '.$type.'();'; eval($string); eval('$string = "";'); return $obj; }//end getWidget2() function getWidget3($type) { $string = '$obj = new '; eval($string.$type.'();'); return $obj; }//end getWidget3() ?>