[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/diffusion/query/lowlevel/ -> DiffusionLowLevelQuery.php (source)

   1  <?php
   2  
   3  abstract class DiffusionLowLevelQuery extends Phobject {
   4  
   5    private $repository;
   6  
   7    abstract protected function executeQuery();
   8  
   9    public function setRepository(PhabricatorRepository $repository) {
  10      $this->repository = $repository;
  11      return $this;
  12    }
  13  
  14    public function getRepository() {
  15      return $this->repository;
  16    }
  17  
  18    public function execute() {
  19      if (!$this->getRepository()) {
  20        throw new Exception('Call setRepository() before execute()!');
  21      }
  22  
  23      return $this->executeQuery();
  24    }
  25  
  26  }


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1