public function __construct($id, $title, $callback) { $this->id = $id; $this->title = $title; $this->callback = $callback; parent::__construct(); }
public function __construct($archive = true) { $this->archive = (bool) $archive; parent::__construct($archive ? "product-archive" : "product-unarchive", $archive ? ___("Delete") : ___("Restore")); }
public function __construct($id = null, $title = null) { $this->title = ___("Delete"); parent::__construct($id, $title); }
public function __construct($enable = true) { $this->enable = (bool) $enable; parent::__construct($enable ? "state-enable" : "state-disable", $enable ? ___("Enable") : ___("Disable")); }
public function __construct($removeGroup = false) { $this->remove = (bool) $removeGroup; parent::__construct(!$removeGroup ? "content-assign-category" : "content-remove-category", !$removeGroup ? ___("Assign Category") : ___("Remove Category")); }
public function __construct($removeCategory = false) { $this->remove = (bool) $removeCategory; parent::__construct(!$removeCategory ? "product-assign-category" : "product-remove-category", !$removeCategory ? ___("Assign Category") : ___("Remove Category")); }
public function __construct() { parent::__construct('mass_subscribe', ___('Mass Subscribe')); $this->setTarget('_top'); }