예제 #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;
 }
예제 #2
0
파일: FormEngine.php 프로젝트: visol/media
    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);
 }
예제 #4
0
 /**
  * Returns the BE module signature.
  *
  * @return string
  */
 public function render()
 {
     return VidiModule::getSignature();
 }