public static function putCache($hash, $path, $obj = null) { if ($obj) { $cache = $obj; } else { $cache = new afValidatorCache(); } $cache->setPath($path); $cache->setSignature($hash); $cache->save(); }
/** * Exclude object from result * * @param afValidatorCache $afValidatorCache Object to remove from the list of results * * @return afValidatorCacheQuery The current query, for fluid interface */ public function prune($afValidatorCache = null) { if ($afValidatorCache) { $this->addUsingAlias(afValidatorCachePeer::ID, $afValidatorCache->getId(), Criteria::NOT_EQUAL); } return $this; }