Skip to content

Instantly share code, notes, and snippets.

@gartes
Last active May 19, 2018 11:00
Show Gist options
  • Select an option

  • Save gartes/863bde9174abff1ca2043f002d45ab05 to your computer and use it in GitHub Desktop.

Select an option

Save gartes/863bde9174abff1ca2043f002d45ab05 to your computer and use it in GitHub Desktop.
Тест методов
/**
* /libraries/cms/version/version.php
* Sets the media version which is used to append to Joomla core media files.
*
* @param string $mediaVersion The media version.
*
* @return JVersion Instance of $this to allow chaining.
*
* @since 3.2
*/
public function setMediaVersion($mediaVersion)
{
// Do not allow empty media versions
if (!empty($mediaVersion))
{
// Get library parameters
$params = JLibraryHelper::getParams('joomla');
$params->set('mediaversion', $mediaVersion);
// echo '<pre>';print_r( $mediaVersion );echo'</pre>';die('<br/>'.__FILE__.' -line:'.__LINE__.'<br/>');
// Save modified params
// JLibraryHelper::saveParams('joomla', $params);
}
return $this;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment