Esempio n. 1
0
 /**
  * Method description
  *
  * More detailed method description
  * @param    mixed $data
  * @return   void
  */
 function setData(WidgetResultSet $data)
 {
     $this->setFile($data->getDef());
     $this->setFile($data->get('file'));
     $this->setSrc($data->get('src'));
     $this->setWidth($data->get('width'));
     $this->setHeight($data->get('height'));
     $this->setAlt($data->get('alt'));
     $this->setMaxWidth($data->get('max_width'));
     $this->setMaxHeight($data->get('max_height'));
     $this->setWithPreview($data->get('with_preview'));
     parent::setData($data);
 }
Esempio n. 2
0
 /**
  * Method description
  *
  * More detailed method description
  * @param    mixed $data
  * @return   void
  */
 function setData(WidgetResultSet $data)
 {
     $this->setText($data->get('text'));
     $this->setText($data->getDef());
     parent::setData($data);
 }
Esempio n. 3
0
 /**
  * Method description
  *
  * More detailed method description
  * @param    mixed $data
  * @return   void
  */
 function setData(WidgetResultSet $data)
 {
     $this->setText($data->get('text'));
     $this->setValue($data->get('value'));
     $this->setValue($data->getDef());
     $this->setSelected($data->get('selected'));
     parent::setData($data);
 }
Esempio n. 4
0
 /**
  * Method description
  *
  * More detailed method description
  * @param    mixed $data
  * @return   void
  */
 function setData(WidgetResultSet $data)
 {
     $this->setVar($data->get('var'));
     $this->setVar($data->getDef());
     parent::setData($data);
 }
Esempio n. 5
0
 /**
  * Method description
  *
  * More detailed method description
  * @param    mixed $data
  * @return   void
  */
 function setData(WidgetResultSet $data)
 {
     if ($data->getDef() !== null) {
         ResultSetPool::set(t(new ResultSet())->f1("#" . $this->getId() . " wselectoption[value=" . $data->getDef() . "]")->set('selected', 1), ResultSetPool::SYSTEM_PRIORITY);
     }
     $this->setSize($data->get('size'));
     $this->setMultiple($data->get('multiple'));
     parent::setData($data);
 }
Esempio n. 6
0
 /**
  * Method description
  *
  * More detailed method description
  * @param    array $data
  * @return   void
  */
 function setData(WidgetResultSet $data)
 {
     // should be true only once: upon the first setData call
     if ($this->str_memento === -1) {
         $this->str_memento = $this->getText();
     } else {
         $this->str = $this->str_memento;
     }
     $this->setText($data->get('text'));
     // May be not ?
     $this->setText($data->getDef());
 }
Esempio n. 7
0
 /**
  * Method description
  *
  * More detailed method description
  * @param    mixed $data
  * @return   void
  */
 function setData(WidgetResultSet $data)
 {
     $this->setLegend($data->getDef());
     $this->setLegend($data->get('legend'));
     parent::setData($data);
 }
Esempio n. 8
0
 /**
  * Method description
  *
  * More detailed method description
  * @param    mixed $data
  * @return   void
  */
 function setData(WidgetResultSet $data)
 {
     $this->setCount($data->getDef());
     $this->setCount($data->get('count'));
     parent::setData($data);
 }
Esempio n. 9
0
 /**
  * Method description
  *
  * More detailed method description
  * @param    array $data
  * @return   void
  */
 function setData(WidgetResultSet $data)
 {
     $this->setName($data->get('name'));
     $this->setValue($data->getDef());
     $this->setValue($data->get('value'));
     $this->setReadonly($data->get('readonly'));
     $this->setAdditionalID($data->get('additional_id'));
     $this->setDisabled($data->get('disabled'));
     parent::setData($data);
 }
Esempio n. 10
0
 /**
  * Method description
  *
  * More detailed method description
  * @param    mixed $data
  * @return   void
  */
 function setData(WidgetResultSet $data)
 {
     $this->setSrc($data->getDef());
     $this->setSrc($data->get('src'));
     $this->setWidth($data->get('width'));
     $this->setHeight($data->get('height'));
     $this->setBgColor($data->get('bgcolor'));
     parent::setData($data);
 }
Esempio n. 11
0
 /**
  * Method description
  *
  * More detailed method description
  * @param    mixed $data
  * @return   void
  */
 function setData(WidgetResultSet $data)
 {
     $this->setTabTitle($data->getDef());
     $this->setTabTitle($data->get('tab_title'));
     $this->setHref($data->get('href'));
     $this->setSelected($data->get('selected'));
     parent::setData($data);
 }
Esempio n. 12
0
 /**
  * Method description
  *
  * More detailed method description
  * @param    mixed $data
  * @return   void
  */
 function setData(WidgetResultSet $data)
 {
     $this->setHREF($data->getDef());
     $this->setAttribute('rel', $data->get('rel'));
     $this->setAttribute('rev', $data->get('rev'));
     $this->setName($data->get('name'));
     $this->setAttribute('target', $data->get('target'));
     /*if(($text = $data->getDef()) !== null && !$this->items->count())
                $this->items->setText($text);
            if(($text = $data->get('text')) !== null && !$this->items->count())
     		$this->items->setText($text);*/
     $href = $data->get('href');
     if (isset($href)) {
         if (is_array($href)) {
             $page = null;
             if (isset($href['page'])) {
                 $page = $href['page'];
                 unset($href['page']);
             }
             $this->setHREF(Controller::getInstance()->makeURL($page, $href));
         } else {
             $this->setHREF($href);
         }
     }
     parent::setData($data);
 }