예제 #1
0
 /**
  * Check for key correctness
  *
  * @throws Exception
  */
 public function checkCorrectKey()
 {
     $isValid = true;
     //validate the key
     //This piece of code need to be executed every time
     try {
         $isValid = $this->mymemory_engine->checkCorrectKey($this->tm_key);
     } catch (Exception $e) {
         /* PROVIDED KEY IS NOT VALID OR WRONG, Key IS NOT SET */
         Log::doLog($e->getMessage());
         throw $e;
     }
     return $isValid;
 }