예제 #1
0
 /**
  * @param array|ArrayInterface $data The search widget data.
  * @return TableWidget Chainable
  */
 public function setData($data)
 {
     $objData = $this->dataFromObject();
     $data = array_merge_recursive($objData, $data);
     parent::setData($data);
     return $this;
 }
 /**
  * @param array|ArrayInterface $data The widget AND property data.
  * @return FormProperty Chainable
  */
 public function setData($data)
 {
     parent::setData($data);
     // Keep the data in copy, this will be passed to the property and/or input later
     $this->propertyData = $data;
     return $this;
 }
예제 #3
0
 /**
  * @param array|ArrayInterface $data The widget data.
  * @return TableWidget Chainable
  */
 public function setData($data)
 {
     parent::setData($data);
     $this->mergeDataSources($data);
     return $this;
 }