Ejemplo n.º 1
0
 /**
  * Prepare Layout
  *
  * @return Mage_Core_Block_Abstract
  */
 protected function _prepareLayout()
 {
     /* @var $block Mage_Core_Block_Abstract */
     $block = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('pimgento_core')->__('Execute'), 'onclick' => 'taskExecutor.run(this.rel);', 'class' => 'save'));
     $this->setChild('execute_button', $block);
     return parent::_prepareLayout();
 }
Ejemplo n.º 2
0
    public function __construct()
    {
        parent::__construct();
        $this->setTemplate('n98/infofiles/uploader.phtml');
        $url = Mage::getModel('adminhtml/url')->addSessionParam()->getUrl('*/files/upload');
//      the next line can be uncommeted to debug the uploading via xdebug (in netbeans)
//      $url.= "&XDEBUG_SESSION_START=netbeans-xdebug";
        $this->getConfig()->setUrl($url);
    }
Ejemplo n.º 3
0
 public function __construct()
 {
     parent::__construct();
     $this->setUseAjax(true);
     $this->setId($this->getId() . '_Uploader');
     $this->setTemplate('halo_slideshow/uploader.phtml');
     $this->getConfig()->setUrl(Mage::getModel('adminhtml/url')->addSessionParam()->getUrl('*/*/upload'));
     $this->getConfig()->setParams(array('form_key' => $this->getFormKey()));
     $this->getConfig()->setFileField('file');
     $this->getConfig()->setFilters(array('media' => array('label' => Mage::helper('adminhtml')->__('Images (.jpg, .jpeg, .png, .gif)'), 'files' => array('*.jpg', '*.jpeg', '*.png', '*.gif'))));
 }
Ejemplo n.º 4
0
 public function __construct()
 {
     parent::__construct();
     $this->setUseAjax(true);
     $this->setId($this->getId() . '_Uploader');
     $this->setTemplate('mediauploadsourcewidget/uploader.phtml');
     $this->getConfig()->setUrl(Mage::getModel('adminhtml/url')->addSessionParam()->getUrl('*/*/upload'));
     $this->getConfig()->setParams(array('form_key' => $this->getFormKey()));
     $this->getConfig()->setFileField('file');
     $this->getConfig()->setFilters(array('media' => array('label' => Mage::helper('adminhtml')->__('Media (.avi, .flv, .swf, .mp3, .wmv)'), 'files' => array('*.avi', '*.flv', '*.swf', '*.mp3', '*.wmv'))));
 }
Ejemplo n.º 5
0
 public function __construct()
 {
     parent::__construct();
     $params = $this->getConfig()->getParams();
     $type = $this->_getMediaType();
     $allowed = Mage::getSingleton('cms/wysiwyg_images_storage')->getAllowedExtensions($type);
     $labels = array();
     $files = array();
     foreach ($allowed as $ext) {
         $labels[] = '.' . $ext;
         $files[] = '*.' . $ext;
     }
     $this->getConfig()->setUrl(Mage::getModel('adminhtml/url')->addSessionParam()->getUrl('*/*/upload', array('type' => $type)))->setParams($params)->setFileField('image')->setFilters(array('images' => array('label' => $this->helper('cms')->__('Images (%s)', implode(', ', $labels)), 'files' => $files)));
 }
Ejemplo n.º 6
0
 protected function _construct()
 {
     parent::_construct();
     $params = $this->getConfig()->getParams();
     $type = $this->_getMediaType();
     $allowed = Mage::getSingleton('Mage_Cms_Model_Wysiwyg_Images_Storage')->getAllowedExtensions($type);
     $labels = array();
     $files = array();
     foreach ($allowed as $ext) {
         $labels[] = '.' . $ext;
         $files[] = '*.' . $ext;
     }
     $this->getConfig()->setUrl(Mage::getModel('Mage_Backend_Model_Url')->addSessionParam()->getUrl('*/*/upload', array('type' => $type)))->setParams($params)->setFileField('image')->setFilters(array('images' => array('label' => $this->helper('Mage_Cms_Helper_Data')->__('Images (%s)', implode(', ', $labels)), 'files' => $files)));
 }
Ejemplo n.º 7
0
 /**
  * Get maximum file size to upload in bytes
  *
  * @return int
  */
 protected function _getFileMaxSize()
 {
     return $this->_mediaUploader->getDataMaxSizeInBytes();
 }
Ejemplo n.º 8
0
 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('dull/uploader/uploader.phtml');
 }
Ejemplo n.º 9
0
 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('unirgy/udprod/vendor/product/cfguploader.phtml');
 }
Ejemplo n.º 10
0
 public function __construct()
 {
     parent::__construct();
     $this->setTemplate("my_igallery/uploader.phtml");
 }