コード例 #1
0
 public function getone()
 {
     $i = rand(1, 999);
     $testObject = TestObject::get()->first();
     $content .= 'TestObject::get()->first() <br>';
     return $this->customise(new ArrayData(array('Title' => "Performance: {$this->dbType} get one", 'Content' => $content)))->renderWith(array('PerformanceController', 'AppController'));
 }
コード例 #2
0
 public function TestObjects()
 {
     return TestObject::get()->sort('@RID', 'DESC');
 }