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


PHP TBGContext::getScope方法代碼示例

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


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

示例1: deleteProcessedMessages

 public function deleteProcessedMessages($ids)
 {
     $crit = $this->getCriteria();
     $crit->addWhere(self::ID, (array) $ids, B2DBCriteria::DB_IN);
     $crit->addWhere(self::SCOPE, TBGContext::getScope()->getID());
     $res = $this->doDelete($crit);
 }
開發者ID:ronaldbroens,項目名稱:thebuggenie,代碼行數:7,代碼來源:TBGMailQueueTable.class.php

示例2: do_execute

 public function do_execute()
 {
     $this->cliEcho("Importing articles ... \n", 'white', 'bold');
     TBGEvent::listen('publish', 'fixture_article_loaded', array($this, 'listenPublishFixtureArticleCreated'));
     $overwrite = (bool) ($this->getProvidedArgument('overwrite', 'no') == 'yes');
     TBGPublish::getModule()->loadFixturesArticles(TBGContext::getScope()->getID(), $overwrite);
 }
開發者ID:oparoz,項目名稱:thebuggenie,代碼行數:7,代碼來源:CliPublishImport.class.php

示例3: deleteBySearchID

 public function deleteBySearchID($saved_search_id)
 {
     $crit = $this->getCriteria();
     $crit->addWhere(self::SCOPE, TBGContext::getScope()->getID());
     $crit->addWhere(self::SEARCH_ID, $saved_search_id);
     $this->doDelete($crit);
 }
開發者ID:ronaldbroens,項目名稱:thebuggenie,代碼行數:7,代碼來源:TBGSavedSearchFiltersTable.class.php

示例4: getAll

 public function getAll()
 {
     $crit = $this->getCriteria();
     $crit->addWhere(self::SCOPE, TBGContext::getScope()->getID());
     $crit->addOrderBy(self::ID, Criteria::SORT_ASC);
     return $this->select($crit);
 }
開發者ID:oparoz,項目名稱:thebuggenie,代碼行數:7,代碼來源:TBGIssuetypeSchemesTable.class.php

示例5: getByID

 public function getByID($id)
 {
     $crit = $this->getCriteria();
     $crit->addWhere(self::SCOPE, TBGContext::getScope()->getID());
     $row = $this->doSelectById($id, $crit, false);
     return $row;
 }
開發者ID:ronaldbroens,項目名稱:thebuggenie,代碼行數:7,代碼來源:TBGWorkflowSchemesTable.class.php

示例6: countTeams

 public function countTeams()
 {
     $crit = $this->getCriteria();
     $crit->addWhere(self::SCOPE, TBGContext::getScope()->getID());
     $crit->addWhere(self::ONDEMAND, false);
     return $this->doCount($crit);
 }
開發者ID:oparoz,項目名稱:thebuggenie,代碼行數:7,代碼來源:TBGTeamsTable.class.php

示例7: quickfind

 public function quickfind($client_name)
 {
     $crit = $this->getCriteria();
     $crit->addWhere(self::NAME, "%{$client_name}%", Criteria::DB_LIKE);
     $crit->addWhere(self::SCOPE, TBGContext::getScope()->getID());
     return $this->select($crit);
 }
開發者ID:oparoz,項目名稱:thebuggenie,代碼行數:7,代碼來源:TBGClientsTable.class.php

示例8: doesGroupNameExist

 public function doesGroupNameExist($group_name)
 {
     $crit = $this->getCriteria();
     $crit->addWhere(self::NAME, $group_name);
     $crit->addWhere(self::SCOPE, TBGContext::getScope()->getID());
     return (bool) $this->doCount($crit);
 }
開發者ID:oparoz,項目名稱:thebuggenie,代碼行數:7,代碼來源:TBGGroupsTable.class.php

示例9: _uninstall

 protected function _uninstall()
 {
     if (TBGContext::getScope()->getID() == 1) {
         TBGVCSIntegrationTable::getTable()->drop();
     }
     parent::_uninstall();
 }
開發者ID:ronaldbroens,項目名稱:thebuggenie,代碼行數:7,代碼來源:TBGVCSIntegration.class.php

示例10: getByTransitionID

 public function getByTransitionID($transition_id)
 {
     $crit = $this->getCriteria();
     $crit->addWhere(self::SCOPE, TBGContext::getScope()->getID());
     $crit->addWhere(self::TRANSITION_ID, $transition_id);
     return $this->doSelect($crit);
 }
開發者ID:oparoz,項目名稱:thebuggenie,代碼行數:7,代碼來源:TBGWorkflowTransitionActionsTable.class.php

示例11: countWorkflows

 public function countWorkflows($scope = null)
 {
     $scope = $scope === null ? TBGContext::getScope()->getID() : $scope;
     $crit = $this->getCriteria();
     $crit->addWhere(self::SCOPE, $scope);
     return $this->doCount($crit);
 }
開發者ID:oparoz,項目名稱:thebuggenie,代碼行數:7,代碼來源:TBGWorkflowsTable.class.php

示例12: addStarredArticle

 public function addStarredArticle($user_id, $article_id)
 {
     $crit = $this->getCriteria();
     $crit->addInsert(self::ARTICLE, $article_id);
     $crit->addInsert(self::UID, $user_id);
     $crit->addInsert(self::SCOPE, TBGContext::getScope()->getID());
     $this->doInsert($crit);
 }
開發者ID:oparoz,項目名稱:thebuggenie,代碼行數:8,代碼來源:TBGUserArticlesTable.class.php

示例13: getAll

 public function getAll($scope = null)
 {
     $scope = $scope === null ? TBGContext::getScope()->getID() : $scope;
     $crit = $this->getCriteria();
     $crit->addWhere(self::SCOPE, $scope);
     $res = $this->doSelect($crit);
     return $res;
 }
開發者ID:ronaldbroens,項目名稱:thebuggenie,代碼行數:8,代碼來源:TBGGroupsTable.class.php

示例14: removeFriendByUserID

 public function removeFriendByUserID($user_id, $friend_id)
 {
     $crit = $this->getCriteria();
     $crit->addWhere(self::UID, $user_id);
     $crit->addWhere(self::BID, $friend_id);
     $crit->addWhere(self::SCOPE, TBGContext::getScope()->getID());
     $this->doDelete($crit);
 }
開發者ID:oparoz,項目名稱:thebuggenie,代碼行數:8,代碼來源:TBGBuddiesTable.class.php

示例15: clearDefaultsByEditionID

 public function clearDefaultsByEditionID($edition_id)
 {
     $crit = $this->getCriteria();
     $crit->addUpdate(self::IS_DEFAULT, false);
     $crit->addWhere(self::SCOPE, TBGContext::getScope()->getID());
     $crit->addWhere(self::EDITION, $edition_id);
     $res = $this->doUpdate($crit);
 }
開發者ID:ronaldbroens,項目名稱:thebuggenie,代碼行數:8,代碼來源:TBGBuildsTable.class.php


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