Beispiel #1
0
 /**
  * Уменьшает счетчик загруженных пользователем файлов
  * @return bool
  */
 public function decreaseFilesCount()
 {
     $this->files_count--;
     $model = new cmsModel();
     $model->filterEqual('id', $this->id);
     return $model->decrement('{users}', 'files_count');
 }