Свойство | Тип | Описание | |
---|---|---|---|
$media | A list of records from the Media table, indexed by MediaID. | ||
$nbbc | An instance of Nbbc\BBcode. |
Метод | Описание | |
---|---|---|
doAttachment ( Nbbc\BBCode $bbcode, integer $action, string $name, string $default, array $params, string $content ) : string | Perform formatting against a string for the attach tag. | |
doImage ( Nbbc\BBCode $bbcode, integer $action, string $name, string $default, array $params, string $content ) : boolean | string | Perform formatting against a string for the img tag. | |
doQuote ( Nbbc\BBCode $bbcode, integer $action, string $name, string $default, array $params, string $content ) : boolean | string | Perform formatting against a string for the quote tag. | |
doSize ( Nbbc\BBCode $bbcode, integer $action, string $name, string $default, array $params, string $content ) : string | Perform formatting against a string for the size tag. | |
doURL ( Nbbc\BBCode $bbcode, integer $action, string $name, string $default, array $params, string $content ) : boolean | string | Perform formatting against a string for the url tag. | |
doVideo ( Nbbc\BBCode $bbcode, integer $action, string $name, string $default, array $params, string $content ) : string | Perform formatting against a string for the video tag. | |
doYoutube ( Nbbc\BBCode $bbcode, integer $action, string $name, string $default, array $params, string $content ) : boolean | string | Perform formatting against a string for the youtube tag | |
format ( string $bbcode ) : string | Parse the provided BBCode into an HTML string. | |
media ( ) : array | Build and return a list of attachments for the current page. | |
nbbc ( ) : Nbbc\BBCode | Create, configure and return an instance of Nbbc\BBcode. | |
removeAttachment ( ) : string | Custom handler for the attachment tag. |
public doAttachment ( Nbbc\BBCode $bbcode, integer $action, string $name, string $default, array $params, string $content ) : string | ||
$bbcode | Nbbc\BBCode | Instance of Nbbc doing the parsing. |
$action | integer | Value of one of NBBC's defined constants. Typically, this will be BBCODE_CHECK. |
$name | string | Name of the tag. |
$default | string | Value of the _default parameter, from the $params array. |
$params | array | A standard set parameters related to the tag. |
$content | string | Value between the open and close tags, if any. |
Результат | string | Formatted value. |
public doImage ( Nbbc\BBCode $bbcode, integer $action, string $name, string $default, array $params, string $content ) : boolean | string | ||
$bbcode | Nbbc\BBCode | Instance of Nbbc doing the parsing. |
$action | integer | Value of one of NBBC's defined constants. Typically, this will be BBCODE_CHECK. |
$name | string | Name of the tag. |
$default | string | Value of the _default parameter, from the $params array. |
$params | array | A standard set parameters related to the tag. |
$content | string | Value between the open and close tags, if any. |
Результат | boolean | string | Formatted value. |
public doQuote ( Nbbc\BBCode $bbcode, integer $action, string $name, string $default, array $params, string $content ) : boolean | string | ||
$bbcode | Nbbc\BBCode | Instance of Nbbc doing the parsing. |
$action | integer | Value of one of NBBC's defined constants. Typically, this will be BBCODE_CHECK. |
$name | string | Name of the tag. |
$default | string | Value of the _default parameter, from the $params array. |
$params | array | A standard set parameters related to the tag. |
$content | string | Value between the open and close tags, if any. |
Результат | boolean | string | Formatted value. |
public doSize ( Nbbc\BBCode $bbcode, integer $action, string $name, string $default, array $params, string $content ) : string | ||
$bbcode | Nbbc\BBCode | Instance of Nbbc doing the parsing. |
$action | integer | Value of one of NBBC's defined constants. Typically, this will be BBCODE_CHECK. |
$name | string | Name of the tag. |
$default | string | Value of the _default parameter, from the $params array. |
$params | array | A standard set parameters related to the tag. |
$content | string | Value between the open and close tags, if any. |
Результат | string | Formatted value. |
public doURL ( Nbbc\BBCode $bbcode, integer $action, string $name, string $default, array $params, string $content ) : boolean | string | ||
$bbcode | Nbbc\BBCode | Instance of Nbbc doing the parsing. |
$action | integer | Value of one of NBBC's defined constants. Typically, this will be BBCODE_CHECK. |
$name | string | Name of the tag. |
$default | string | Value of the _default parameter, from the $params array. |
$params | array | A standard set parameters related to the tag. |
$content | string | Value between the open and close tags, if any. |
Результат | boolean | string | Formatted value. |
public doVideo ( Nbbc\BBCode $bbcode, integer $action, string $name, string $default, array $params, string $content ) : string | ||
$bbcode | Nbbc\BBCode | Instance of Nbbc doing the parsing. |
$action | integer | Value of one of NBBC's defined constants. Typically, this will be BBCODE_CHECK. |
$name | string | Name of the tag. |
$default | string | Value of the _default parameter, from the $params array. |
$params | array | A standard set parameters related to the tag. |
$content | string | Value between the open and close tags, if any. |
Результат | string | Formatted value. |
public doYoutube ( Nbbc\BBCode $bbcode, integer $action, string $name, string $default, array $params, string $content ) : boolean | string | ||
$bbcode | Nbbc\BBCode | Instance of Nbbc doing the parsing. |
$action | integer | Value of one of NBBC's defined constants. Typically, this will be BBCODE_CHECK. |
$name | string | Name of the tag. |
$default | string | Value of the _default parameter, from the $params array. |
$params | array | A standard set parameters related to the tag. |
$content | string | Value between the open and close tags, if any. |
Результат | boolean | string | Formatted value. |
public nbbc ( ) : Nbbc\BBCode | ||
Результат | Nbbc\BBCode |
public removeAttachment ( ) : string | ||
Результат | string |
protected $media |