コード例 #1
0
 /**
  * Sets the error cache to TRUE and propagates the information
  * upwards the Result-Object Tree
  *
  * @return void
  */
 protected function setErrorsExist()
 {
     $this->errorsExist = true;
     if ($this->parent !== null) {
         $this->parent->setErrorsExist();
     }
 }
コード例 #2
0
 /**
  * Sets the error cache to TRUE and propagates the information
  * upwards the Result-Object Tree
  *
  * @return void
  */
 protected function setErrorsExist()
 {
     $this->errorsExist = TRUE;
     if ($this->parent !== NULL) {
         $this->parent->setErrorsExist();
     }
 }
コード例 #3
0
ファイル: Result.php プロジェクト: khanhdeux/typo3test
 /**
  * Injects the parent result and propagates the
  * cached error states upwards
  *
  * @param \TYPO3\CMS\Extbase\Error\Error $parent
  * @return void
  */
 public function setParent(Result $parent)
 {
     if ($this->parent !== $parent) {
         $this->parent = $parent;
         if ($this->hasErrors()) {
             $parent->setErrorsExist();
         }
         if ($this->hasWarnings()) {
             $parent->setWarningsExist();
         }
         if ($this->hasNotices()) {
             $parent->setNoticesExist();
         }
     }
 }