Beispiel #1
0
 public function testValidId()
 {
     $a = array();
     $a[] = self::$db->load(null);
     $a[] = self::$db->load('');
     $a[] = self::$db->load(0);
     $ex = array(null, null, null);
     $this->assertEquals($ex, $a);
 }
Beispiel #2
0
 /**
  * Save index
  */
 public function store()
 {
     $this->sort();
     // keep map sorted by key
     $this->db->save('_' . $this->name . '_index', array('name' => $this->name, 'type' => 'index', 'map' => $this->map, 'inverse' => $this->inverse));
 }