コード例 #1
0
ファイル: CaseInfoView.php プロジェクト: mjrao/BugFree
 public static function getSearchableField($productId)
 {
     $searchAbleArr = self::getBasicSearchFieldConfig($productId);
     if (!empty($productId)) {
         $customSearchAbleFieldArr = ProductService::getSearchableCostomField('case', $productId);
         $searchAbleArr = array_merge($searchAbleArr, $customSearchAbleFieldArr);
     }
     return $searchAbleArr;
 }
コード例 #2
0
ファイル: BugInfoView.php プロジェクト: mjrao/BugFree
 public static function getSearchableField($productId)
 {
     $searchAbleArr = self::getBasicSearchFieldConfig($productId);
     if (!empty($productId)) {
         $searchAbleArr['solution'] = array('label' => BugInfo::model()->getAttributeLabel('solution'), 'type' => Info::$InputType['option'], 'isBasic' => true, 'value' => InfoService::getBugSolutionOptions($productId));
         $customSearchAbleFieldArr = ProductService::getSearchableCostomField('bug', $productId);
         $searchAbleArr = array_merge($searchAbleArr, $customSearchAbleFieldArr);
     }
     return $searchAbleArr;
 }