/** * Page のアクション. * * @return void */ function action() { parent::action(); $objQuery = SC_Query_Ex::getSingletonInstance(); if (is_array($this->arrHidden['search_customer_type'])) { $cnt = array_sum($this->arrHidden['search_customer_type']); // tpl表示切換用 $this->search_customer_type = $cnt; } elseif (is_array($this->arrForm['search_customer_type']['value'])) { $cnt = array_sum($this->arrForm['search_customer_type']['value']); // tpl表示切換用 $this->search_customer_type = $cnt; } else { $this->search_customer_type = 1; } if (is_array($this->arrData)) { foreach ($this->arrData as &$customer) { $customer_id = $customer["customer_id"]; if ($this->objDb->sfColumnExists("cp_dtb_customer_docomo_mymenu", "customer_id")) { $customer = array_merge(SC_Helper_Customer_Ex::sfGetCustomerData($customer_id), $customer); $customer["mymenu"] = call_user_func("CarrierPay::getCustomerMymenu", array($customer_id)); } if ($this->objDb->sfColumnExists("cp_dtb_point_history", "id")) { $point = $objQuery->getRow(implode(",", array("sum(add_point ) AS add_point", "sum(use_point ) AS use_point", "sum(lost_point) AS lost_point")), "cp_dtb_point_history", "customer_id = ?", array($customer_id)); foreach ($point as $key => $value) { $customer[$key] = $value; } } if ($this->objDb->sfColumnExists("cp_dtb_customer_transaction", "id")) { $customer["transaction"] = $objQuery->select("*", "cp_dtb_customer_transaction", "customer_id = ? AND del_flg = 0 AND continue_account_id IS NOT NULL", array($customer_id)); } } } }
/** * Page のプロセス. * * @return void */ function process() { parent::process(); }
/** * デストラクタ. * * @return void */ function destroy() { parent::destroy(); }