コード例 #1
0
 public function getImageData()
 {
     $ret = parent::getImageData();
     if (!$ret) {
         $ret = $this->getData()->parent->getComponent()->getImageData();
     }
     return $ret;
 }
コード例 #2
0
 public function getImageData()
 {
     $ret = parent::getImageData();
     if ($ret && Kwc_Abstract::getSetting($this->_getSetting('masterImageComponentClass'), 'editFilename')) {
         $fn = $this->getData()->parent->getComponent()->getRow()->filename;
         if (!$fn) {
             $fn = $this->getData()->parent->chained->getComponent()->getRow()->filename;
         }
         if ($fn) {
             $fileRow = $this->getRow()->getParentRow('Image');
             $ret['filename'] = $fn . '.' . $fileRow->extension;
         }
     }
     return $ret;
 }