Ferreteria/v0.3/class/tFieldRow Storage: Difference between revisions

From Woozle Writes Code
< 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...")
 
m (4 revisions imported: moving this project here)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{page/code/class|ferreteria}}
{{page/code/class|ferreteria}}
<source lang=php>
<source lang=php>
/*::::
/*tttt
   REPLACES: fcDataRow
  PURPOSE: FieldRow with storage portals
    COPYING METHODS OVER AS NEEDED
   TODO: will eventually need a corresponding trait for display portals
*/
*/
abstract class cFieldRowStandard extends cFieldRow_sourced implements ifSingleKeyedRow {
trait tFieldRow_Storage {
     use tKeyedRow;
     abstract protected function GetStoragePortalsClass();
     use tSaveableRow;
     public function GetStoragePortals() {
     use tSingleKey_Row;
        $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}}
* '''extends''': {{l/ferreteria/class|cFieldRow_sourced}}
* '''implements''': {{l/ferreteria/class|ifSingleKeyedRow}}
* '''uses''':
** {{l/ferreteria/class|tKeyedRow}}
** {{l/ferreteria/class|tSaveableRow}}
** {{l/ferreteria/class|tSingleKey_Row}}

Latest revision as of 16:43, 22 May 2022

Template:Page/code/class

/*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);
    }
}