protected function createListWidget() { $oListWidget = new ListWidgetModule(); $this->oDelegateProxy = new CriteriaListWidgetDelegate($this, "User", 'full_name'); $oListWidget->setDelegate($this->oDelegateProxy); $oListWidget->setSetting('row_model_drag_and_drop_identifier', 'id'); $this->oDelegateProxy->setUserKind(CriteriaListWidgetDelegate::SELECT_ALL); $this->oUserKindFilter = WidgetModule::getWidget('user_kind_input', null, $this->oDelegateProxy->getUserKind()); return $oListWidget; }
protected function createListWidget() { $oListWidget = new ListWidgetModule(); $this->oDelegateProxy = new CriteriaListWidgetDelegate($this, "JournalEntry", "publish_at", "desc"); $oListWidget->setDelegate($this->oDelegateProxy); $oListWidget->setSetting('row_model_drag_and_drop_identifier', 'id'); $this->oTagFilter = WidgetModule::getWidget('tag_input', null, true); $this->oTagFilter->setSetting('model_name', 'JournalEntry'); return $oListWidget; }
protected function createListWidget() { $oListWidget = new ListWidgetModule(); $this->oDelegateProxy = new CriteriaListWidgetDelegate($this, "Link", "name_truncated", "asc"); $oListWidget->setDelegate($this->oDelegateProxy); $oListWidget->setSetting('row_model_drag_and_drop_identifier', 'id'); if (!LanguageInputWidgetModule::isMonolingual()) { $this->oLanguageFilter = WidgetModule::getWidget('language_input', null, true); } $this->oTagFilter = WidgetModule::getWidget('tag_input', null, true); $this->oTagFilter->setSetting('model_name', 'Link'); return $oListWidget; }
public static function testWidget() { $oResult = new ListWidgetModule(null, new TestListWidgetDelegate(4, 300)); $oResult->setSetting('page_size', 12); return $oResult; }