示例#1
0
 function __construct($title, $message, $verifier, $desktopMode = false)
 {
     $this->verifier = $verifier;
     $this->title = $title;
     $this->desktopMode = $desktopMode;
     parent::__construct($title, $message);
 }
示例#2
0
 function __construct($message, $code, $output = 'php://output', $indent = null)
 {
     parent::__construct(null, $message, $output, $indent);
     $this->code = $code;
     $this->message = $message;
     $this->minimal = StatusNet::isApi();
     // XXX: hack alert: usually we aren't going to
     // call this page directly, but because it's
     // an action it needs an args array anyway
     $this->prepare($_REQUEST);
 }