Ferreteria/v0.3/class/tFieldRow Storage: Difference between revisions
< Ferreteria | v0.3 | class
Jump to navigation
Jump to search
(Created page with "{{page/code/class|ferreteria}} <source lang=php> →:::: REPLACES: fcDataRow COPYING METHODS OVER AS NEEDED: abstract class cFieldRowStandard extends cFieldRow_sourced...") |
(oops, was wrong code) |
||
Line 1: | Line 1: | ||
{{page/code/class|ferreteria}} | {{page/code/class|ferreteria}} | ||
<source lang=php> | <source lang=php> | ||
/*: | /*tttt | ||
PURPOSE: FieldRow with storage portals | |||
TODO: will eventually need a corresponding trait for display portals | |||
*/ | */ | ||
trait tFieldRow_Storage { | |||
abstract protected function GetStoragePortalsClass(); | |||
public function GetStoragePortals() { | |||
$sClass = $this->GetStoragePortalsClass(); | |||
return new $sClass($this); | |||
} | |||
} | } | ||
</source> | </source> | ||
* '''file''': {{l/ferreteria/file|data/rows/base.php}} | * '''file''': {{l/ferreteria/file|data/rows/base.php}} | ||
Revision as of 01:43, 6 January 2019
/*tttt
PURPOSE: FieldRow with storage portals
TODO: will eventually need a corresponding trait for display portals
*/
trait tFieldRow_Storage {
abstract protected function GetStoragePortalsClass();
public function GetStoragePortals() {
$sClass = $this->GetStoragePortalsClass();
return new $sClass($this);
}
}