/**
  * View for <param  type="private" class="cbpaidParamsExt" method="versionlicensecheck">...
  *
  * @param  string              $value                  Stored Data of Model Value associated with the element
  * @param  ParamsInterface     $pluginParams           Main settigns parameters of the plugin
  * @param  string              $name                   Name attribute
  * @param  CBSimpleXMLElement  $param                  This XML node
  * @param  string              $control_name           Name of the control
  * @param  string              $control_name_name      css id-encode of the names of the controls surrounding this node
  * @param  boolean             $view                   TRUE: view, FALSE: edit
  * @param  cbpaidTable         $modelOfData            Data of the Model corresponding to this View
  * @param  cbpaidTable[]       $modelOfDataRows        Displayed Rows if it is a table
  * @param  int                 $modelOfDataRowsNumber  Total Number of rows
  * @return null|string
  */
 public function versionlicensecheck($value, &$pluginParams, $name, &$param, $control_name, $control_name_name, $view, &$modelOfData, &$modelOfDataRows, &$modelOfDataRowsNumber)
 {
     $paramValue = $param->attributes('value');
     $return = array();
     $paramValuesArray = explode(' ', $paramValue);
     foreach ($paramValuesArray as $v) {
         $return[] = cbpaidVersionMgr::getVersionAttr($v, true);
     }
     return implode(' ', $return);
 }
 /**
  * Called upon
  * administrator/index3.php?option=com_comprofiler&view=pluginmenu&cid=566&menu=ajversion&no_html=1&format=raw
  *
  * @return string HTML
  */
 protected function ajversion()
 {
     global $_GET;
     if ($_GET['mode'] == 'updatesonly') {
         $silent = true;
     } else {
         $silent = false;
     }
     include_once dirname(__FILE__) . '/cbpaidsubscriptions.php';
     return cbpaidVersionMgr::latestVersion($silent);
 }