YiiWheels
  • Package
  • Class
  • Tree

Packages

  • None
  • yiiwheels
    • behaviors
    • widgets
    • widgets
      • ace
      • box
      • datepicker
      • daterangepicker
      • datetimepicker
      • detail
      • fileupload
      • fileuploader
      • gallery
      • google
      • grid
        • behaviors
        • operations
      • highcharts
      • maskInput
      • maskmoney
      • modal
      • multiselect
      • rangeslider
      • redactor
      • select2
      • sparklines
      • switch
      • timeago
      • timepicker
      • toggle
      • typeahead

Classes

  • WhCountries
  • WhDatePickerHelper
  • WhDropDownInputWidget
  • WhFonts
  • WhFontSizes
  • WhGoogleFonts
  • WhInputWidget
  • WhLanguages
  • WhPhone
  • WhSelectBox
  • WhStates
  • WhTimePickerHelper
  • WhTimezones
 1 <?php
 2 /**
 3  *
 4  * WhCountries.php
 5  *
 6  * Date: 06/09/14
 7  * Time: 14:17
 8  * @author Antonio Ramirez <amigo.cobos@gmail.com>
 9  * @link http://www.ramirezcobos.com/
10  * @link http://www.2amigos.us/
11  */
12 Yii::import('yiiwheels.widgets.formhelpers.WhDropDownInputWidget');
13 
14 class WhLanguages extends WhDropDownInputWidget
15 {
16 
17     public function init()
18     {
19 
20         parent::init();
21         TbHtml::addCssClass('bfh-languages', $this->htmlOptions);
22 
23         if(!isset($this->htmlOptions['data-timezone'])) {
24             $this->htmlOptions['data-timezone'] = TbArray::popValue('data-value', $this->htmlOptions);
25         }
26         unset($this->htmlOptions['data-name'], $this->htmlOptions['data-value']);
27     }
28 
29     public function run()
30     {
31         if(!$this->readOnly) {
32             echo $this->dropDownList();
33         } else
34         {
35             echo CHtml::tag('span', $this->htmlOptions, '');
36         }
37 
38         $this->registerPlugin('bfhtimezones');
39     }
40 }
YiiWheels API documentation generated by ApiGen 2.8.0