コード例 #1
0
ファイル: WPageTitle.php プロジェクト: point/cassea
 /**
  * Method description
  *
  * More detailed method description
  * @param    mixed $data
  * @return   void
  */
 function setData(WidgetResultSet $data)
 {
     $h = Header::get();
     $h->setTitleSeparator(Language::encodePair($data->get('separator')));
     $h->setTitleStart(Language::encodePair($data->get('start')));
     $h->setTitleEnd(Language::encodePair($data->get('end')));
     if ($data->get('add')) {
         $h->addTitleItem(Language::encodePair($data->get('add')));
     }
     parent::setData($data);
 }
コード例 #2
0
ファイル: WSelectOption.php プロジェクト: point/cassea
 /**
  * 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);
 }
コード例 #3
0
ファイル: WImage.php プロジェクト: point/cassea
 /**
  * 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);
 }
コード例 #4
0
ファイル: WCSS.php プロジェクト: point/cassea
 /**
  * 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);
 }
コード例 #5
0
ファイル: WJSON.php プロジェクト: point/cassea
 /**
  * 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);
 }
コード例 #6
0
ファイル: WContainer.php プロジェクト: point/cassea
 /**
  * Method description
  *
  * More detailed method description
  * @param    array $data
  * @return   void
  */
 function setData(WidgetResultSet $data)
 {
     $this->childSetData($data);
     parent::setData($data);
 }
コード例 #7
0
ファイル: WControl.php プロジェクト: point/cassea
 /**
  * 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);
 }
コード例 #8
0
ファイル: WFlash.php プロジェクト: point/cassea
 /**
  * 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);
 }