public function AddAction($objEvent, $objAction)
{
if (!$objEvent instanceof QEvent) {
throw new QCallerException('First parameter of AddAction is expecting an object of type QEvent');
}
if (!$objAction instanceof QAction) {
throw new QCallerException('Second parameter of AddAction is expecting an object of type QAction');
}
// Modified
$this->blnModified = true;
// Store the Event object in the Action object
$objAction->Event = $objEvent;
// Pull out the Event Name
$strEventName = $objEvent->JavaScriptEvent;
if (!array_key_exists($strEventName, $this->objActionArray)) {
$this->objActionArray[$strEventName] = array();
}
array_push($this->objActionArray[$strEventName], $objAction);
}