Blame view

protected/modules/admin/components/ContactsSelect.php 473 Bytes
a1684257   Administrator   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  <?php
  /**
   * Created by JetBrains PhpStorm.
   * User: z_bodya
   * Date: 8/18/12
   * Time: 8:15 PM
   * To change this template use File | Settings | File Templates.
   */
  Yii::import('MultiSelect');
  class ContactsSelect extends MultiSelect
  {
  
      public function init()
      {
          parent::init();
          $this->htmlOptions['style'] = 'min-width:600px; min-height:200px;';
          $this->data = Contact::listWithSelected(CHtml::value($this->model, $this->attribute));
      }
  
  }