Example #1
0
function c8res(&$row)
{
    $tmp = [];
    foreach ($row as $key => $value) {
        $tmp[c8($key)] = c8($value);
    }
    $row = $tmp;
}
Example #2
0
 protected static function checkByiterateList($exitstMember, $row)
 {
     $list = ['CellPhone' => HoneyBaby::IMPORT_MOBILE_INDEX, 'HomeAddress_Address' => HoneyBaby::IMPORT_ADDRESS_INDEX, 'HomeTel' => HoneyBaby::IMPORT_HOMETEL_INDEX];
     foreach ($list as $memberKey => $rowKey) {
         if (self::strictCompare(c8($exitstMember[$memberKey]), $row[$rowKey])) {
             return true;
         }
     }
     return false;
 }
Example #3
0
 protected function fillGoalAndPlInContainer(&$container, $config)
 {
     // 取得資料
     if ($res = Processor::execPos($this->getQuery($this->getDateObj()))) {
         while ($data = odbc_fetch_array($res)) {
             $tmp = [];
             foreach ($data as $key => $val) {
                 $tmp[c8($key)] = (string) c8($val);
             }
             $tmp['goal'] = $config[trim($tmp['STOCK_NO'])]['goal'];
             $tmp['pl'] = $config[trim($tmp['STOCK_NO'])]['pl'];
             $container[$tmp['STOCK_NO']] = $tmp;
             unset($data);
         }
     }
     return $this;
 }