예제 #1
0
 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;
 }
예제 #2
0
 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;
 }