當前位置: 首頁>>代碼示例>>PHP>>正文


PHP PhabricatorApplicationSearchEngine::buildSavedQueryFromBuiltin方法代碼示例

本文整理匯總了PHP中PhabricatorApplicationSearchEngine::buildSavedQueryFromBuiltin方法的典型用法代碼示例。如果您正苦於以下問題:PHP PhabricatorApplicationSearchEngine::buildSavedQueryFromBuiltin方法的具體用法?PHP PhabricatorApplicationSearchEngine::buildSavedQueryFromBuiltin怎麽用?PHP PhabricatorApplicationSearchEngine::buildSavedQueryFromBuiltin使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在PhabricatorApplicationSearchEngine的用法示例。


在下文中一共展示了PhabricatorApplicationSearchEngine::buildSavedQueryFromBuiltin方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: buildSavedQueryFromBuiltin

 public function buildSavedQueryFromBuiltin($query_key)
 {
     $query = $this->newSavedQuery();
     $query->setQueryKey($query_key);
     $viewer = $this->requireViewer();
     $viewer_phid = $viewer->getPHID();
     $status_open = DiffusionCommitQuery::AUDIT_STATUS_OPEN;
     switch ($query_key) {
         case 'all':
             return $query;
         case 'open':
             $query->setParameter('auditStatus', $status_open);
             return $query;
         case 'need':
             $needs_tokens = array($viewer_phid, 'projects(' . $viewer_phid . ')', 'packages(' . $viewer_phid . ')');
             $query->setParameter('needsAuditByPHIDs', $needs_tokens);
             $query->setParameter('auditStatus', $status_open);
             return $query;
         case 'authored':
             $query->setParameter('commitAuthorPHIDs', array($viewer->getPHID()));
             return $query;
         case 'problem':
             $query->setParameter('commitAuthorPHIDs', array($viewer->getPHID()));
             $query->setParameter('auditStatus', DiffusionCommitQuery::AUDIT_STATUS_CONCERN);
             return $query;
     }
     return parent::buildSavedQueryFromBuiltin($query_key);
 }
開發者ID:patelhardik,項目名稱:phabricator,代碼行數:28,代碼來源:PhabricatorCommitSearchEngine.php

示例2: buildSavedQueryFromBuiltin

 public function buildSavedQueryFromBuiltin($query_key)
 {
     $query = $this->newSavedQuery();
     $query->setQueryKey($query_key);
     switch ($query_key) {
         case 'all':
             return $query;
     }
     return parent::buildSavedQueryFromBuiltin($query_key);
 }
開發者ID:denghp,項目名稱:phabricator,代碼行數:10,代碼來源:DrydockLogSearchEngine.php

示例3: buildSavedQueryFromBuiltin

 public function buildSavedQueryFromBuiltin($query_key)
 {
     $query = $this->newSavedQuery();
     $query->setQueryKey($query_key);
     $viewer_phid = $this->requireViewer()->getPHID();
     switch ($query_key) {
         case 'all':
             return $query;
     }
     return parent::buildSavedQueryFromBuiltin($query_key);
 }
開發者ID:fengshao0907,項目名稱:phabricator,代碼行數:11,代碼來源:HeraldTranscriptSearchEngine.php

示例4: buildSavedQueryFromBuiltin

 public function buildSavedQueryFromBuiltin($query_key)
 {
     $query = $this->newSavedQuery();
     $query->setQueryKey($query_key);
     switch ($query_key) {
         case 'all':
             return $query;
         case 'projects':
             return $query->setParameter('viewerProjects', true);
     }
     return parent::buildSavedQueryFromBuiltin($query_key);
 }
開發者ID:hrb518,項目名稱:phabricator,代碼行數:12,代碼來源:PhabricatorFeedSearchEngine.php

示例5: buildSavedQueryFromBuiltin

 public function buildSavedQueryFromBuiltin($query_key)
 {
     $query = $this->newSavedQuery();
     $query->setQueryKey($query_key);
     switch ($query_key) {
         case 'all':
             return $query;
         case 'active':
             return $query->setParameter('isDestroyed', false);
     }
     return parent::buildSavedQueryFromBuiltin($query_key);
 }
開發者ID:hrb518,項目名稱:phabricator,代碼行數:12,代碼來源:PassphraseCredentialSearchEngine.php

示例6: buildSavedQueryFromBuiltin

 public function buildSavedQueryFromBuiltin($query_key)
 {
     $query = $this->newSavedQuery();
     $query->setQueryKey($query_key);
     switch ($query_key) {
         case 'signed':
             return $query->setParameter('withViewerSignature', true);
         case 'all':
             return $query;
     }
     return parent::buildSavedQueryFromBuiltin($query_key);
 }
開發者ID:andrewBackPlane,項目名稱:phabricator,代碼行數:12,代碼來源:LegalpadDocumentSearchEngine.php

示例7: buildSavedQueryFromBuiltin

 public function buildSavedQueryFromBuiltin($query_key)
 {
     $query = $this->newSavedQuery();
     $query->setQueryKey($query_key);
     switch ($query_key) {
         case 'active':
             return $query->setParameter('statuses', array(DrydockLeaseStatus::STATUS_PENDING, DrydockLeaseStatus::STATUS_ACQUIRED, DrydockLeaseStatus::STATUS_ACTIVE));
         case 'all':
             return $query;
     }
     return parent::buildSavedQueryFromBuiltin($query_key);
 }
