Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/main/inc/lib/formvalidator/Element/SelectTheme.php

28 lines
756 B

<?php
/* For licensing terms, see /license.txt */
/**
* A dropdownlist with all themes to use with QuickForm
*/
class SelectTheme extends HTML_QuickForm_select
{
/**
* Class constructor
*/
public function __construct(
$elementName = null,
$elementLabel = null,
$options = null,
$attributes = null
) {
parent::__construct($elementName, $elementLabel, $options, $attributes);
// Get all languages
$themes = api_get_themes();
$this->_options = array();
$this->_values = array();
$this->addOption('--', ''); // no theme select
foreach ($themes as $themeValue => $themeName) {
$this->addOption($themeName, $themeValue);
}
}
}