芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/fmd/lib/Factory/BandwidthFactory.php
setCommonDependencies($store, $log, $sanitizerService); } /** * @return Bandwidth */ public function createEmpty() { return new Bandwidth($this->getStore(), $this->getLog()); } /** * Create and Save Bandwidth record * @param int $type * @param int $displayId * @param int $size * @return Bandwidth */ public function createAndSave($type, $displayId, $size) { $bandwidth = $this->createEmpty(); $bandwidth->type = $type; $bandwidth->displayId = $displayId; $bandwidth->size = $size; $bandwidth->save(); return $bandwidth; } }