FML Improvements
This commit is contained in:
1 parent
1c4d024f4b
commit
192cb2cb79
18 files changed
+430
-332
No files matched your search
@@ -75,6 +75,29 @@ class ScriptLabel {
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the given Label is an Event Label
|
||||
*
|
||||
* @param string $label Label Name
|
||||
* @return bool
|
||||
*/
|
||||
public static function isEventLabel($label) {
|
||||
$eventLabels = self::getEventLabels();
|
||||
if (in_array($label, $eventLabels)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the possible Event Label Names
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getEventLabels() {
|
||||
return array(self::ENTRYSUBMIT, self::KEYPRESS, self::MOUSECLICK, self::MOUSEOUT, self::MOUSEOVER);
|
||||
}
|
||||
|
||||
/**
|
||||
* Build the full Script Label Text
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user