Skip to content

Commit fa04784

Browse files
committed
Jet library (core):
------------------- * ORM DataModel: dataFetch* - raw mode added * Jet Form: Form_Renderer_Single->setCustomRenderer( ?Closure $custom_renderer ): void Form_Renderer_Single->getCustomRenderer(): ?Closure Form_Renderer_Single->renderByView() : string * Bug fix: non-functional internal relations in entity inheritance * Bug fix: Form_Field_Data: invalid default error code * Bug fix: Form_Field_Range: better input value catcher * Bug fix: Form_Field_Float: null value if input missing * Bug fix: Form_Field_Int: null value if input missing Jet Example App: ------------------- * ErrorHandler_Display: output buffer clean in a case of fatal error
1 parent 895aafb commit fa04784

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

library/Jet/Form/Renderer/Single.php

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,23 @@ public function toString(): string
6161
return $this->render();
6262
}
6363

64+
/**
65+
* @return Closure|null
66+
*/
6467
public function getCustomRenderer(): ?Closure
6568
{
6669
return $this->custom_renderer;
6770
}
6871

72+
/**
73+
* @param Closure|null $custom_renderer
74+
* @return void
75+
*/
6976
public function setCustomRenderer( ?Closure $custom_renderer ): void
7077
{
7178
$this->custom_renderer = $custom_renderer;
7279
}
7380

74-
75-
7681
/**
7782
* @return string
7883
*/
@@ -81,9 +86,7 @@ public function render(): string
8186
if($this->custom_renderer) {
8287
ob_start();
8388
$this->custom_renderer->call( $this );
84-
$res = ob_get_clean();
85-
86-
return $res;
89+
return ob_get_clean();
8790
} else {
8891
return $this->renderByView();
8992
}

0 commit comments

Comments
 (0)