public function FacetapiFacet::offsetSet in Facet API 7.2
Same name and namespace in other branches
- 6.3 plugins/facetapi/adapter.inc \FacetapiFacet::offsetSet()
 - 7 plugins/facetapi/adapter.inc \FacetapiFacet::offsetSet()
 
Implements ArrayAccess::offsetSet().
File
- plugins/
facetapi/ adapter.inc, line 1188  - Adapter plugin and adapter related classes.
 
Class
- FacetapiFacet
 - Wrapper around the facet definition with methods that build render arrays.
 
Code
public function offsetSet($offset, $value) {
  if (NULL === $offset) {
    $this->facet[] = $value;
  }
  else {
    $this->facet[$offset] = $value;
  }
}