Ferreteria/v0.6/clade/Data/Mem/QVar/Str/@removed
Jump to navigation
Jump to search
2025-10-17
// 2025-09-26 now implemented in parent
public function HasIt() : bool { return is_string($this->v); }
public function SetIt(string $s) { $this->v = $s; }
public function SetItNz(?string $s) { if (is_string($s)) { $this->SetIt($s); } else { $this->ZapIt(); } }
public function &GetIt() : string { return $this->v; }
public function GetItNz(
string $sDefault='',
string $sPfx='',
string $sSfx=''
) : string { return ($this->HasIt() ? ($sPfx.$this->v.$sSfx) : $sDefault); }
public function RefIt(string &$s) : void { $this->v =& $s; }
2024-12-03
This was commented out earlier:
static public function FromNz(?string $v=NULL) : iStr {
$oThis = new static;
$oThis->SetItNz($v);
return $oThis;
}
Development version of SetIt():
public function SetIt($s) {
if (is_string($s)) {
$this->v = $s;
$this->isSet = TRUE;
} else {
echo 'SetMe() expected string, got '.csTypes::DumpLine($s).'<br>';
echo 'STACK DUMP: '.StackClass::FromCurrent()->Render();
}
}