00001 <?php
00002
00012 abstract class TKAction extends SObject {
00021 public abstract function getInvocation();
00022
00023
00024
00025
00026
00034 protected function addExtraCSS($slot, $css) {
00035 Toolkit::globalAddExtraCSS($slot, $css);
00036 }
00037
00045 protected function addExtraJS($slot, $js) {
00046 Toolkit::globalAddExtraJS($slot, $js);
00047 }
00048
00056 protected function addHiddenForm($name, $form) {
00057 Toolkit::globalAddHiddenForm($name, $form);
00058 }
00059
00071 protected static function convertAction($evt) {
00072 $attrs = $evt['attrs'];
00073
00074 $actionName = (string)$attrs['action'];
00075 $action = call_user_func(array($actionName, 'createFromXML'), $evt['attrs'], $evt['children']);
00076 return $action;
00077 }
00078
00079 public static function createFromXML($attrs, $children) {
00080 TKComponent::setStaticError("This action does not support HTML/XML embedding!");
00081 return null;
00082 }
00083 }
00084
00085 ?>