AddThis

Wednesday, September 5, 2018

Is in batch

RunBaseBatch class has isInBatch() method. It returns true if the current instance runs as batch, but not if it the class is used by some other batch. 
Session::isServer() - another useful function.