Remove all the {{{ and }}} folding
This commit is contained in:
@@ -72,25 +72,20 @@ class Formfield
|
||||
* @param string|null $label Label of the field
|
||||
*/
|
||||
public function __construct ($name, $label = "")
|
||||
// {{{
|
||||
{
|
||||
$this->name = $name;
|
||||
$this->label = $label;
|
||||
}
|
||||
// }}}
|
||||
|
||||
/** Display really the form
|
||||
*/
|
||||
public function display ()
|
||||
// {{{
|
||||
{
|
||||
$func = "field".$this->formTemplate.$this->type;
|
||||
return $this->$func ();
|
||||
}
|
||||
// }}}
|
||||
|
||||
// Setters for all the properties of the class
|
||||
// {{{
|
||||
/** Set the type of the field
|
||||
* @param string $val The value of the type of the field
|
||||
*/
|
||||
@@ -180,16 +175,13 @@ class Formfield
|
||||
$this->cols = $val;
|
||||
return $this;
|
||||
}
|
||||
// }}}
|
||||
|
||||
//////////////////////////
|
||||
//// BOOTSTRAP3 ////
|
||||
//////////////////////////
|
||||
// {{{
|
||||
/** Return the checkbox defined
|
||||
*/
|
||||
private function fieldBootstrap3checkbox ()
|
||||
// {{{
|
||||
{
|
||||
// No $this->multiple, $this->rows $this->cols $this->placeholder,
|
||||
// $this->maxlength
|
||||
@@ -317,12 +309,10 @@ class Formfield
|
||||
$res .= " </div>\n"; // End form-group
|
||||
return $res;
|
||||
}
|
||||
// }}}
|
||||
|
||||
/** Return the hidden field defined
|
||||
*/
|
||||
private function fieldBootstrap3hidden ()
|
||||
// {{{
|
||||
{
|
||||
$res = "";
|
||||
// No $this->label, $this->multiple, $this->readonly, $this->hidden,
|
||||
@@ -339,12 +329,10 @@ class Formfield
|
||||
$res .= "/>\n";
|
||||
return $res;
|
||||
}
|
||||
// }}}
|
||||
|
||||
/** Return the password field defined
|
||||
*/
|
||||
private function fieldBootstrap3password ()
|
||||
// {{{
|
||||
{
|
||||
$res = "";
|
||||
// No $this->multiple, $this->rows $this->cols
|
||||
@@ -413,12 +401,10 @@ class Formfield
|
||||
$res .= " </div>\n"; // End form-group
|
||||
return $res;
|
||||
}
|
||||
// }}}
|
||||
|
||||
/** Return the radio field defined
|
||||
*/
|
||||
private function fieldBootstrap3radio ()
|
||||
// {{{
|
||||
{
|
||||
$res = "";
|
||||
// No $this->multiple, $this->rows $this->cols $this->placeholder
|
||||
@@ -505,12 +491,10 @@ class Formfield
|
||||
$res .= " </div>\n"; // End form-group
|
||||
return $res;
|
||||
}
|
||||
// }}}
|
||||
|
||||
/** Return the checkbox defined
|
||||
*/
|
||||
private function fieldBootstrap3select ()
|
||||
// {{{
|
||||
{
|
||||
// No $this->placeholder $this->maxlength
|
||||
$res = "";
|
||||
@@ -631,12 +615,10 @@ class Formfield
|
||||
$res .= " </div>\n"; // End form-group
|
||||
return $res;
|
||||
}
|
||||
// }}}
|
||||
|
||||
/** Return the submit defined
|
||||
*/
|
||||
private function fieldBootstrap3submit ()
|
||||
// {{{
|
||||
{
|
||||
$res = "";
|
||||
// No $this->label, $this->multiple, $this->error, $this->rows,
|
||||
@@ -674,12 +656,10 @@ class Formfield
|
||||
$res .= " </div>\n";
|
||||
return $res;
|
||||
}
|
||||
// }}}
|
||||
|
||||
/** Return the textarea defined
|
||||
*/
|
||||
private function fieldBootstrap3textarea ()
|
||||
// {{{
|
||||
{
|
||||
$res = "";
|
||||
// No $this->multiple, $this->titles
|
||||
@@ -751,12 +731,10 @@ class Formfield
|
||||
$res .= " </div>\n"; // End form-group
|
||||
return $res;
|
||||
}
|
||||
// }}}
|
||||
|
||||
/** Return the text defined
|
||||
*/
|
||||
private function fieldBootstrap3text ()
|
||||
// {{{
|
||||
{
|
||||
$res = "";
|
||||
// No $this->multiple, $this->titles, $this->rows, $this->cols
|
||||
@@ -825,12 +803,10 @@ class Formfield
|
||||
$res .= " </div>\n"; // End form-group
|
||||
return $res;
|
||||
}
|
||||
// }}}
|
||||
|
||||
/** Return the file defined
|
||||
*/
|
||||
private function fieldBootstrap3file ()
|
||||
// {{{
|
||||
{
|
||||
$res = "";
|
||||
// No $this->multiple, $this->titles, $this->rows, $this->cols
|
||||
@@ -912,17 +888,13 @@ class Formfield
|
||||
$res .= " </div>\n"; // End form-group
|
||||
return $res;
|
||||
}
|
||||
// }}}
|
||||
// }}}
|
||||
|
||||
//////////////////////////
|
||||
//// BOOTSTRAP4 ////
|
||||
//////////////////////////
|
||||
// {{{
|
||||
/** Return the checkbox defined
|
||||
*/
|
||||
private function fieldBootstrap4checkbox ()
|
||||
// {{{
|
||||
{
|
||||
// No $this->multiple, $this->rows $this->cols $this->placeholder,
|
||||
// $this->maxlength
|
||||
@@ -1061,12 +1033,10 @@ class Formfield
|
||||
$res .= " </div>\n"; // End form-group
|
||||
return $res;
|
||||
}
|
||||
// }}}
|
||||
|
||||
/** Return the hidden field defined
|
||||
*/
|
||||
private function fieldBootstrap4hidden ()
|
||||
// {{{
|
||||
{
|
||||
$res = "";
|
||||
// No $this->label, $this->multiple, $this->readonly, $this->hidden,
|
||||
@@ -1083,12 +1053,10 @@ class Formfield
|
||||
$res .= "/>\n";
|
||||
return $res;
|
||||
}
|
||||
// }}}
|
||||
|
||||
/** Return the password field defined
|
||||
*/
|
||||
private function fieldBootstrap4password ()
|
||||
// {{{
|
||||
{
|
||||
$res = "";
|
||||
// No $this->multiple, $this->rows $this->cols
|
||||
@@ -1166,12 +1134,10 @@ class Formfield
|
||||
$res .= " </div>\n"; // End form-group
|
||||
return $res;
|
||||
}
|
||||
// }}}
|
||||
|
||||
/** Return the radio field defined
|
||||
*/
|
||||
private function fieldBootstrap4radio ()
|
||||
// {{{
|
||||
{
|
||||
$res = "";
|
||||
// No $this->multiple, $this->rows $this->cols $this->placeholder
|
||||
@@ -1267,12 +1233,10 @@ class Formfield
|
||||
$res .= " </div>\n"; // End form-group
|
||||
return $res;
|
||||
}
|
||||
// }}}
|
||||
|
||||
/** Return the checkbox defined
|
||||
*/
|
||||
private function fieldBootstrap4select ()
|
||||
// {{{
|
||||
{
|
||||
// No $this->placeholder $this->maxlength
|
||||
$res = "";
|
||||
@@ -1402,12 +1366,10 @@ class Formfield
|
||||
$res .= " </div>\n"; // End form-group
|
||||
return $res;
|
||||
}
|
||||
// }}}
|
||||
|
||||
/** Return the submit defined
|
||||
*/
|
||||
private function fieldBootstrap4submit ()
|
||||
// {{{
|
||||
{
|
||||
$res = "";
|
||||
// No $this->label, $this->multiple, $this->error, $this->rows,
|
||||
@@ -1445,12 +1407,10 @@ class Formfield
|
||||
$res .= " </div>\n";
|
||||
return $res;
|
||||
}
|
||||
// }}}
|
||||
|
||||
/** Return the textarea defined
|
||||
*/
|
||||
private function fieldBootstrap4textarea ()
|
||||
// {{{
|
||||
{
|
||||
$res = "";
|
||||
// No $this->multiple, $this->titles
|
||||
@@ -1531,12 +1491,10 @@ class Formfield
|
||||
$res .= " </div>\n"; // End form-group
|
||||
return $res;
|
||||
}
|
||||
// }}}
|
||||
|
||||
/** Return the text defined
|
||||
*/
|
||||
private function fieldBootstrap4text ()
|
||||
// {{{
|
||||
{
|
||||
$res = "";
|
||||
// No $this->multiple, $this->titles, $this->rows, $this->cols
|
||||
@@ -1614,12 +1572,10 @@ class Formfield
|
||||
$res .= " </div>\n"; // End form-group
|
||||
return $res;
|
||||
}
|
||||
// }}}
|
||||
|
||||
/** Return the file defined
|
||||
*/
|
||||
private function fieldBootstrap4file ()
|
||||
// {{{
|
||||
{
|
||||
$res = "";
|
||||
// No $this->multiple, $this->titles, $this->rows, $this->cols
|
||||
@@ -1709,7 +1665,5 @@ class Formfield
|
||||
$res .= " </div>\n"; // End form-group
|
||||
return $res;
|
||||
}
|
||||
// }}}
|
||||
|
||||
// }}}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user