protected function prepareKeeper() { $keeper = new \StdClass(); foreach (self::$groupProperties as $propertyName => $propertyValue) { $keeper->{$propertyName} = NULL; } if (!is_null(self::$groupCriteriaHigherLevel)) { $keeperData = new KeeperData(); $keeperData->setData(self::$data); $keeperData->setKeeper($keeper); $keeperData->setGroupCriteria(self::$groupCriteriaHigherLevel); $keeper = Keeper::makeGroupedKeepersArr($keeperData); } self::$groupKeeper = $keeper; return NULL; }
protected function prepareAddUpKeeper() { $keeper = new \StdClass(); foreach (self::$data as $item) { foreach ($item as $key => $value) { $keeper->{$key} = NULL; } break; } if (!is_null(self::$groupCriteria)) { $keeperData = new KeeperData(); $keeperData->setData(self::$data); $keeperData->setKeeper($keeper); $keeperData->setGroupCriteria(self::$groupCriteria); $keeper = Keeper::makeGroupedKeepersArr($keeperData); } self::$addUpKeeper = $keeper; return NULL; }