コード例 #1
0
ファイル: Group.php プロジェクト: jamset/php-adjutants
 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
ファイル: AddUp.php プロジェクト: jamset/php-adjutants
 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;
 }