Key
class Key extends Facade implements AttributeKeyInterface (View source)
Properties
static protected | $app | from Facade | |
static protected array | $resolvedInstance | The resolved object instances. |
from Facade |
protected LegacyKey | $legacyAttributeKey |
Methods
Resolve the facade root instance from the container.
Get the registered name of the component.
Get the application instance behind the facade.
Handle dynamic, static calls to the object.
No description
Get the search indexer.
This is how old attribute keys used to install themselves. They extended this class and would call parent::add(). Do NOT use this method. It is here for backward compatibility.
In 5.7 and earlier, if a subclassed Key object called load, it was loading the core data of an attribute key. we're going to load that data into an internal legacy key object that we can keep around to pass calls to for attribute keys that incorrectly subclass this Key object.
This is here to fulfill this type of code $key = StoreOrderKey::getByID(10); Which then calls $ak = new self(); $ak->load(10); if ($ak->getAttributeKeyID()) {...}
Details
in
Facade at line 23
static mixed
getFacadeRoot()
Get the root object behind the facade.
in
Facade at line 35
static protected mixed
resolveFacadeInstance(string $name)
Resolve the facade root instance from the container.
static string
getFacadeAccessor()
Get the registered name of the component.
in
Facade at line 65
static
clearResolvedInstance(string $name)
Clear a resolved facade instance.
in
Facade at line 73
static
clearResolvedInstances()
Clear all of the resolved instances.
in
Facade at line 83
static Application
getFacadeApplication()
Get the application instance behind the facade.
in
Facade at line 93
static
setFacadeApplication(Application $app)
Set the application instance.
static mixed
__callStatic(string $method, array $args)
Handle dynamic, static calls to the object.
static
exportTranslations()
deprecated
deprecated
No description
Controller
getController()
deprecated
deprecated
No description
__toString()
No description
int
getAttributeKeyID()
deprecated
deprecated
No description
string
getAttributeKeyHandle()
deprecated
deprecated
No description
Type
getAttributeType()
deprecated
deprecated
No description
bool
isAttributeKeySearchable()
deprecated
deprecated
No description
SearchIndexerInterface
getSearchIndexer()
Get the search indexer.
static
add($handle, $type, $args, $pkg = false)
deprecated
deprecated
This is how old attribute keys used to install themselves. They extended this class and would call parent::add(). Do NOT use this method. It is here for backward compatibility.
load($akID)
deprecated
deprecated
In 5.7 and earlier, if a subclassed Key object called load, it was loading the core data of an attribute key. we're going to load that data into an internal legacy key object that we can keep around to pass calls to for attribute keys that incorrectly subclass this Key object.
__call($name, $arguments)
deprecated
deprecated
This is here to fulfill this type of code $key = StoreOrderKey::getByID(10); Which then calls $ak = new self(); $ak->load(10); if ($ak->getAttributeKeyID()) {...}
setPropertiesFromArray($array)
deprecated
deprecated
No description
saveAttributeForm($o)
deprecated
deprecated
No description
protected
saveAttribute($attributeValue, $passedValue = false)
deprecated
deprecated
No description
addAttributeValue()
deprecated
deprecated
No description
getSearchIndexFieldDefinition()
deprecated
deprecated
No description
getIndexedSearchTable()
deprecated
deprecated
No description
setAttribute($o, $value)
deprecated
deprecated
No description
reindex($table, $columnHeaders, $attribs, $rs = null)
deprecated
deprecated
No description