The question above.

My question is how to realize this condition if (in_admin_panel)?class MyClass extends CMSModule
{
function __construct() {
parent::__construct();
if (in_admin_panel) {
do this;
} else {
do that;
}
}
...
}
Thank you for your help,
Sonya