示例#1
0
 /**
  * Modifies the user agent
  * 
  * @param Brawler_Plugin_Notification $notification
  * @return Brawler_Plugin_Notification
  */
 public function _initCurl(Brawler_Plugin_Notification $notification)
 {
     if ($notification instanceof Brawler_Plugin_Notification_Post) {
         if (Brawler_Console::getArgument('a')) {
             curl_setopt($notification->getReturn(), CURLOPT_USERAGENT, Brawler_Console::getArgument('a')->getValue());
         }
     }
 }
示例#2
0
 /**
  * Ctor Ð return value added
  * 
  * @param String $method
  * @param Array $arguments
  * @param Mixed $return
  * @return void
  */
 public function __construct($method, $arguments, $return)
 {
     parent::__construct($method, $arguments);
     $this->_return = $return;
 }
示例#3
0
 /**
  * Reveives the notification
  * 
  * @param Brawler_Plugin_Notification $notification
  * @return Brawler_Plugin_Notification
  */
 public function notify(Brawler_Plugin_Notification $notification)
 {
     if (method_exists($this, $notification->getMethod())) {
         call_user_func(array($this, $notification->getMethod()), $notification);
     }
 }