Framework  3.9
TableRowFormLayout Class Reference

Used for each subordinate form row in SpreadSheetAutoForm. More...

+ Inheritance diagram for TableRowFormLayout:
+ Collaboration diagram for TableRowFormLayout:

Public Member Functions

 __construct ($form)
 
 startGroup ($name, $collapsible=false, $collapsed=false)
 
 endGroup ()
 
 startField ($field, $renderer, $colspan=1, $styles="")
 
 endField ($field, $renderer)
 
 requiredFields ($text)
 
 printLabel ($field, $renderer, $styles="", $annotation="")
 Internal method to generate the HTML for the field label. More...
 
 getLabel ($field, $renderer, $addSuffix=true)
 
 startUngrouped ()
 
 endUngrouped ()
 
 startButtonLine ()
 
 endButtonLine ()
 
 errorBox ()
 
- Public Member Functions inherited from AutoFormLayout
 getGroupClass ($name, $collapsible, $collapsed, $additionalClass="")
 
 getLabelID ($field)
 
 finalizeLayout ()
 

Public Attributes

 $externalErrorBox = true
 
- Public Attributes inherited from AutoFormLayout
 $form
 
 $externalErrorBox = false
 Flag indicating whether the error box should be rendered inside the form grouping. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from AutoFormLayout
static create ($type, $form)
 

Detailed Description

Used for each subordinate form row in SpreadSheetAutoForm.

Definition at line 456 of file auto_form_layout.inc.

Constructor & Destructor Documentation

◆ __construct()

TableRowFormLayout::__construct (   $form)

Reimplemented from AutoFormLayout.

Reimplemented in SelectableTableRowFormLayout.

Definition at line 460 of file auto_form_layout.inc.

461  {
462  parent::__construct($form);
463  }

Member Function Documentation

◆ endButtonLine()

TableRowFormLayout::endButtonLine ( )

Reimplemented from AutoFormLayout.

Definition at line 531 of file auto_form_layout.inc.

532  {
533  // nothing to do
534  }

◆ endField()

TableRowFormLayout::endField (   $field,
  $renderer 
)

Reimplemented from AutoFormLayout.

Definition at line 488 of file auto_form_layout.inc.

489  {
490  echo "</td>\n";
491  }

◆ endGroup()

TableRowFormLayout::endGroup ( )

Reimplemented from AutoFormLayout.

Definition at line 470 of file auto_form_layout.inc.

471  {
472  $this->endUngrouped();
473  }

◆ endUngrouped()

TableRowFormLayout::endUngrouped ( )

Reimplemented from AutoFormLayout.

Definition at line 521 of file auto_form_layout.inc.

522  {
523  echo "</tr>\n";
524  }

◆ errorBox()

TableRowFormLayout::errorBox ( )

Reimplemented from AutoFormLayout.

Definition at line 536 of file auto_form_layout.inc.

537  {
538  echo "<tr>\n <td colspan='{$this->form->parent->colCount}' id='{$this->form->id}__error' class='error' style='display: ".($this->form->msg ? 'table-cell' : 'none')."'>{$this->form->msg}</td></tr>\n";
539  }

◆ getLabel()

TableRowFormLayout::getLabel (   $field,
  $renderer,
  $addSuffix = true 
)

Reimplemented from AutoFormLayout.

Definition at line 511 of file auto_form_layout.inc.

512  {
513  return "";
514  }

◆ printLabel()

TableRowFormLayout::printLabel (   $field,
  $renderer,
  $styles = "",
  $annotation = "" 
)

Internal method to generate the HTML for the field label.

Parameters
string$fieldthe field name
int$colspanthe number of columns to span
string$stylesoptional special styles that need to be applied
string$annotationannotation text for the field

Reimplemented from AutoFormLayout.

Definition at line 506 of file auto_form_layout.inc.

507  {
508  // Nothing to do
509  }

◆ requiredFields()

TableRowFormLayout::requiredFields (   $text)

Reimplemented from AutoFormLayout.

Definition at line 493 of file auto_form_layout.inc.

494  {
495  // empty - want displayed once at top not for every form in the spreadsheet
496  }

◆ startButtonLine()

TableRowFormLayout::startButtonLine ( )

Reimplemented from AutoFormLayout.

Definition at line 526 of file auto_form_layout.inc.

527  {
528  // nothing to do
529  }

◆ startField()

TableRowFormLayout::startField (   $field,
  $renderer,
  $colspan = 1,
  $styles = "" 
)

Reimplemented from AutoFormLayout.

Definition at line 476 of file auto_form_layout.inc.

477  {
478  echo "<td ";
479  if ($renderer->parent->valueCSS) echo " class='{$renderer->parent->valueCSS}'";
480  echo ">";
481 
482  if ($renderer->annotateBefore && $renderer->parent->annotations[$field] && $renderer->colspan == 1)
483  {
484  echo $renderer->parent->annotations[$field]."<br/>";
485  }
486  }

◆ startGroup()

TableRowFormLayout::startGroup (   $name,
  $collapsible = false,
  $collapsed = false 
)

Reimplemented from AutoFormLayout.

Definition at line 465 of file auto_form_layout.inc.

466  {
467  $this->startUngrouped();
468  }

◆ startUngrouped()

TableRowFormLayout::startUngrouped ( )

Reimplemented from AutoFormLayout.

Reimplemented in SelectableTableRowFormLayout.

Definition at line 516 of file auto_form_layout.inc.

517  {
518  echo "<tr id='{$this->form->id}_container' class='{$this->form->containerClass}'>\n";
519  }

Member Data Documentation

◆ $externalErrorBox

TableRowFormLayout::$externalErrorBox = true

Definition at line 458 of file auto_form_layout.inc.


The documentation for this class was generated from the following file: