*
* @see UnsubscribeForm
*/
-
class SearchSubForm extends Form
{
/**
* Name of search to subscribe to
*/
-
var $search = '';
/**
* @param HTMLOutputter $out output channel
* @param string $search name of search to subscribe to
*/
-
function __construct($out=null, $search=null)
{
parent::__construct($out);
*
* @return int ID of the form
*/
-
function id()
{
return 'search-subscribe-' . $this->search;
*
* @return string of the form class
*/
-
function formClass()
{
// class to match existing styles...
*
* @return string URL of the action
*/
-
function action()
{
return common_local_url('searchsub', array('search' => $this->search));
}
-
/**
* Legend of the Form
*
*/
function formLegend()
{
+ // TRANS: Form legend.
$this->out->element('legend', null, _m('Subscribe to this search'));
}
*
* @return void
*/
-
function formData()
{
$this->out->hidden('subscribeto-' . $this->search,
*
* @return void
*/
-
function formActions()
{
- $this->out->submit('submit', _('Subscribe'), 'submit', null, _m('Subscribe to this search'));
+ $this->out->submit('submit',
+ // TRANS: Button text for subscribing to a search.
+ _m('BUTTON','Subscribe'),
+ 'submit',
+ null,
+ // TRANS: Button title for subscribing to a search.
+ _m('Subscribe to this search.'));
}
}