Update the filtertype for the specified collection.
public updateFiltertype ( string $id, integer $filtertype ) | ||
$id | string | The collection id. |
$filtertype | integer | The updated filtertype. |
/** * Check for an update FILTERTYPE * * @param string $id The collection id to check * @param string $filter The new filter value. * * @return boolean True if filtertype passed, false if it has changed. */ public function checkFilterType($id, $filter) { $cc = $this->_cache->getCollections(); if (!empty($cc[$id]['filtertype']) && !is_null($filter) && $cc[$id]['filtertype'] != $filter) { $this->_logger->info(sprintf('[%s] Filtertype change from: %d to %d', $this->_procid, $cc[$id]['filtertype'], $filter)); $this->_cache->updateFiltertype($id, $filter); return false; } return true; }