code: public function addAction($action, $function, $protect = true)
      {
          $this->actions[$action] = $function;
          $this->protected[$action] = $protect;
  
          return $this->actions;
      }
docs: /*
  Public: Add action