4 class Command_Undelete extends Command_AbstractProps
6 public static function opts(\Console_CommandLine $optParser)
8 $cmd = $optParser->addCommand('undelete');
13 'description' => 'URL to restore',
18 public function run(\Console_CommandLine_Result $cmdRes)
20 $url = Validator::url($cmdRes->args['url'], 'url');
25 $req = new Request($this->cfg->host, $this->cfg);
26 $req->req->addPostParameter('action', 'undelete');
27 $req->req->addPostParameter('url', $url);
30 Log::info('Post restored at server');