- testcaseModel: remove unused method.
This commit is contained in:
@@ -3334,32 +3334,6 @@ class testcaseModel extends model
|
||||
->beginIF($rawModule == 'project' and $rawMethod == 'testcase' and $type === 'child')->andWhere('id')->in($objectIdList)->fi();
|
||||
}
|
||||
|
||||
/**
|
||||
* Search cases has scene.
|
||||
*
|
||||
* @param int $viewID
|
||||
* @access public
|
||||
* @return string
|
||||
*/
|
||||
public function getParents($viewID)
|
||||
{
|
||||
if($viewID == 0) return '/';
|
||||
|
||||
$path = $this->dao->select('path')->from(VIEW_SCENECASE)->where('id')->eq((int)$viewID)->fetch('path');
|
||||
$path = trim($path, ',');
|
||||
if(!$path) return '/';
|
||||
|
||||
$pathArr = explode(',', $path);
|
||||
$scenePath = "";
|
||||
foreach ($pathArr as $vid)
|
||||
{
|
||||
$title = $this->dao->select('title')->from(VIEW_SCENECASE)->where('id')->eq((int)$vid)->fetch('title');
|
||||
$scenePath .= ' <i class="icon-angle-right"></i> '.$title;
|
||||
}
|
||||
|
||||
return substr($scenePath,34);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get scene list include sub scenes and cases.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user