public function __construct(Am_Request $request, Am_View $view) { parent::__construct($request, $view); $a = new Am_Grid_Action_Callback('_refresh', ___('Refresh 3-rd party lists'), array($this, 'doRefreshLists'), Am_Grid_Action_Abstract::NORECORD); $this->actionAdd($a); $this->actionAdd(new Am_Grid_Action_NewsletterSubscribeAll()); $this->actionGet('delete')->setIsAvailableCallback(array($this, 'isImported')); $this->refreshLists(false); // refresh if expired foreach ($this->getActions() as $action) { $action->setTarget('_top'); } $this->setFilter(new Am_Grid_Filter_Content_Common()); }
function __construct(Am_Request $request, Am_View $view) { parent::__construct($request, $view); $this->addCallback(self::CB_VALUES_FROM_FORM, array($this, '_valuesFromForm')); $this->setFilter(new Am_Grid_Filter_Content_Common()); }
public function __construct(Am_Request $request, Am_View $view) { parent::__construct($request, $view); $this->addCallback(self::CB_AFTER_DELETE, array($this, 'afterDelete')); }