Changeset 1154 for branches/1.0.x/testapp
- Timestamp:
- 11/08/08 11:39:28 (2 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.0.x/testapp/modules/testapp/controllers/default.cmdline.php
r780 r1154 14 14 15 15 protected $allowed_parameters = array( 16 'index' => array()); 16 'index' => array(), 17 'other'=>array('aaa'=>true,'bbb'=>false) 18 ); 19 20 21 public $help = array('index'=>'', 22 'other'=>'Just display a message, it accepts a first parameter and an optional second one'); 23 17 24 18 25 /** … … 24 31 return $rep; 25 32 } 33 34 /** 35 * 36 */ 37 function other() { 38 $rep = $this->getResponse(); 39 $rep->content = "given parameters:\naaa=".$this->param('aaa')."\nbbb=".$this->param('bbb')."\n"; 40 return $rep; 41 } 26 42 } 27 ?>
