00001 <?php 00002 00007 class TKAlertAction extends TKAction { 00008 protected $msg; 00009 00014 public function __construct($msg) { 00015 parent::__construct(); 00016 $this->msg = $msg; 00017 } 00018 00020 public function getInvocation() { 00021 return "alert('$this->msg')"; 00022 } 00023 00025 public static function createFromXML($attrs, $children) { 00026 $msg = $attrs['msg']; 00027 $obj = new TKAlertAction($msg); 00028 return $obj; 00029 } 00030 } 00031 00032 ?>
1.5.6