Ejemplo n.º 1
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->_fileKey = $this->attribute;
     if ($this->thumbAttribute !== null) {
         $this->_thumbKey = $this->thumbAttribute;
     }
 }
Ejemplo n.º 2
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     if ($this->fileKey === null) {
         throw new InvalidConfigException("Property 'fileKey' must be specified.");
     }
     $this->_fileKey = $this->fileKey;
     if ($this->thumbKey !== null) {
         $this->_thumbKey = $this->thumbKey;
     }
 }