Exemplo n.º 1
0
 public static function make($object, $i = false)
 {
     // prevents objects that have been 'cleared out' from rendering ...
     if ((int) count($object) > 0) {
         $r = '';
         foreach ($object as $a => $b) {
             $r .= $a != 'missing' ? is_array($b) || is_object($b) ? self::make($b, true) : $b : '';
         }
         // should make sure that we have actual inputs before rendering a 'form' (incase an object is replaced with purely html values...)
         return $i == false && $r != '' ? noClass_html::form(noClass_html::fieldset($r) . noClass_html::input__submit('Go'), 'action="" method="POST" enctype="multipart/form-data"') : ($i == true ? "\n\t{$r}\n" : '');
     }
 }