setControl($control); $this->setBrowseAction($browseAction); } /** * Set the Button Control * * @param Control $control Browse Control * @return \FML\Script\Features\PagingButton */ public function setControl(Control $control) { $control->checkId(); if ($control instanceof Scriptable) { $control->setScriptEvents(true); } $this->control = $control; return $this; } /** * Get the Button Control * * @return \FML\Controls\Control */ public function getControl() { return $this->control; } /** * Set the Browse Action * * @param int $browseAction Number of browsed Pages per Click * @return \FML\Script\Features\PagingButton */ public function setBrowseAction($browseAction) { $this->browseAction = (int)$browseAction; return $this; } /** * Get the Browse Action * * @return int */ public function getBrowseAction() { return $this->browseAction; } }