1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class myClass extends Page {
	
	private static $db = array(
		'myVar' => 'Int'
	);
	
}

class myClass_Controller extends Page_Controller {
	
	public static $allowed_actions = array(
		'makeUpdate' => 'ADMIN'
	);
	
	public function makeUpdate() {
		
		$this->myVar = 999;
		$this->write();
		
	}
	
}