コード例 #1
0
ファイル: Relationship.php プロジェクト: omusico/sugar_work
 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();
 }
コード例 #2
0
ファイル: Relationship.php プロジェクト: jglaine/sugar761-ent
 protected function cache_exists()
 {
     return file_exists(Relationship::cache_file_dir() . '/' . Relationship::cache_file_name_only());
 }
コード例 #3
0
 public function testcache_file_name_only()
 {
     $result = Relationship::cache_file_name_only();
     $this->assertEquals('relationships.cache.php', $result);
 }
コード例 #4
0
ファイル: Relationship.php プロジェクト: sysraj86/carnivalcrm
 function delete_cache()
 {
     $filename = Relationship::cache_file_dir() . '/' . Relationship::cache_file_name_only();
     if (file_exists($filename)) {
         unlink($filename);
     }
 }