開發者ID:aswanderley,項目名稱:phabricator,代碼行數:12,代碼來源:DrydockLeaseSearchEngine.php

示例8: buildSavedQueryFromBuiltin

 public function buildSavedQueryFromBuiltin($query_key)
 {
     $query = $this->newSavedQuery();
     $query->setQueryKey($query_key);
     switch ($query_key) {
         case 'all':
             return $query;
         case 'active':
             return $query->setParameter('status', PhrictionDocumentQuery::STATUS_OPEN);
     }
     return parent::buildSavedQueryFromBuiltin($query_key);
 }
開發者ID:endlessm,項目名稱:phabricator,代碼行數:12,代碼來源:PhrictionSearchEngine.php

示例9: buildSavedQueryFromBuiltin

 public function buildSavedQueryFromBuiltin($query_key)
 {
     $query = $this->newSavedQuery();
     $query->setQueryKey($query_key);
     switch ($query_key) {
         case 'active':
             return $query->setParameter('status', 'open');
         case 'all':
             return $query;
     }
     return parent::buildSavedQueryFromBuiltin($query_key);
 }
開發者ID:hrb518,項目名稱:phabricator,代碼行數:12,代碼來源:PhabricatorRepositorySearchEngine.php

示例10: buildSavedQueryFromBuiltin

 public function buildSavedQueryFromBuiltin($query_key)
 {
     $query = $this->newSavedQuery();
     $query->setQueryKey($query_key);
     switch ($query_key) {
         case 'launcher':
             return $query->setParameter('installed', true)->setParameter('launchable', true);
         case 'all':
             return $query;
     }
     return parent::buildSavedQueryFromBuiltin($query_key);
 }
開發者ID:hrb518,項目名稱:phabricator,代碼行數:12,代碼來源:PhabricatorAppSearchEngine.php

示例11: buildSavedQueryFromBuiltin

 public function buildSavedQueryFromBuiltin($query_key)
 {
     $query = $this->newSavedQuery();
     $query->setQueryKey($query_key);
     switch ($query_key) {
         case 'all':
             return $query;
         case 'participant':
             return $query->setParameter('participants', array($this->requireViewer()->getPHID()));
     }
     return parent::buildSavedQueryFromBuiltin($query_key);
 }
開發者ID:NeoArmageddon,項目名稱:phabricator,代碼行數:12,代碼來源:ConpherenceThreadSearchEngine.php

示例12: buildSavedQueryFromBuiltin

 public function buildSavedQueryFromBuiltin($query_key)
 {
     $query = $this->newSavedQuery();
     $query->setQueryKey($query_key);
     switch ($query_key) {
         case 'active':
             return $query->setParameter('status', array(HarbormasterBuildPlan::STATUS_ACTIVE));
         case 'all':
             return $query;
     }
     return parent::buildSavedQueryFromBuiltin($query_key);
 }
開發者ID:pugong,項目名稱:phabricator,代碼行數:12,代碼來源:HarbormasterBuildPlanSearchEngine.php

示例13: buildSavedQueryFromBuiltin

 public function buildSavedQueryFromBuiltin($query_key)
 {
     $query = $this->newSavedQuery();
     $query->setQueryKey($query_key);
     switch ($query_key) {
         case 'all':
             return $query;
         case 'open':
             return $query->setParameter('statuses', array(PhabricatorBadgesBadge::STATUS_OPEN));
     }
     return parent::buildSavedQueryFromBuiltin($query_key);
 }
開發者ID:patelhardik,項目名稱:phabricator,代碼行數:12,代碼來源:PhabricatorBadgesSearchEngine.php

示例14: buildSavedQueryFromBuiltin

 public function buildSavedQueryFromBuiltin($query_key)
 {
     $query = $this->newSavedQuery();
     $query->setQueryKey($query_key);
     switch ($query_key) {
         case 'modern':
             return $query->setParameter('isStable', true)->setParameter('isUnstable', true);
         case 'all':
             return $query->setParameter('isStable', true)->setParameter('isUnstable', true)->setParameter('isDeprecated', true);
     }
     return parent::buildSavedQueryFromBuiltin($query_key);
 }
開發者ID:denghp,項目名稱:phabricator,代碼行數:12,代碼來源:PhabricatorConduitSearchEngine.php

示例15: buildSavedQueryFromBuiltin

 public function buildSavedQueryFromBuiltin($query_key)
 {
     $query = $this->newSavedQuery();
     $query->setQueryKey($query_key);
     switch ($query_key) {
         case 'all':
             return $query->setParameter('order', PhrequentUserTimeQuery::ORDER_ENDED_DESC);
         case 'tracking':
             return $query->setParameter('ended', PhrequentUserTimeQuery::ENDED_NO)->setParameter('order', PhrequentUserTimeQuery::ORDER_ENDED_DESC);
     }
     return parent::buildSavedQueryFromBuiltin($query_key);
 }
開發者ID:denghp,項目名稱:phabricator,代碼行數:12,代碼來源:PhrequentSearchEngine.php


注:本文中的PhabricatorApplicationSearchEngine::buildSavedQueryFromBuiltin方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。