tag = $tag; $this->is_inline = $is_inline; $this->handler = $handler; $this->is_self_closing = $is_self_closing; $this->closing_tags = $closing_tags; $this->accepted_children = $accepted_children; $this->auto_detect_exclude = $auto_detect_exclude; } /** * Gets the tag name this BBCode is for * @return string */ public function tag() { return $this->tag; } /** * Gets if this BBCode is inline or if it's block * @return bool */ public function is_inline() { return $this->is_inline; } /** * Gets if this BBCode is self closing * @return bool */ public function is_self_closing() { return $this->is_self_closing; } /** * Gets the format string/handler for this BBCode * @return mixed String or function */ public function handler() { return $this->handler; } /** * Gets an array of tags which will cause this tag to be closed * @return array */ public function closing_tags() { return $this->closing_tags; } /** * Gets an array of tags which are allowed as children of this tag * @return array */ public function accepted_children() { return $this->accepted_children; } /** * Which auto detections this BBCode should be excluded from * @return int */ public function auto_detect_exclude() { return $this->auto_detect_exclude; } }