Example #1
0
 /**
  * Allows for legacy methods to be catered for
  *
  * @param string $method
  * @param array $args
  * @return mixed
  */
 public function __call($method, $args)
 {
     $transport = new Varien_Object(array());
     Mage::dispatchEvent('wordpress_controller_method_invalid', array('method' => $method, 'args' => $args, 'object' => $this, 'transport' => $transport));
     if (!$transport->hasReturnValue()) {
         throw new Varien_Exception("Invalid method " . get_class($this) . "::" . $method . "(" . print_r($args, 1) . ")");
     }
     return $transport->getReturnValue();
 }