コード例 #1
0
 /**
  * @param Tx_Smoothmigration_Domain_Model_Issue $issue
  *
  * @return mixed
  */
 public function render($issue)
 {
     $check = Tx_Smoothmigration_Service_Check_Registry::getInstance()->getActiveCheckByIdentifier($issue->getInspection());
     if ($check !== NULL) {
         $this->templateVariableContainer->add('explanation', $check->getResultAnalyzer()->getExplanation($issue));
         $this->templateVariableContainer->add('solution', $check->getResultAnalyzer()->getSolution($issue));
         $content = $this->renderChildren();
         $this->templateVariableContainer->remove('explanation');
         $this->templateVariableContainer->remove('solution');
     }
     return $content;
 }
コード例 #2
0
 /**
  * Add an issue
  *
  * @param Tx_Smoothmigration_Domain_Model_Issue $object
  *
  * @return void
  */
 public function add($object)
 {
     if ($GLOBALS['TYPO3_DB']->exec_SELECTcountRows('*', 'tx_smoothmigration_domain_model_issue', 'inspection = ' . $GLOBALS['TYPO3_DB']->fullQuoteStr($object->getInspection(), 'tx_smoothmigration_domain_model_issue') . ' AND identifier = ' . $GLOBALS['TYPO3_DB']->fullQuoteStr($object->getIdentifier(), 'tx_smoothmigration_domain_model_issue')) == 0) {
         parent::add($object);
     }
 }