public function run()
	{
		if(empty($this->options['id'])) {
			$this->options['id'] = $this->id;
		}
		
		if($this->encodeLabel) {
			$this->label = Html::encode($this->label);
		}
		
		$perPage = !empty($_GET[$this->pageSizeParam]) ? $_GET[$this->pageSizeParam] : $this->defaultPageSize;
		
		$listHtml = Html::dropDownList($this->pageSizeParam, $perPage, $this->sizes, $this->options);
		$labelHtml = Html::label($this->label, $this->options['id'], $this->labelOptions);
		
		$output = str_replace(['{list}', '{label}'], [$listHtml, $labelHtml], $this->template);
		
		return $output;
	}