28 public abstract function install();
41 public abstract function doAction($event);
48 public abstract function doShortCode($shortCode, $params);
58 if ($this->context === null)
59 $this->context = $context;
70 if ($this->entity === null)
71 $this->entity = $entity;
80 $this->context->hooks->register($this, $hookname);
90 case "context":
return $this->context;
break;
91 case "entity":
return $this->entity;
break;
93 throw new \Exception(
"Cannot access attribute {$key}");