Functions

Make a given URL parameter an absolute URL; Fix any errors in it; Test it.

absoluteise_and_test_comcode_url(\URLPATH $given_url, \MEMBER $source_member, boolean $as_admin, \ID_TEXT $tag) : \URLPATH
package core_rich_media

Parameters

$given_url

\URLPATH

URL to fixup.

$source_member

\MEMBER

The member who is responsible for this Comcode

$as_admin

boolean

Whether to check as arbitrary admin

$tag

\ID_TEXT

Comcode tag name.

Returns

\URLPATHFixed URL.

Output a Comcode tag in WYSIWYG-editor format, for tidy editing.

add_wysiwyg_comcode_markup(string $tag, array $attributes, \Tempcode $embed, boolean $semihtml, \?integer $method = null) : \?string
package core_rich_media

Parameters

$tag

string

The Comcode tag

$attributes

array

The parameters

$embed

\Tempcode

The contents of the tag

$semihtml

boolean

Whether we are in semihtml mode

$method

\?integer

Display method (null: auto-detect)

Returns

\?stringThe HTML (null: render as native HTML)

Get the text with all the emoticon codes replaced with the correct XHTML. Emoticons are determined by your forum system.

apply_emoticons(string $text) : string

This is not used in the normal Comcode chain - it's for non-Comcode things that require emoticons (actually in reality it is used in the Comcode chain if the optimiser sees that a full parse is not needed)

package core_rich_media

Parameters

$text

string

The text to add emoticons to (assumption: that this is XHTML)

Returns

stringThe XHTML with the image-substitution of emoticons

Do some regular expression matches, locked correctly to single HTML elements. This is necessary to make sure nesting is handled correctly, which regular expressions cannot do on their own.

array_html_preg_replace(string $element, array $array, string $semihtml) : string
package core_rich_media

Parameters

$element

string

The element name to replace over

$array

array

A list of pairs: Pattern, Replacement

$semihtml

string

Haystack

Returns

stringResult

Shows an HTML page of all attachments we can access with selection buttons.

attachment_popup_script() 
package core_rich_media

Show the image of an attachment/thumbnail.

attachments_script() 
package core_rich_media

Check the Comcode is valid.

