~ubuntu-branches/ubuntu/wily/phabricator/wily-proposed

« back to all changes in this revision

Viewing changes to phabricator/src/infrastructure/storage/lisk/LiskDAOSet.php

  • Committer: Package Import Robot
  • Author(s): Richard Sellam
  • Date: 2015-05-25 22:45:19 UTC
  • mfrom: (0.29.1) (0.28.1) (0.27.1) (9.1.1 wily)
  • Revision ID: package-import@ubuntu.com-20150525224519-x791swte8e0ndv8c
Tags: 0~git20150525-1
* New snapshot release
* fix update postinst when using nginx (closes: #784221)

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
  public function addToSet(LiskDAO $dao) {
29
29
    if ($this->relatives) {
30
 
      throw new Exception("Don't call addToSet() after loading data!");
 
30
      throw new Exception(
 
31
        pht(
 
32
          "Don't call %s after loading data!",
 
33
          __FUNCTION__.'()'));
31
34
    }
32
35
    $this->daos[] = $dao;
33
36
    $dao->putInSet($this);
38
41
   * The main purpose of this method is to break cyclic dependency.
39
42
   * It removes all objects from this set and all subsets created by it.
40
43
   */
41
 
  final public function clearSet() {
 
44
  public function clearSet() {
42
45
    $this->daos = array();
43
46
    $this->relatives = array();
44
47
    foreach ($this->subsets as $set) {