当前位置: 首页>>代码示例>>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;未经允许,请勿转载。