check_comcode(\LONG_TEXT $comcode, \?MEMBER $source_member = null, boolean $as_admin = false, \?object $connection = null, boolean $attachment_possibility = false
package core_rich_media

Parameters

$comcode

\LONG_TEXT

The Comcode to convert

$source_member

\?MEMBER

The member the evaluation is running as. This is a security issue, and you should only run as an administrator if you have considered where the Comcode came from carefully (null: current member)

$as_admin

boolean

Whether to explicitly execute this with admin rights. There are a few rare situations where this should be done, for data you know didn't come from a member, but is being evaluated by one.

$connection

\?object

The database connection to use (null: standard site connection)

$attachment_possibility

boolean

Whether there might be new attachments. If there are, we will check as lax- as attachments are always preserved by forcing lax parsing.

Check the specified URL for potentially malicious JavaScript/etc. If any is found, the hack attack is logged if in an active post request by the submitting member otherwise filtered out.

check_naughty_javascript_url(\MEMBER $source_member, \URLPATH $url, boolean $as_admin) : \URLPATH
package core_rich_media

Parameters

$source_member

\MEMBER

The member who submitted the URL

$url

\URLPATH

The URL to check

$as_admin

boolean

Whether to check as arbitrary admin

Returns

\URLPATHFiltered input URL.

Make text usable inside a string inside Comcode

comcode_escape(string $in) : string
package core_rich_media

Parameters

$in

string

Raw text

Returns

stringEscaped text

Outputs a Comcode tag helper dialog.

comcode_helper_script() 
package core_rich_media

Render a step of the Comcode tag helper dialog.

comcode_helper_script_step1() : \Tempcode
package core_rich_media

Returns

\TempcodeThe step UI.

Render a step of the Comcode tag helper dialog.

comcode_helper_script_step2() : \Tempcode
package core_rich_media

Returns

\TempcodeThe step UI.

Render a step of the Comcode tag helper dialog.

comcode_helper_script_step3() : \Tempcode
package core_rich_media

Returns

\TempcodeThe step UI.

Show a Comcode parser error.

comcode_parse_error(boolean $preparse_mode, array $_message, integer $pos, \LONG_TEXT $comcode, boolean $check_only = false) : \Tempcode
package core_rich_media

Parameters

$preparse_mode

boolean

Whether this is being pre-parsed, to pick up errors before row insertion.

$_message

array

Error message details to pass to do_lang, or if the first in the list is NULL, use directly

$pos

integer

The position during parsing that the error occurred at

$comcode

\LONG_TEXT

The Comcode the parser error occurred in

$check_only

boolean

Whether to only check the Comcode.

Returns

\TempcodeAn error message to put in the output stream (shown in certain situations, where in other situations we bomb out).

Do a regular expression match, locked correctly to single Comcode elements. This is necessary to make sure nesting is handled correctly, which regular expressions cannot do on their own.

comcode_preg_replace(string $element, string $pattern, mixed $replacement, string $semihtml) : string

This is a good test case: exit(comcode_preg_replace('test','#[test](.*)[/test]#','>${1}<','[test]x[test a]y[/test]z[/test]'));

package core_rich_media

Parameters

$element

string

The element name to replace over

$pattern

string

Pattern

$replacement

mixed

Replacement (string or single element array specifying a function name)

$semihtml

string

Haystack

Returns

stringResult

preg_replace callback to strip HTML tags from inside a Comcode tag, except formatting ones that we'll convert to white-space.

comcode_strip_html_tags(array $matches) : string
package core_rich_media

Parameters

$matches

array

Matches

Returns

stringResult

Convert the specified Comcode (unknown format) into a Tempcode tree. You shouldn't output the Tempcode tree to the browser, as it looks really horrible. If you are in a rare case where you need to output directly (not through templates), you should call the evaluate method on the Tempcode object, to convert it into a string.

comcode_to_tempcode(\LONG_TEXT $comcode, \?MEMBER $source_member = null, boolean $as_admin = false, \?integer $wrap_pos = null, \?string $pass_id = null, \?object $connection = null, boolean $semiparse_mode = false, boolean $preparse_mode = false, boolean $is_all_semihtml = false, boolean $structure_sweep = false, boolean $check_only = false, \?array $highlight_bits = null, \?MEMBER $on_behalf_of_member = null) : \Tempcode
package core_rich_media

Parameters

$comcode

\LONG_TEXT

The Comcode to convert

$source_member

\?MEMBER

The member the evaluation is running as. This is a security issue, and you should only run as an administrator if you have considered where the Comcode came from carefully (null: current member)

$as_admin

boolean

Whether to explicitly execute this with admin rights. There are a few rare situations where this should be done, for data you know didn't come from a member, but is being evaluated by one. Note that if this is passed false, and $source_member is an admin, it will be parsed using admin privileges anyway.

$wrap_pos

\?integer

The position to conduct wordwrapping at (null: do not conduct word-wrapping)

$pass_id

\?string

A special identifier that can identify this resource in a sea of our resources of this class; usually this can be ignored, but may be used to provide a binding between JavaScript in evaluated Comcode, and the surrounding environment (null: no explicit binding)

$connection

\?object

The database connection to use (null: standard site connection)

$semiparse_mode

boolean

Whether to parse so as to create something that would fit inside a semihtml tag. It means we generate HTML, with Comcode written into it where the tag could never be reverse-converted (e.g. a block).

$preparse_mode

boolean

Whether this is being pre-parsed, to pick up errors before row insertion.

$is_all_semihtml

boolean

Whether to treat this whole thing as being wrapped in semihtml, but apply normal security otherwise.

$structure_sweep

boolean

Whether we are only doing this parse to find the title structure

$check_only

boolean

Whether to only check the Comcode. It's best to use the check_comcode function which will in turn use this parameter.

$highlight_bits

\?array

A list of words to highlight (null: none)

$on_behalf_of_member

\?MEMBER

The member we are running on behalf of, with respect to how attachments are handled; we may use this members attachments that are already within this post, and our new attachments will be handed to this member (null: member evaluating)

Returns

\TempcodeThe Tempcode generated

Convert HTML headers to Comcode titles

convert_html_headers_to_titles(string $semihtml) : string
package core_rich_media

Parameters

$semihtml

string

Semi-HTML

Returns

stringSemi-HTML, with headers converted to titles

Extract underlying Comcode from an editor Comcode-management button. preg_replace_callback callback

debuttonise(array $matches) : string
package core_rich_media

Parameters

$matches

array

Array of matches

Returns

stringSubstituted text

Deletes all the attachments a given language code holds. Well, not quite! It deletes all references, and any attachments have through it, run out of references.

delete_comcode_attachments(\ID_TEXT $type, \ID_TEXT $id, \?object $connection = null
package core_rich_media

Parameters

$type

\ID_TEXT

The arbitrary type that the attached is for (e.g. download)

$id

\ID_TEXT

The ID in the set of the arbitrary types that the attached is for

$connection

\?object

The database connection to use (null: standard site connection)

This function is the same as delete_comcode_attachments, except that it deletes the language code as well.

delete_lang_comcode_attachments(mixed $lang_id, \ID_TEXT $type, \ID_TEXT $id, \?object $connection = null
package core_rich_media

Parameters

$lang_id

mixed

The language ID

$type

\ID_TEXT

The arbitrary type that the attached is for (e.g. download)

$id

\ID_TEXT

The ID in the set of the arbitrary types that the attached is for

$connection

\?object

The database connection to use (null: standard site connection)

Extract underlying Comcode from an editor Comcode XML tag. preg_replace_callback callback

detagonise(array $matches) : string
package core_rich_media

Parameters

$matches

array

Array of matches

Returns

stringSubstituted text

Dispatch any pending member mention notifications ("mentions").

dispatch_member_mention_notifications(\ID_TEXT $content_type, \ID_TEXT $content_id, \?MEMBER $submitter = null
package core_rich_media

Parameters

$content_type

\ID_TEXT

The content type

$content_id

\ID_TEXT

The content ID

$submitter

\?MEMBER

The content submitter (null: current user)

Render a code box.

do_code_box(string $type, \Tempcode $embed, boolean $numbers = true, boolean $in_semihtml = false, boolean $is_all_semihtml = false) : array
package core_rich_media

Parameters

$type

string

The data type (e.g. file extension) we are rendering.

$embed

\Tempcode

Contents (code) to render.

$numbers

boolean

Whether to show line numbers.

$in_semihtml

boolean

Whether what we have came from inside a semihtml tag

$is_all_semihtml

boolean

Whether what we have came from semihtml mode

Returns

arrayA pair: The Tempcode for the code box, and the title of the box

Get an array containing new Comcode, and Tempcode. The function wraps the normal comcode_to_tempcode function. The function will do attachment management, including deleting of attachments that have become unused due to editing of some Comcode and removing of the reference.

do_comcode_attachments(\LONG_TEXT $comcode, \ID_TEXT $type, \ID_TEXT $id, boolean $previewing_only = false, \?object $connection = null, \?boolean $insert_as_admin = null, \?MEMBER $for_member = null) : array
package core_rich_media

Parameters

$comcode

\LONG_TEXT

The unparsed Comcode that references the attachments

$type

\ID_TEXT

The type the attachment will be used for (e.g. download)

$id

\ID_TEXT

The ID the attachment will be used for

$previewing_only

boolean

Whether we are only previewing the attachments (i.e. don't store them!)

$connection

\?object

The database connection to use (null: standard site connection)

$insert_as_admin

\?boolean

Whether to insert it as an admin (any Comcode parsing will be carried out with admin privileges) (null: autodetect)

$for_member

\?MEMBER

The member to use for ownership permissions (null: current member)

Returns

arrayA map containing 'Comcode' (after substitution for tying down the new attachments) and 'tempcode'

Turn a triple of emoticon parameters into some actual Tempcode.

do_emoticon(array $imgcode) : mixed
package core_rich_media

Parameters

$imgcode

array

Parameter triple(template,src,code)

Returns

mixedEither a Tempcode result, or a string result, depending on $evaluate

Filter HTML for safety.

filter_html(boolean $as_admin, \MEMBER $source_member, integer $pos, integer $len, \LONG_TEXT $comcode, boolean $in_html, boolean $in_semihtml) 
package core_rich_media

Parameters

$as_admin

boolean

Whether to explicitly execute this with admin rights. There are a few rare situations where this should be done, for data you know didn't come from a member, but is being evaluated by one.

$source_member

\MEMBER

The member the evaluation is running as. This is a security issue, and you should only run as an administrator if you have considered where the Comcode came from carefully

$pos

integer

The offset of the tag in the Comcode

$len

integer

The length of the Comcode

$comcode

\LONG_TEXT

The Comcode being parsed

$in_html

boolean

Whether the parser is/was in an HTML region

$in_semihtml

boolean

Whether the parser is/was in a Semi-HTML region

Finalise attachments which were created during a preview, so that they have the proper reference IDs.

final_attachments_from_preview(\ID_TEXT $id, \?object $connection = null
package core_rich_media

Parameters

$id

\ID_TEXT

The ID in the set of the arbitrary types that the attached is for

$connection

\?object

The database connection to use (null: standard site connection)

Find a media renderer hook for a URL.

find_media_renderers(\URLPATH $url, array $attributes, boolean $as_admin, \?MEMBER $source_member, integer $acceptable_media = 15, \?ID_TEXT $limit_to = null) : \?array
package core_rich_media

Parameters

$url

\URLPATH

The URL

$attributes

array

Attributes (e.g. width, height, length)

$as_admin

boolean

Whether there are admin privileges, to render dangerous media types

$source_member

\?MEMBER

Member to run as (null: current member)

$acceptable_media

integer

Bitmask of media that we will support

$limit_to

\?ID_TEXT

Limit to a media rendering hook (null: no limit)

Returns

\?arrayThe hooks (null: cannot find one)

Convert HTML-filled Comcode to cleaner Comcode.

force_clean_comcode(\LONG_TEXT $comcode) : \LONG_TEXT
package core_rich_media

Parameters

$comcode

\LONG_TEXT

The messy Comcode.

Returns

\LONG_TEXTThe cleaned Comcode.

Locate a set of consistently named parameters and generate an array of them for a multi-line input.

get_defaults_multi(array $defaults, \ID_TEXT $param) : array
package core_rich_media

Parameters

$defaults

array

All default values for the tag.

$param

\ID_TEXT

Match name for the parameter set.

Returns

arrayList of values.

Find if the specified member has access to view the specified attachment.

has_attachment_access(\MEMBER $member, \AUTO_LINK $id, \?object $connection = null) : boolean
package core_rich_media

Parameters

$member

\MEMBER

The member being checked whether to have the access

$id

\AUTO_LINK

The ID code for the attachment being checked

$connection

\?object

The database connection to use (null: site DB)

Returns

booleanWhether the member has attachment access

Convert (X)HTML into Comcode

html_to_comcode(\LONG_TEXT $html, boolean $force = true) : \LONG_TEXT
package core_rich_media

Parameters

$html

\LONG_TEXT

The HTML to be converted

$force

boolean

Whether to force full conversion regardless of settings

Returns

\LONG_TEXTThe equivalent Comcode

Find if any of some tags are in the stack.

in_tag_stack(array $tag_stack, array $tags) : boolean
package core_rich_media

Parameters

$tag_stack

array

The tag stack

$tags

array

The tags

Returns

booleanWhether one is present

Insert some Comcode content that may contain attachments, and return the language ID.

insert_lang_comcode_attachments(\ID_TEXT $field_name, integer $level, \LONG_TEXT $text, \ID_TEXT $type, \ID_TEXT $id, \?object $connection = null, boolean $insert_as_admin = false, \?MEMBER $for_member = null) : array
package core_rich_media
set 1 2 3 4

Parameters

$field_name

\ID_TEXT

The field name

$level

integer

The level of importance this language string holds

$text

\LONG_TEXT

The Comcode content

$type

\ID_TEXT

The arbitrary type that the attached is for (e.g. download)

$id

\ID_TEXT

The ID in the set of the arbitrary types that the attached is for

$connection

\?object

The database connection to use (null: standard site connection)

$insert_as_admin

boolean

Whether to insert it as an admin (any Comcode parsing will be carried out with admin privileges)

$for_member

\?MEMBER

The member to use for ownership permissions (null: current member)

Returns

arrayThe language ID save fields

Parse a single tag. For use separately, not used by main parser.

parse_single_comcode_tag(string $data, string $tag = '\w+') : array
package core_rich_media

Parameters

$data

string

The data being parsed

$tag

string

The tag we're expecting to see here / a regexp

Returns

arrayA map of parsed attributes

Return the current media mode.

peek_media_mode() : integer
package core_rich_media

Returns

integerThe current media mode

Restore the media mode.

pop_media_mode() 
package core_rich_media

Set the media mode.

push_media_mode(integer $m) 
package core_rich_media

Parameters

$m

integer

The current media mode

Cleanup HTML coming out of the WYSIWYG editor, converting represented Comcode back to proper Comcode

remove_wysiwyg_comcode_markup(string $semihtml) 
package core_rich_media

Parameters

$semihtml

string

Semi-HTML

Get Tempcode for a Comcode rich-media attachment.

render_attachment(\ID_TEXT $tag, array $attributes, array $attachment_row, string $pass_id, \MEMBER $source_member, boolean $as_admin, object $connection, \?array $highlight_bits = null, \?MEMBER $on_behalf_of_member = null, boolean $semiparse_mode = false) : \Tempcode
package core_rich_media
set attachment attachment_safe

Parameters

$tag

\ID_TEXT

The attachment tag

$attributes

array

A map of the attributes (name=>val) for the tag

$attachment_row

array

A map of the attachment properties (name=>val) for the attachment

$pass_id

string

A special identifier to mark where the resultant Tempcode is going to end up (e.g. the ID of a post)

$source_member

\MEMBER

The member who is responsible for this Comcode

$as_admin

boolean

Whether to check as arbitrary admin

$connection

object

The database connection to use

$highlight_bits

\?array

A list of words to highlight (null: none)

$on_behalf_of_member

\?MEMBER

The member we are running on behalf of, with respect to how attachments are handled; we may use this members attachments that are already within this post, and our new attachments will be handed to this member (null: member evaluating)

$semiparse_mode

boolean

Whether to parse so as to create something that would fit inside a semihtml tag. It means we generate HTML, with Comcode written into it where the tag could never be reverse-converted (e.g. a block).

Returns

\TempcodeThe Tempcode for the attachment

Render a media URL in the best way we can.

render_media_url(mixed $url, mixed $url_safe, array $attributes, boolean $as_admin = false, \?MEMBER $source_member = null, integer $acceptable_media = 15, \?ID_TEXT $limit_to = null, \?URLPATH $url_to_scan_against = null) : \?Tempcode
package core_rich_media

Parameters

$url

mixed

The URL

$url_safe

mixed

URL to render (no sessions etc)

$attributes

array

Attributes (e.g. width, height, length). IMPORTANT NOTE: Only pass in 'mime_type' from user data if you have verified privileges to do so, no verification is done within the media API.

$as_admin

boolean

Whether there are admin privileges, to render dangerous media types

$source_member

\?MEMBER

Member to run as (null: current member)

$acceptable_media

integer

Bitmask of media that we will support

$limit_to

\?ID_TEXT

Limit to a media rendering hook (null: no limit)

$url_to_scan_against

\?URLPATH

The URL to do media detection against (null: use $url)

Returns

\?TempcodeThe rendered version (null: cannot render)

Convert Semi-HTML into comcode. Cleanup where possible

semihtml_to_comcode(\LONG_TEXT $semihtml, boolean $force = false) : \LONG_TEXT
package core_rich_media

Parameters

$semihtml

\LONG_TEXT

The Semi-HTML to be converted

$force

boolean

Whether to force full conversion regardless of settings

Returns

\LONG_TEXTThe equivalent Comcode

Convert Semi-HTML into comcode. Cleanup where possible. preg_replace_callback callback

semihtml_to_comcode_wrap(array $matches) : string
package core_rich_media

Parameters

$matches

array

Array of matches

Returns

stringSubstituted text

Strip out any Comcode from this "plain text". Useful for semantic text is wanted but where Comcode is used as "the next best thing" we have.

strip_comcode(string $text, boolean $for_extract = false, \?array $tags_to_preserve = null) : string
package core_rich_media

Parameters

$text

string

Plain-text/Comcode

$for_extract

boolean

Whether this is for generating an extract that does not need to be fully comprehended (i.e. favour brevity)

$tags_to_preserve

\?array

List of tags to preserve (null: none)

Returns

stringPurified plain-text

Test a URL as a broken link.

test_url(\URLPATH $url_full, string $tag_type, string $given_url, \MEMBER $source_member) : \Tempcode
package core_rich_media

Parameters

$url_full

\URLPATH

URL to test.

$tag_type

string

Comcode tag type, to which the URL is associated.

$given_url

string

URL actually provided.

$source_member

\MEMBER

The member who is responsible for this Comcode

Returns

\TempcodeError message, or blank if no error.

Update a language code, in such a way that new attachments are created if they were specified.

update_lang_comcode_attachments(\ID_TEXT $field_name, mixed $lang_id, \LONG_TEXT $text, \ID_TEXT $type, \ID_TEXT $id, \?object $connection = null, boolean $backup_string = false, \?MEMBER $for_member = null) : array
package core_rich_media

Parameters

$field_name

\ID_TEXT

The field name

$lang_id

mixed

The language ID

$text

\LONG_TEXT

The new text

$type

\ID_TEXT

The arbitrary type that the attached is for (e.g. download)

$id

\ID_TEXT

The ID in the set of the arbitrary types that the attached is for

$connection

\?object

The database connection to use (null: standard site connection)

$backup_string

boolean

Whether to backup the language string before changing it

$for_member

\?MEMBER

The member that owns the content this is for (null: current member)

Returns

arrayThe language ID save fields

Find how Comcode will be represented in the editor.

wysiwyg_comcode_markup_style(string $tag, \?array $attributes = null, \?Tempcode $embed = null) : integer
package core_rich_media

Parameters

$tag

string

The Comcode tag

$attributes

\?array

The parameters (null: don't consider)

$embed

\?Tempcode

The contents of the tag (null: don't consider)

Returns

integerThe Comcode integration style

Strip down the contents of the media_set tag for easier WYSIWYG-editing

wysiwygify_media_set(\LONG_TEXT $semihtml) : \LONG_TEXT
package core_rich_media

Parameters

$semihtml

\LONG_TEXT

The Semi-HTML to be converted

Returns

\LONG_TEXTThe equivalent Comcode

Classes, interfaces, and traits

Media_renderer_with_fallback

A media renderer coded to fall-back to a simple image if we have low-fi mode turned on.

« More »

Constants

 

CCP_IN_TAG_ATTRIBUTE_NAME

CCP_IN_TAG_ATTRIBUTE_NAME = 4 
package core_rich_media
 

CCP_IN_TAG_ATTRIBUTE_VALUE

CCP_IN_TAG_ATTRIBUTE_VALUE = 7 
package core_rich_media
 

CCP_IN_TAG_ATTRIBUTE_VALUE_NO_QUOTE

CCP_IN_TAG_ATTRIBUTE_VALUE_NO_QUOTE = 8 
package core_rich_media
 

CCP_IN_TAG_BETWEEN_ATTRIBUTES

CCP_IN_TAG_BETWEEN_ATTRIBUTES = 3 
package core_rich_media
 

CCP_IN_TAG_BETWEEN_ATTRIBUTE_NAME_VALUE_LEFT

CCP_IN_TAG_BETWEEN_ATTRIBUTE_NAME_VALUE_LEFT = 5 
package core_rich_media
 

CCP_IN_TAG_BETWEEN_ATTRIBUTE_NAME_VALUE_RIGHT

CCP_IN_TAG_BETWEEN_ATTRIBUTE_NAME_VALUE_RIGHT = 6 
package core_rich_media
 

CCP_IN_TAG_NAME

CCP_IN_TAG_NAME = 1 
package core_rich_media
 

CCP_NO_MANS_LAND

CCP_NO_MANS_LAND = 0 
package core_rich_media
 

CCP_STARTING_TAG

CCP_STARTING_TAG = 2 
package core_rich_media
 

MAX_COMCODE_TAG_LOOK_AHEAD_LENGTH

MAX_COMCODE_TAG_LOOK_AHEAD_LENGTH = 30 
package core_rich_media
 

MAX_URLS_TO_READ

MAX_URLS_TO_READ = 5 
package core_rich_media
 

MEDIA_LOWFI

MEDIA_LOWFI = 1 
package core_rich_media
 

MEDIA_RECOG_PRECEDENCE_HIGH

MEDIA_RECOG_PRECEDENCE_HIGH = 40 
package core_rich_media
 

MEDIA_RECOG_PRECEDENCE_LOW

MEDIA_RECOG_PRECEDENCE_LOW = 20 
package core_rich_media
 

MEDIA_RECOG_PRECEDENCE_MEDIUM

MEDIA_RECOG_PRECEDENCE_MEDIUM = 30 
package core_rich_media
 

MEDIA_RECOG_PRECEDENCE_NONE

MEDIA_RECOG_PRECEDENCE_NONE = 0 
package core_rich_media
 

MEDIA_RECOG_PRECEDENCE_SUPER

MEDIA_RECOG_PRECEDENCE_SUPER = 50 
package core_rich_media
 

MEDIA_RECOG_PRECEDENCE_TRIVIAL

MEDIA_RECOG_PRECEDENCE_TRIVIAL = 10 
package core_rich_media
 

MEDIA_TYPE_ALL

MEDIA_TYPE_ALL = 15 
package core_rich_media
 

MEDIA_TYPE_AUDIO

MEDIA_TYPE_AUDIO = 4 
package core_rich_media
 

MEDIA_TYPE_IMAGE

MEDIA_TYPE_IMAGE = 1 
package core_rich_media
 

MEDIA_TYPE_OTHER

MEDIA_TYPE_OTHER = 8 
package core_rich_media
 

MEDIA_TYPE_VIDEO

MEDIA_TYPE_VIDEO = 2 
package core_rich_media
 

WYSIWYG_COMCODE__BUTTON

WYSIWYG_COMCODE__BUTTON = 1 
package core_rich_media
 

WYSIWYG_COMCODE__HTML

WYSIWYG_COMCODE__HTML = 6 
package core_rich_media
 

WYSIWYG_COMCODE__STANDOUT_BLOCK

WYSIWYG_COMCODE__STANDOUT_BLOCK = 4 
package core_rich_media
 

WYSIWYG_COMCODE__STANDOUT_INLINE

WYSIWYG_COMCODE__STANDOUT_INLINE = 5 
package core_rich_media
 

WYSIWYG_COMCODE__XML_BLOCK

WYSIWYG_COMCODE__XML_BLOCK = 2 
package core_rich_media
 

WYSIWYG_COMCODE__XML_INLINE

WYSIWYG_COMCODE__XML_INLINE = 3 
package core_rich_media