예제 #1
0
 /**
  * @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'));
 }
예제 #2
0
 public function __construct(ComboBox $comboBox, DropBox $dropBox, $groupLabel)
 {
     $this->comboBox = $comboBox;
     $this->dropBox = $dropBox;
     $this->label = $groupLabel;
     parent::__construct('Psc.UI.ComboDropBox');
 }
예제 #3
0
 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);
 }
예제 #4
0
 /**
  * 
  * 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');
 }
예제 #5
0
 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);
     }
 }
예제 #6
0
 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');
 }
예제 #7
0
 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');
 }
예제 #8
0
 public function __construct($region = 'de')
 {
     $this->events = new \Psc\Data\ArrayCollection();
     $this->region = $region;
     parent::__construct('Psc.UI.Calendar');
 }
예제 #9
0
 public function __construct($item)
 {
     $this->item = $item;
     parent::__construct('Psc.CMS.FastItem');
 }
예제 #10
0
 public function __construct($apiUrl, $uiUrl)
 {
     parent::__construct('Psc.UI.UploadService');
     $this->setApiUrl($apiUrl);
     $this->setUiUrl($uiUrl);
 }