*\r
* @license http://nucleuscms.org/license.txt GNU General Public License\r
* @copyright Copyright (C) 2002-2009 The Nucleus Group\r
- * @version $Id: SKIN.php 1780 2012-04-21 10:41:52Z sakamocchi $\r
+ * @version $Id: SKIN.php 1779 2012-04-21 10:04:33Z sakamocchi $\r
*/\r
\r
if ( !function_exists('requestVar') ) \r
*/\r
public function getAllowedActionsForType($type)\r
{\r
- /**\r
- * NOTE: static method with variable class name is supported since PHP 5.3\r
- * So now we utilize eval function.\r
- */\r
- eval("\$defined_actions = {$this->action_class}::getDefinedActions('{$type}');");\r
- return $defined_actions;\r
+ return call_user_func(array($this->action_class, 'getDefinedActions'), $type);\r
}\r
\r
/**\r
*/\r
public function getFriendlyNames()\r
{\r
- /**\r
- * NOTE: static method with variable class name is supported since PHP 5.3\r
- * So now we utilize eval function.\r
- */\r
- eval("\$friendly_names = {$this->action_class}::getSkinTypeFriendlyNames();");\r
- return $friendly_names;\r
+ return call_user_func(array($this->action_class, 'getSkinTypeFriendlyNames'));\r
}\r
}\r