本文整理汇总了PHP中FileHandler::getFilePath方法的典型用法代码示例。如果您正苦于以下问题:PHP FileHandler::getFilePath方法的具体用法?PHP FileHandler::getFilePath怎么用?PHP FileHandler::getFilePath使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FileHandler
的用法示例。
在下文中一共展示了FileHandler::getFilePath方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: newFromProlucidSearchInstance
public static function newFromProlucidSearchInstance($table, $inst)
{
global $toprundir;
$toprundir = "/tmp/";
$jobclus = new ProlucidJobCluster();
$jobclus->setEmail("mclamp@fas.harvard.edu");
$fh = new FileHandler();
print "\nGenerating input files for [" . $inst->getName() . "]\n";
$exname = $inst->getPropertyValue("Experiment");
$ex = new TypeInstance("Experiment", $exname);
$ex->fetch($table);
$jobclus->setExperiment($ex);
// Set the experiment
$dbname = $inst->getPropertyValue("Protein_Database");
$db = new TypeInstance("Protein_Database", $dbname);
$db->fetch($table);
$dbfile = preg_replace("#http://DUMMYHOST.ROOTDIR/misc/MiniFileView.php/#", "", $db->getPropertyValue("File"));
$dbfile = $fh->getFilePath($dbfile);
$jobclus->setDatabaseFile($dbfile);
// Set the database
$jobclus->setSourceInstance($inst);
// Set the source instance
$jobclus->setSourceType("Prolucid_Search");
// Set the source type
$count = 1;
$jobname = $inst->getName() . "_LSF_Job_" . $count;
$jobinst = new TypeInstance("LSF_Job", $jobname);
while ($jobinst->exists($table)) {
$count++;
$jobname = $inst->getName() . "_LSF_Job_" . $count;
$jobinst = new TypeInstance("LSF_Job", $jobname);
}
$jobdir = $toprundir . $jobname . "/";
$outdir = $jobdir . "out";
$jobclus->setJobName($jobname);
// Set the job name
$jobclus->setRunDir($jobdir);
// Set the job directory
$jobclus->setOutDir($outdir);
// Set the output directory
return $jobclus;
}