34 lines
858 B
PHP
34 lines
858 B
PHP
<?php
|
|
/***************************************************************************
|
|
* For license information see doc/license.txt
|
|
*
|
|
* Unicode Reminder メモ
|
|
***************************************************************************/
|
|
|
|
class ChildWp_AddPresenter extends ChildWp_Presenter
|
|
{
|
|
public function __construct($request = false, $translator = false)
|
|
{
|
|
parent::__construct($request, $translator);
|
|
}
|
|
|
|
protected function getTitle()
|
|
{
|
|
global $translate;
|
|
return $translate->t('Add waypoint', '', '', 0);
|
|
}
|
|
|
|
protected function getSubmitButton()
|
|
{
|
|
global $translate;
|
|
return $translate->t('Add new', '', '', 0);
|
|
}
|
|
|
|
protected function onDoSubmit($coordinate, $description)
|
|
{
|
|
$this->childWpHandler->add($this->cacheId, $this->getType(), $coordinate->latitude(), $coordinate->longitude(), $description);
|
|
}
|
|
}
|
|
|
|
?>
|