コード例 #1
0
 /**
  * @param mixed|null $object
  * @return void
  */
 public function reset($object = null)
 {
     if (empty($object)) {
         $this->file->clearLockFile();
         return;
     } else {
         $data = $this->file->getData();
         if (!empty($data[$this->getName($object)])) {
             unset($data[$this->getName($object)]);
             $this->file->saveData($data);
         }
     }
 }