Ferreteria/v0.6/fx/DoExport: Difference between revisions

From Woozle Writes Code
< Ferreteria‎ | v0.6‎ | fx
Jump to navigation Jump to search
m (link update)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{page/fx}}
{{page/fx}}
==About==
==About==
* '''Mirror''': <code>{{l/same|DoImport}}()</code>
* '''Definitions''':
* '''Definitions''':
** '''A''': <code>public function DoExport({{l/ver/clade|Sys\FileSys\Node|Fi|FileIface}} $ofData) : {{l/ver/clade|Sys\Data\Engine\aux\msgs\Maria|ItWent|ActionIface}}</code>
** '''A''': <code>public function DoExport({{l/ver/clade|Sys\FileSys\Node|Fi|FileIface}} $ofData) : {{l/ver/clade|Sys\Data\Engine\aux\msgs\Maria|ItWent|ActionIface}}</code>
*** Implemented by {{l/ver/clade|Sys\Data\Engine|Schema}} classes
** '''B''': <code>public function DoExport(string $sSchema, {{l/ver/clade|IO\Aspect\Connx\Buffer\File|Writer|RecvBuffClass}} $oInBuff) : {{l/ver/clade|Sys\Data\Engine\aux\msgs\Maria|ItWent|CommOpIface}}</code>
** '''B''': <code>public function DoExport(string $sSchema, {{l/ver/clade|IO\Aspect\Connx\Buffer\File|Writer|RecvBuffClass}} $oInBuff) : {{l/ver/clade|Sys\Data\Engine\aux\msgs\Maria|ItWent|CommOpIface}}</code>
* '''Mirror''': <code>{{l/same|DoImport}}()</code>
*** Implemented by DB {{l/ver/clade|Sys\Data\Engine|Oper}} classes, which currently get a list of all available Schemas and then dispatch to each Schema object's DoExport() (form A). (Future: should also be able to export a single Schema by name.)
==Usage==
==Usage==
{| class="wikitable sortable"
{| class="wikitable sortable"
! clade || form || use || notes
! clade || form || use || notes
{{!-!}} A || {{l/ver/clade/full|p=ferreteria|Sys\Data\Engine|Schema}}       || require  
{{!-!}} A || <code>{{l/ver/clade/full|Sys\Data\Engine|Schema}}</code>                                || require  
{{!-!}} B || {{l/ver/clade/full|p=ferreteria|Sys\Data\Engine\Oper|MyMar}}   || implement
{{!-!}} B || <code>{{l/ver/clade/full|Sys\Data\Engine\Oper|MyMar}}</code>                            || {{l/ver/clade/fx|Sys\Data\Engine\Oper|MyMar|DoExport|implement}}
{{!-!}} A || {{l/ver/clade/full|p=ferreteria|Sys\Data\Engine\Schema|MyMar}} || implement, call
{{!-!}} A || <code>{{l/ver/clade/full|Sys\Data\Engine\schema\Ops|MyMar}}</code>                      || {{l/ver/clade/fx|Sys\Data\Engine\schema\Ops|MyMar|DoExport|implement}}, call
{{!-!}} B || {{l/ver/clade/full|p=ferreteria|Sys\Data\Engine\aux\ActionRq\Admin\schema|EngScExport}} || call || <code>$this->{{l/ver/fx|QOSchema}}()->{{l/ver/fx|GetIt}}()->{{l/ver/fx|DoExport}}($this->{{l/ver/fx|DataFileNode}}(),$this->{{l/ver/fx|OkToReplace}}())</code>
| <code>$oAct = {{l/sub/fx|DbOper|$oOper}}->DoExport($sSchema,{{l/ver/clade|IO\Aspect\Connx\Buffer\File|Writer|$oExecBuff}});</code>
{{!-!}} B || <code>{{l/ver/clade/full|Sys\Data\Engine\aux\ActionRq\Admin\schema|EngScExport}}</code> || call
| <code>$this->{{l/ver/fx|QOSchema}}()->{{l/ver/fx|GetIt}}()->{{l/ver/fx|DoExport}}($this->{{l/ver/fx|DataFileNode}}(),$this->{{l/ver/fx|OkToReplace}}())</code>
|}
|}
See also {{l/ver/fx/proj|Futilities}}.
See also {{l/ver/fx/proj|Futilities}}.

Latest revision as of 01:33, 3 December 2025

About

  • Mirror: DoImport()
  • Definitions:
    • A: public function DoExport(FileIface $ofData) : ActionIface
    • B: public function DoExport(string $sSchema, RecvBuffClass $oInBuff) : CommOpIface
      • Implemented by DB Oper classes, which currently get a list of all available Schemas and then dispatch to each Schema object's DoExport() (form A). (Future: should also be able to export a single Schema by name.)

Usage

clade form use notes
A Sys\Data\Engine\Schema require
B Sys\Data\Engine\Oper\MyMar implement
A Sys\Data\Engine\schema\Ops\MyMar implement, call $oAct = $oOper->DoExport($sSchema,$oExecBuff);
B Sys\Data\Engine\aux\ActionRq\Admin\schema\EngScExport call $this->QOSchema()->GetIt()->DoExport($this->DataFileNode(),$this->OkToReplace())

See also Futilities.