コード例 #1
0
 protected function checkService()
 {
     $SPLInstalled = InstallUtil::checkSPL();
     if ($SPLInstalled) {
         $this->message = Zurmo::t('InstallModule', 'SPL extension is loaded.');
         return true;
     } else {
         $this->message = Zurmo::t('InstallModule', 'SPL extension is not loaded.');
         return false;
     }
 }
コード例 #2
0
 /**
  * Simple test to confirm the check doesnt break.
  */
 public function testCheckSPL()
 {
     $this->assertNotNull(InstallUtil::checkSPL());
 }