public function setup() { parent::setUp(); Yii::app()->user->userModel = User::getByUsername('super'); ModelRelationsAndAttributesToSummableReportAdapter::forgetAll(); ModelRelationsAndAttributesToRowsAndColumnsReportAdapter::forgetAll(); ModelRelationsAndAttributesToMatrixReportAdapter::forgetAll(); }
public function setup() { parent::setUp(); Yii::app()->user->userModel = User::getByUsername('super'); DisplayAttributeForReportForm::resetCount(); ModelRelationsAndAttributesToSummableReportAdapter::forgetAll(); ModelRelationsAndAttributesToRowsAndColumnsReportAdapter::forgetAll(); ModelRelationsAndAttributesToMatrixReportAdapter::forgetAll(); $freeze = false; if (RedBeanDatabase::isFrozen()) { RedBeanDatabase::unfreeze(); $freeze = true; } $this->freeze = $freeze; }
/** * Additional attribute types are not allowed for matrix groupings. Once banding is built, numbers and * currencyValues can be grouped on. * @return array */ protected static function getAttributeTypesToExcludeAsGroupByModifiers() { return array_merge(array('CurrencyValue', 'Decimal', 'Integer', 'Phone'), parent::getAttributeTypesToExcludeAsGroupByModifiers()); }
public static function forgetAll() { parent::forgetAll(); self::$displayCalculationAttributes = null; self::$groupByCalculatedModifierAttributes = null; }