Ferreteria/v0.3/class/cFieldRowDisplay

From Woozle Writes Code
< Ferreteria‎ | v0.3‎ | class
Jump to navigation Jump to search

Template:Page/code/class

/*
  PURPOSE: data-row management for display I/O
  REPLACES: forms
  HISTORY:
    2018-09-30 started
*/
class cFieldRowDisplay extends cFieldRow {
    //use ftVerbalObject;

    // ++ SETUP ++ //

    public function __construct(string $sName) {
	$this->SetNameString($sName);
	$this->InitVars();
    }
    protected function InitVars() {}

    // -- SETUP -- //
    // ++ SETTINGS ++ //
    
    private $sName;
    protected function SetNameString(string $sName) {
	$this->sName = $sName;
    }
    public function GetNameString() {
	return $this->sName;
    }
    private $sKey;
    protected function HasKeyString() {
	return isset($this->sKey);
    }
    protected function SetKeyString($s) {
	$this->sKey = $s;
    }
    protected function GetKeyString() {
	return $this->sKey;
    }
    
    // -- SETTINGS -- //
}

This class may be inconsistent with the current v3 class structure. Currently only extended by one class in WorkFerret, which is not functioning as of this writing.