726 * @param string $name unknown methode name
727 * @param array $args aurgument array
728 */
729 public function __call($name, $args)
730 {
731 static $camel_func;
732 if (!isset($camel_func))
733 $camel_func = create_function('$c', 'return "_" . strtolower($c[1]);');
734 // PHP4 call to constructor?
735 if (strtolower($name) == 'smarty') {
736 throw new RException('Please use parent::__construct() to call parent constuctor');
737 return false;
738 }
739 // see if this is a set/get for a property
740 $first3 = strtolower(substr($name, 0, 3));