/** * * @param string $id * @param string $caption * @param string $url */ public function __construct($id, $caption, $url) { $this->setUrl($url); $this->setId($id); $this->setMethod('POST'); parent::__construct($id, $caption, $this->_getFunctionName() . '()'); }
/** * * @param string $id * @param string $caption * @param string $url */ public function __construct($id, $caption, $url) { $this->setUrl($url); $this->setId($id); $this->setMethod('GET'); $this->setType('WINDOW'); $this->setWindowHeight(450); $this->setWindowWidth(750); parent::__construct($id, $caption, $this->_getFunctionName() . '()'); }
public function __construct($id = null) { if ($id === null) { $id = 'idButton_' . rand(1, 9999999999); } parent::__construct($id); $this->setAttr('id', $id); }