Exemplo n.º 1
0
 public static function delete_cache()
 {
     $filename = Relationship::cache_file_dir() . '/' . Relationship::cache_file_name_only();
     if (file_exists($filename)) {
         unlink($filename);
     }
     require_once "data/Relationships/RelationshipFactory.php";
     SugarRelationshipFactory::deleteCache();
 }
Exemplo n.º 2
0
 protected function cache_exists()
 {
     return file_exists(Relationship::cache_file_dir() . '/' . Relationship::cache_file_name_only());
 }
Exemplo n.º 3
0
 public function testcache_file_dir()
 {
     $result = Relationship::cache_file_dir();
     $this->assertEquals('cache/modules/Relationships', $result);
 }
Exemplo n.º 4
0
 function delete_cache()
 {
     $filename = Relationship::cache_file_dir() . '/' . Relationship::cache_file_name_only();
     if (file_exists($filename)) {
         unlink($filename);
     }
 }