예제 #1
0
 function Test_for_StatusKeys()
 {
     $Object = new Ak();
     $this->assertFalse(Ak::objectHasBeenModified($Object));
     $this->assertEqual(Ak::getStatusKey($Object), Ak::getStatusKey($Object));
     $Object->name = 'Bermi';
     $this->assertTrue(Ak::objectHasBeenModified($Object));
     $this->assertTrue(Ak::objectHasBeenModified($Object));
     Ak::resetObjectModificationsWacther($Object);
     $this->assertFalse(Ak::objectHasBeenModified($Object));
 }
예제 #2
0
 function hasBeenModified()
 {
     return Ak::objectHasBeenModified($this);
 }