git.cweiske.de
/
shpub.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Explain that "server" command takes a parameter.
[shpub.git]
/
src
/
shpub
/
Command
/
Rsvp.php
diff --git
a/src/shpub/Command/Rsvp.php
b/src/shpub/Command/Rsvp.php
index 69602d93ad3fd4affafbe09fdbf0140f8e5c0da0..edf06cc8d91fe2ead34137502363f07a76d14a7e 100644
(file)
--- a/
src/shpub/Command/Rsvp.php
+++ b/
src/shpub/Command/Rsvp.php
@@
-3,12
+3,18
@@
namespace shpub;
/**
* Repondez s'il vous plait - an answer to an invitation
/**
* Repondez s'il vous plait - an answer to an invitation
+ *
+ * @author Christian Weiske <cweiske@cweiske.de>
+ * @license http://www.gnu.org/licenses/agpl.html GNU AGPL v3
+ * @link http://cweiske.de/shpub.htm
*/
class Command_Rsvp extends Command_AbstractProps
{
public static function opts(\Console_CommandLine $optParser)
{
$cmd = $optParser->addCommand('rsvp');
*/
class Command_Rsvp extends Command_AbstractProps
{
public static function opts(\Console_CommandLine $optParser)
{
$cmd = $optParser->addCommand('rsvp');
+ $cmd->description = 'Create a reservation';
+ static::addOptHtml($cmd);
static::optsGeneric($cmd);
$cmd->addArgument(
'url',
static::optsGeneric($cmd);
$cmd->addArgument(
'url',
@@
-47,11
+53,11
@@
class Command_Rsvp extends Command_AbstractProps
}
$req = new Request($this->cfg->host, $this->cfg);
}
$req = new Request($this->cfg->host, $this->cfg);
- $req->setType('
h', '
entry');
+ $req->setType('entry');
$req->addProperty('in-reply-to', $url);
$req->addProperty('rsvp', $rsvp);
$req->addProperty('in-reply-to', $url);
$req->addProperty('rsvp', $rsvp);
- if ($cmdRes->args['text']
!= ''
) {
- $req->add
Property('content', $cmdRes->args['text
']);
+ if ($cmdRes->args['text']) {
+ $req->add
Content($cmdRes->args['text'], $cmdRes->options['html
']);
}
$this->handleGenericOptions($cmdRes, $req);
}
$this->handleGenericOptions($cmdRes, $req);