public function execute($name, KCommandContext $context) { $data = $context->result; // Exclude some container actions from being logged. if ($data instanceof KDatabaseRowAbstract && !in_array($data->container->slug, array('docman-icons', 'docman-images'))) { return parent::execute($name, $context); } }