|
TARGET_BLOCK const | TARGET_BLOCK = 1 |
| The target is a block.
|
|
TARGET_SELECTOR const | TARGET_SELECTOR = 0 |
| The target is a CSS selector.
|
|
TARGET_UNATTACHED const | TARGET_UNATTACHED = 2 |
| The target is unattached to any specific node.
|
|
|
static array | $mapping |
| $mapping The list of target type to target name.
|
|
◆ get_classname()
static tool_usertours\target::get_classname |
( |
| $type | ) |
|
|
static |
Return the name of the class for this target type.
- Parameters
-
int | $type | The type of target. |
- Return values
-
◆ get_target_constant()
static tool_usertours\target::get_target_constant |
( |
| $type | ) |
|
|
static |
Return the constant used to describe this target.
- Parameters
-
string | $type | The type of the target. |
- Return values
-
int | The constant for this target. |
◆ get_target_constant_for_class()
static tool_usertours\target::get_target_constant_for_class |
( |
| $classname | ) |
|
|
static |
Return the constant used to describe this class.
- Parameters
-
string | $classname | The fully-qualified class name of the target |
- Return values
-
int | The constant for this target. |
◆ get_target_instance()
static tool_usertours\target::get_target_instance |
( |
step | $step | ) |
|
|
static |
Return the instance of the class for this target.
- Parameters
-
- Return values
-
target | The target instance. |
◆ get_target_type()
static tool_usertours\target::get_target_type |
( |
step | $step | ) |
|
|
static |
Return the instance of the class for this target.
- Parameters
-
- Return values
-
target | The target instance. |
◆ get_target_types()
static tool_usertours\target::get_target_types |
( |
| ) |
|
|
static |
Return the complete lits of target types.
- Return values
-
◆ $mapping
array tool_usertours\target::$mapping |
|
staticprotected |
Initial value:= [
self::TARGET_BLOCK => 'block',
self::TARGET_SELECTOR => 'selector',
self::TARGET_UNATTACHED => 'unattached',
]
$mapping The list of target type to target name.
The documentation for this class was generated from the following file:
- admin/tool/usertours/classes/target.php