Example #1
0
 public function testSelectAll()
 {
     $result = Log::selectAll();
     $this->assertEquals(2, sizeof($result));
     foreach ($result as $row) {
         $this->assertTrue($row instanceof \Extasy\Audit\Log);
     }
 }
Example #2
0
 protected function action()
 {
     $data = Log::selectAll();
     $result = array();
     foreach ($data as $row) {
         $result[] = array('name' => $row->name->getViewValue(), 'description' => $row->description->getViewValue(), 'critical' => $row->critical->getValue(), 'enable_logging' => $row->enable_logging->getValue());
     }
     return $result;
 }