Beispiel #1
0
 /**
  * tests some config
  */
 public function testConfig()
 {
     $this->assertType('StorageEngine', StorageEngine::model());
     $this->assertType('array', StorageEngine::getPackKeyOptions());
     $model = StorageEngine::model();
     $this->assertType('array', $model->attributeNames());
 }
Beispiel #2
0
	<table class="form">
		<colgroup>
			<col class="col1"/>
			<col class="col2" />
			<col class="col3" />
		</colgroup>
		<tbody>
			<tr>
				<td>
					<?php 
echo CHtml::activeLabel($table, 'optionPackKeys');
?>
				</td>
				<td colspan="2">
					<?php 
echo CHtml::activeDropDownList($table, 'optionPackKeys', StorageEngine::getPackKeyOptions());
?>
				</td>
			</tr>
			<tr>
				<td>
					<?php 
echo CHtml::activeLabel($table, 'optionDelayKeyWrite');
?>
				</td>
				<td colspan="2">
					<?php 
echo CHtml::activeCheckBox($table, 'optionDelayKeyWrite');
?>
				</td>
			</tr>