Ferreteria/v0.6/clade/IO/O/View/@code
Jump to navigation
Jump to search
|
Code Snapshots & Removals
|
- 2025/02/20 removed
- 2025/06/22 removed
- 2026/01/26 snapshot
Entire contents of file, as deleted today:
<?php namespace Woozalia\Ferret\IO\O;
// DOCS:
/* Base* [c,i] */ use Woozalia\Ferret\Aux\{ cStandardBase as BaseClass, iStandardBase as BaseIface };
interface iView extends BaseIface {
function Render() : string;
function RenderInline() : string;
function RenderBlock() : string;
}
trait tView {
// ++ SETUP ++ //
public function __construct(private BaseIface $oSubj){}
protected function Subject() : BaseIface { return $this->oSubj; }
// -- SETUP -- //
// ++ OUTPUT ++ //
protected function RenderBefore() : string { return $this->PrefixString(); }
protected function RenderAfter() : string { return $this->SuffixString(); }
protected function RenderElement(iElement $o) : string { return $o->Render(); }
public function RenderInline() : string { return self::PromptForMethod(); }
public function RenderBlock() : string { return self::PromptForMethod(); }
// -- OUTPUT -- //
}
abstract class caView extends BaseClass implements iView { use tView; }