CHtml Helper and "complex" list boxes (multiple / disabled)

How to create this valid xhtml code with the CHtml helper:

<select multiple name="foo">


	<option disabled>------</option>


	<option value="a">first val</option>


	<option value="b">second val</option>


	<option disabled>------</option>


</select>

?

I couldn't find any way for getting "disabled" and "multiple" right.

Note: the items are actually RBAC items from the AuthItem table and I want to sepparate operations, tasks and roles.

Please check the API doc for CHtml::listOptions(). This method is used by CHtml::listBox/dropDownList to convert list data into HTML options.

Quote

Please check the API doc for CHtml::listOptions(). This method is used by CHtml::listBox/dropDownList to convert list data into HTML options.

Great, it works as I expected:

echo CHtml::activeListBox($form,'authItems',CHtml::listData($form->authItems,'name','description','type'),array('multiple' => TRUE,'size' => 3+count($form->authItems)));

where $authItems comes from:

class RbacAttachItemForm extends CFormModel {


	public $authItems;





	public function __construct($attributes=array(),$scenario='') {


		$this->authItems = Yii::app()->authManager->getAuthItems();


		parent::__construct($attributes,$scenario);


	}


}

The only thing is, it renders the type as numbers, which is quite logical. How can I get the objects (CAuthItems) to have a new property containing a human-friendly name for the type they're holding?