/** * If the formElement has specific properties then this method * should return the html needed to update those properties * * The html must be a (or many) html row(s) table (one column for the label, * another one for the property) * * <code> * <tr><td><label>Property 1:</label></td><td><input type="text" value="value 1" /></td></tr> * <tr><td><label>Property 2:</label></td><td><input type="text" value="value 2" /></td></tr> * </code> * * @return string html */ public function fetchAdminSpecificProperties() { $html = ''; foreach ($this->formElement->getProperties() as $key => $property) { $html .= '<p>'; $html .= $this->fetchAdminSpecificProperty($key, $property); $html .= '</p>'; } return $html; }
/** * If the formElement has specific properties then this method * should return the html needed to update those properties * * The html must be a (or many) html row(s) table (one column for the label, * another one for the property) * * <code> * <tr><td><label>Property 1:</label></td><td><input type="text" value="value 1" /></td></tr> * <tr><td><label>Property 2:</label></td><td><input type="text" value="value 2" /></td></tr> * </code> * * @return string html */ public function fetchAdminSpecificProperties() { $html = ''; foreach ($this->formElement->getProperties() as $key => $property) { $html .= '<p>'; $html .= '<label for="formElement_properties_' . $key . '">' . $this->formElement->getPropertyLabel($key) . '</label>: '; $html .= '<br />'; $html .= $this->fetchAdminSpecificProperty($key, $property); $html .= '</p>'; } return $html; }