Component Writer's Guide :: Adding events
From RadPHP XE Documentation
An event is a property, exactly the same, but it starts with On, for example:
function getOnTestEvent() { return $this->readOnTestEvent(); } function setOnTestEvent($value) { $this->writeOnTestEvent($value); }
Starting with On, the IDE knows are events.
To fire an event in your component, there is a helper function name callEvent, for example:
$this->callEvent('onbeforeshow',array());
That function checks if the event is assigned or not and call it with the params you want.