コード例 #1
0
 public static function putCache($hash, $path, $obj = null)
 {
     if ($obj) {
         $cache = $obj;
     } else {
         $cache = new afValidatorCache();
     }
     $cache->setPath($path);
     $cache->setSignature($hash);
     $cache->save();
 }
コード例 #2
0
 /**
  * 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;
 }