Esempio n. 1
0
 /**
  * Returns HTML for the index type selector
  *
  * @return string HTML for the index type selector
  */
 public function generateIndexTypeSelector()
 {
     $types = array("" => "--");
     foreach (Index::getIndexTypes() as $type) {
         $types[$type] = $type;
     }
     return Util::getDropdown("index[Index_type]", $types, $this->_type, "select_index_type");
 }
Esempio n. 2
0
 /**
  * Tests some config functions.
  */
 public function testConfigFunctions()
 {
     // Create new schema
     $index = new Index();
     // Check return types
     $this->assertTrue(is_array($index->attributeLabels()));
     $this->assertTrue(is_array($index->rules()));
     $this->assertTrue(is_array($index->relations()));
     $this->assertTrue(is_array(Index::getIndexTypes()));
 }