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