Ejemplo n.º 1
0
			</div>
		</div>
	</div>

	<div class="form-group">
		<?php 
echo $this->form->getLabel('path', 'main');
?>
		<div class="form-inline col-sm-10">
			<div class="input-group">
				<div class="input-group-addon hasTooltip" title="<?php 
echo JText::_('COM_REDCORE_WEBSERVICE_PATH_DESCRIPTION');
?>
">
					/<?php 
echo RApiHalHelper::getWebservicesRelativePath();
?>
/
				</div>
				<?php 
echo $this->form->getInput('path', 'main');
?>
				<span class="input-group-addon hasTooltip" title="<?php 
echo JText::_('COM_REDCORE_WEBSERVICE_FILE_DESCRIPTION');
?>
">
					/<?php 
echo $this->form->getValue('xmlFile', 'main');
?>
				</span>
			</div>
Ejemplo n.º 2
0
 /**
  * Method to determine the wsdl file name
  *
  * @param   string  $client          Client
  * @param   string  $webserviceName  Name of the webservice
  * @param   string  $version         Suffixes to the file name (ex. 1.0.0)
  * @param   string  $extension       Extension of the file to search
  * @param   string  $path            Path to webservice files
  *
  * @return  string  The full path to the api file
  *
  * @since   1.4
  */
 public static function getWebserviceFilePath($client, $webserviceName, $version = '', $extension = 'xml', $path = '')
 {
     JLoader::import('joomla.filesystem.path');
     if (!empty($webserviceName)) {
         $version = !empty($version) ? JPath::clean($version) : '1.0.0';
         $webservicePath = !empty($path) ? RApiHalHelper::getWebservicesRelativePath() . '/' . $path : RApiHalHelper::getWebservicesRelativePath();
         $rawPath = $webserviceName . '.' . $version;
         $rawPath = !empty($extension) ? $rawPath . '.' . $extension : $rawPath;
         $rawPath = !empty($client) ? $client . '.' . $rawPath : $rawPath;
         return $webservicePath . '/' . $rawPath;
     }
     return '';
 }