/** * @param $commentsHTML irgendein HTML an welches das JooseWidget gehängt werden soll * @param $commentTemplate sollte irgendwo auf der Seite erreichbar sein (kann z.b. in $commentsHTML drin sein, egal) */ public function __construct(Tag $commentsHTML, jQueryTemplate $commentTemplate, RequestMeta $pullRequestMeta) { $this->html = $commentsHTML; $this->commentTemplate = $commentTemplate; $this->setPullRequestMeta($pullRequestMeta); parent::__construct('Psc.UI.Comments', array(), array('Psc.CommentsService', 'Psc.UI.Template', 'Psc.Request')); }
public function __construct(ComboBox $comboBox, DropBox $dropBox, $groupLabel) { $this->comboBox = $comboBox; $this->dropBox = $dropBox; $this->label = $groupLabel; parent::__construct('Psc.UI.ComboDropBox'); }
public function __construct(UploadService $uploadService, array $serializedWidgets = array()) { parent::__construct('Psc.UI.LayoutManager'); $this->setSerializedWidgets($serializedWidgets); $this->setUploadService($uploadService); $this->controls = array(); $this->headlines = array(1, 2); }
/** * * Beispiel Sprecher: * * $item->genitiv = "eines Sprechers" (Context: zum Suchen eines Sprechers den Namen eingeben) * $item->fields = 'Name, Identifier oder customField' * $item->label = 'Sprecher' (Sprecher-Suche) * $item->type = 'speaker' entityName */ public function __construct(stdClass $item) { if (!isset($item->fields)) { $item->fields = 'den Namen'; } $this->item = $item; parent::__construct('Psc.UI.AutoComplete'); }
public function __construct($name, EntityMeta $entityMeta, $valuesCollection = array(), $flags = 0, $label = NULL) { $this->assignedValues = $valuesCollection; $this->setEntityMeta($entityMeta); $this->removeEvent = TRUE; $this->flags = $flags; $this->name = $name; parent::__construct('Psc.UI.DropBox'); if (isset($label)) { $this->setLabel($label); } }
public function __construct($label, TranslationContainer $translationContainer, PanelButtons $panelButtons = NULL, DataScreener $dataScreener = NULL, $sortable = false, RequestMeta $formRequestMeta = NULL) { $this->translationContainer = $translationContainer; $this->columns = array(); $this->dataScreener = $dataScreener ?: new DataScreener(); $this->label = $label; $this->setSortable($sortable); $this->setFormRequestMeta($formRequestMeta ?: new RequestMeta('POST', '')); $this->panelButtons = $panelButtons; // getter inject parent::__construct('Psc.UI.GridPanel'); }
public function __construct($name, $avaibleItems, EntityMeta $avaibleItemEntityMeta = NULL, Exporter $exporter = NULL) { $this->name = $name; $this->exporter = $exporter ?: new Exporter(); $this->entityMeta = $avaibleItemEntityMeta; if ($avaibleItems instanceof AutoCompleteRequestMeta) { $this->setAutoCompleteRequestMeta($avaibleItems); } else { $this->setAvaibleItems($avaibleItems); } parent::__construct('Psc.UI.ComboBox'); }
public function __construct($region = 'de') { $this->events = new \Psc\Data\ArrayCollection(); $this->region = $region; parent::__construct('Psc.UI.Calendar'); }
public function __construct($item) { $this->item = $item; parent::__construct('Psc.CMS.FastItem'); }
public function __construct($apiUrl, $uiUrl) { parent::__construct('Psc.UI.UploadService'); $this->setApiUrl($apiUrl); $this->setUiUrl($uiUrl); }