Ejemplo n.º 1
0
 public function getAll($version, $versions, $oldLayout)
 {
     /* Remove the current version from the versions array. */
     if ($version != 'DEV') {
         $key = array_search($version, $versions);
         unset($versions[$key]);
     }
     $filename = DIR_COMPAT . "/compat-{$version}.xml";
     $last_updated = date("F d, Y", @filemtime($filename));
     $compat_data = CompatibilityModel::getAllData($version);
     global $Smarty;
     $this->addCSSFiles(array('chart.css', 'compatibility.css'));
     return $this->renderPage(array('title' => preg_replace('/{version}/', $version, $Smarty->_config[0]['vars']['compatibilityTitle']), 'content_title' => preg_replace('/{version}/', $version, $Smarty->_config[0]['vars']['compatibilityContentTitle']), 'version' => $version, 'compat_data' => $compat_data, 'last_updated' => $last_updated, 'versions' => $versions, 'old_layout' => $oldLayout, 'support_level_desc' => $this->_supportLevelDesc, 'support_level_class' => $this->_supportLevelClass), $this->_template);
 }
Ejemplo n.º 2
0
 public function getAll($version, $oldLayout)
 {
     /* Default to DEV */
     $versions = CompatibilityModel::getAllVersions();
     if (!in_array($version, $versions)) {
         $version = 'DEV';
     }
     /* Remove the current version from the versions array. */
     if ($version != 'DEV') {
         $key = array_search($version, $versions);
         unset($versions[$key]);
     }
     $filename = DIR_COMPAT . "/compat-{$version}.xml";
     $last_updated = date("F d, Y", @filemtime($filename));
     $compat_data = CompatibilityModel::getAllData($version);
     $this->addCSSFiles(array('chart.css', 'compatibility.css'));
     return $this->renderPage(array('title' => "Compatibility - {$version}", 'content_title' => "{$version} Compatibility", 'version' => $version, 'compat_data' => $compat_data, 'last_updated' => $last_updated, 'versions' => $versions, 'old_layout' => $oldLayout, 'support_level_desc' => $this->_supportLevelDesc, 'support_level_class' => $this->_supportLevelClass), $this->_template);
 }