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