/** * @param $width * @param $height * @return string */ public function thumb($width, $height) { /** @var Image $image */ if (!$this->_image) { $this->_image = $this->owner->image ? $this->owner->image->getThumbnail($width, $height) : FileModule::getInstance()->placeholderUrl; } return $this->_image; }
/** * @return FileModule */ public function getModule() { return FileModule::getInstance(); }
/** * @return string */ public function actionUpload() { return $this->render('upload', ['maxFileSize' => FileModule::getInstance()->maxFileSize]); }