Ferreteria/v0.6/clade/Sys/Data/tree/XML/tags/base/Found/@retired
< Ferreteria | v0.6 | clade | Sys | Data | tree | XML/tags/base/Found
Jump to navigation
Jump to search
2025-03-03
Commented out on 02-25:
// 2025-02-25 This can't work anymore -- SaveTypeForName() is only defined in Type now.
protected function WithPair(string $sName, string $sValue) {
$this->SaveTypeForName($sName);
$this->Value($sValue);
#$this->WithAttrsArray([]);
#$this->WithTagsArray([]);
}
2025-02-27
Moved to TypeFromName() (not sure why I kept it under this name too, albeit commented out) 2 days ago:
// 2025-02-25 moving contents to TypeFromName()
static protected function TypeForName(string $s) : TypeIface {
$sc = static::TypeClassForName($s);
echo "TYPE FOR NAME <$s> => $sc".CRLF;
$ol = new ($sc);
return $ol;
}
2025-02-26
This will need rethinking, if it's still going to be used:
/**
* PURPOSE: returns a singleton Tag object for the given tag-type
* QA = query an array
*/
// 2025-02-21 how is this used/called?
public function QATag(string $sName) : QTagIface {
return $this->Tags()->GetItQ($sName);
}
2025-02-25
From SetupTagsFromNative() (this is, like, SO 2 days ago):
// 2025-02-23 redundant -- now handled in FList::FromNative()
foreach ($on as $sKey => $onSub) {
$oFSub = static::FromName($onSub->getName());
$oFSub->WithNative($onSub);
$oTags->AddFTag($oFSub); // testing
}
#$oTags = new ($this->FListClass())($ar);
2025-02-24
It doesn't work like this anymore. (This is, like, SO yesterday.)
// ACTION: creates and stores a Type object based on the tag's <name>
protected function TypeClass() : string { $o = $this->oType; return (is_object($o) ? get_class($o) : TypeMaker::class); }
protected function SaveTypeForName(string $sName) { $this->oType = ($this->TypeClass())::FromName($sName); }