About box - alpha version

SVN:trunk[3005]
This commit is contained in:
Romain Quetiez
2013-11-29 10:50:53 +00:00
parent 9e4b25e833
commit 5f98c0dcab
6 changed files with 201 additions and 11 deletions

View File

@@ -1394,7 +1394,25 @@ EOF
}
return false;
}
/**
* Returns an array of xml nodes describing the licences
*/
static public function GetLicenses()
{
$aLicenses = array();
foreach (glob(APPROOT.'setup/licenses/*.xml') as $sFile)
{
$oXml = simplexml_load_file($sFile);
foreach($oXml->license as $oLicense)
{
$aLicenses[] = $oLicense;
}
}
return $aLicenses;
}
}
/**
* Helper class to write rules (as PHP expressions) in the 'auto_select' field of the 'module'
*/