Esempio n. 1
0
 /**
  * Render a move storage URI.
  *
  * @return string
  */
 public function render()
 {
     $urlParameters = array(VidiModule::getParameterPrefix() => array('controller' => 'Content', 'action' => 'move', 'fieldNameAndPath' => $this->templateVariableContainer->get('fieldNameAndPath'), 'matches' => $this->templateVariableContainer->get('matches')));
     $moduleUrl = BackendUtility::getModuleUrl(VidiModule::getSignature(), $urlParameters);
     // Work around a bug in BackendUtility::getModuleUrl if matches is empty getModuleUrl() will not return the parameter.
     $matches = $this->templateVariableContainer->get('matches');
     if (empty($matches)) {
         $moduleUrl .= '&' . urlencode(VidiModule::getParameterPrefix() . '[matches]=');
     }
     return $moduleUrl;
 }
Esempio n. 2
0
    public function JStop()
    {
        $result = parent::JStop();
        $result .= '
<script>
	var vidiModuleUrl = \'' . BackendUtility::getModuleUrl(VidiModule::getSignature()) . '\';
	var vidiModulePrefix = \'' . VidiModule::getParameterPrefix() . '\';
</script>
		';
        return $result;
    }
 /**
  * @return string
  */
 protected function getModuleUrl()
 {
     $additionalParameters = array(VidiModule::getParameterPrefix() => array('plugins' => array('imageEditor'), 'matches' => array('type' => 2)));
     $moduleUrl = BackendUtility::getModuleUrl(VidiModule::getSignature(), $additionalParameters);
     return GeneralUtility::quoteJSvalue($moduleUrl);
 }
Esempio n. 4
0
 /**
  * Returns the BE module signature.
  *
  * @return string
  */
 public function render()
 {
     return VidiModule::getSignature();
 }