Пример #1
0
 /**
  * @param string $task
  *
  * @return void
  */
 public function reset($task)
 {
     $rc = new \ReflectionClass($this);
     foreach ($rc->getConstants() as $n => $field) {
         if (!Text::startsWith($n, 'FIELD_')) {
             continue;
         }
         $this->adapter->delete($this->_formatKey($task, $field));
     }
 }