public function FacetapiFacet::offsetSet in Facet API 6.3
Same name and namespace in other branches
- 7.2 plugins/facetapi/adapter.inc \FacetapiFacet::offsetSet()
- 7 plugins/facetapi/adapter.inc \FacetapiFacet::offsetSet()
Assigns a value to the specified offset.
Parameters
mixed offset: The offset to assign the value to.
mixed value: The value to set.
File
- plugins/
facetapi/ adapter.inc, line 949 - Adapter plugin and adapter related calsses.
Class
- FacetapiFacet
- Stores facet data, provides methods that build the facet's render array.
Code
public function offsetSet($offset, $value) {
if (NULL === $offset) {
$this->facet[] = $value;
}
else {
$this->facet[$offset] = $value;
}
}