array(4) {
  ["hasError"]=>
  bool(false)
  ["ResponseObj"]=>
  array(1) {
    ["Items"]=>
    array(4) {
      [0]=>
      array(41) {
        ["row_num"]=>
        string(1) "1"
        ["uid"]=>
        string(4) "9260"
        ["master_id"]=>
        string(2) "16"
        ["locale"]=>
        string(2) "tc"
        ["ranking"]=>
        string(1) "1"
        ["display_date"]=>
        string(19) "2018-12-11 00:00:00"
        ["store"]=>
        string(3) "cwb"
        ["title"]=>
        string(16) "SOGO Weekly News"
        ["event_period"]=>
        string(16) "12/12-18/12/2018"
        ["template"]=>
        string(1) "1"
        ["description"]=>
        string(0) ""
        ["pdf"]=>
        string(0) ""
        ["url_name"]=>
        string(0) ""
        ["happening"]=>
        string(1) "1"
        ["highlight"]=>
        string(1) "1"
        ["show_at_index"]=>
        string(1) "1"
        ["thumbnail"]=>
        string(85) "/uploads/images/mainsite/event%26promotion/original_image/20181212/cwb_sogonews_s.jpg"
        ["thumb_alt"]=>
        string(16) "SOGO Weekly News"
        ["index_image"]=>
        string(64) "/uploads/images/mainsite/event%26promotion/theme201811/sncwb.jpg"
        ["index_alt"]=>
        string(16) "SOGO Weekly News"
        ["link"]=>
        string(0) ""
        ["popup_type"]=>
        string(1) "1"
        ["happening_end_date"]=>
        string(19) "2018-12-19 00:00:00"
        ["extracted_pdf"]=>
        string(1) "0"
        ["version"]=>
        string(3) "301"
        ["created_by"]=>
        string(1) "1"
        ["created_date"]=>
        string(19) "2014-05-09 13:18:34"
        ["created_ip"]=>
        string(14) "192.168.176.57"
        ["modified_by"]=>
        string(1) "1"
        ["modified_date"]=>
        string(19) "2018-12-11 14:29:22"
        ["modified_ip"]=>
        string(15) "220.241.212.211"
        ["approved_by"]=>
        NULL
        ["approved_date"]=>
        NULL
        ["approved_ip"]=>
        NULL
        ["submitted_by"]=>
        string(1) "1"
        ["submitted_date"]=>
        string(19) "2018-12-12 10:16:30"
        ["submitted_ip"]=>
        string(15) "220.241.212.211"
        ["commited"]=>
        string(1) "1"
        ["approval_status"]=>
        string(1) "3"
        ["active"]=>
        string(1) "1"
        ["deleted"]=>
        string(1) "0"
      }
      [1]=>
      array(41) {
        ["row_num"]=>
        string(1) "2"
        ["uid"]=>
        string(4) "9266"
        ["master_id"]=>
        string(3) "151"
        ["locale"]=>
        string(2) "tc"
        ["ranking"]=>
        string(1) "4"
        ["display_date"]=>
        string(19) "2018-12-11 00:00:00"
        ["store"]=>
        string(3) "cwb"
        ["title"]=>
        string(22) "Mag Fashion Group Sale"
        ["event_period"]=>
        string(16) "13/12-16/12/2018"
        ["template"]=>
        string(1) "1"
        ["description"]=>
        string(0) ""
        ["pdf"]=>
        string(42) "/uploads/files/Pdf/e-book/201811yayoib.pdf"
        ["url_name"]=>
        string(11) "201811yayoi"
        ["happening"]=>
        string(1) "1"
        ["highlight"]=>
        string(1) "1"
        ["show_at_index"]=>
        string(1) "1"
        ["thumbnail"]=>
        string(78) "/uploads/images/mainsite/event%26promotion/original_image/20181212/cwb16_s.jpg"
        ["thumb_alt"]=>
        string(0) ""
        ["index_image"]=>
        string(67) "/uploads/images/mainsite/event%26promotion/theme201811/pc314_16.jpg"
        ["index_alt"]=>
        string(0) ""
        ["link"]=>
        string(43) "https://www.sogo.com.hk/edm/201811yayoi.pdf"
        ["popup_type"]=>
        string(1) "1"
        ["happening_end_date"]=>
        string(19) "2018-12-17 00:00:00"
        ["extracted_pdf"]=>
        string(1) "0"
        ["version"]=>
        string(3) "149"
        ["created_by"]=>
        string(1) "1"
        ["created_date"]=>
        string(19) "2015-11-17 16:24:38"
        ["created_ip"]=>
        string(9) "127.0.0.1"
        ["modified_by"]=>
        string(1) "1"
        ["modified_date"]=>
        string(19) "2018-12-11 14:41:19"
        ["modified_ip"]=>
        string(15) "220.241.212.211"
        ["approved_by"]=>
        NULL
        ["approved_date"]=>
        NULL
        ["approved_ip"]=>
        NULL
        ["submitted_by"]=>
        string(1) "1"
        ["submitted_date"]=>
        string(19) "2018-12-12 10:16:30"
        ["submitted_ip"]=>
        string(15) "220.241.212.211"
        ["commited"]=>
        string(1) "1"
        ["approval_status"]=>
        string(1) "3"
        ["active"]=>
        string(1) "1"
        ["deleted"]=>
        string(1) "0"
      }
      [2]=>
      array(41) {
        ["row_num"]=>
        string(1) "3"
        ["uid"]=>
        string(4) "9248"
        ["master_id"]=>
        string(1) "4"
        ["locale"]=>
        string(2) "tc"
        ["ranking"]=>
        string(1) "5"
        ["display_date"]=>
        string(19) "2018-12-10 00:00:00"
        ["store"]=>
        string(3) "cwb"
        ["title"]=>
        string(30) "戶外運動服飾冬日展銷"
        ["event_period"]=>
        string(16) "12/12-17/12/2018"
        ["template"]=>
        string(1) "1"
        ["description"]=>
        string(0) ""
        ["pdf"]=>
        string(0) ""
        ["url_name"]=>
        string(0) ""
        ["happening"]=>
        string(1) "1"
        ["highlight"]=>
        string(1) "1"
        ["show_at_index"]=>
        string(1) "1"
        ["thumbnail"]=>
        string(79) "/uploads/images/mainsite/event%26promotion/original_image/20181212/cwb_21fs.jpg"
        ["thumb_alt"]=>
        string(19) "21/F崇光宴會廳"
        ["index_image"]=>
        string(67) "/uploads/images/mainsite/event%26promotion/theme201811/pc314_21.jpg"
        ["index_alt"]=>
        string(19) "21/F崇光宴會廳"
        ["link"]=>
        string(68) "http://www.sogo.com.hk/cwb/en/thankfulweek/site/index.php?section=54"
        ["popup_type"]=>
        string(1) "2"
        ["happening_end_date"]=>
        string(19) "2018-12-18 00:00:00"
        ["extracted_pdf"]=>
        string(1) "0"
        ["version"]=>
        string(3) "284"
        ["created_by"]=>
        string(1) "1"
        ["created_date"]=>
        string(19) "2014-05-07 14:59:32"
        ["created_ip"]=>
        string(9) "127.0.0.1"
        ["modified_by"]=>
        string(1) "1"
        ["modified_date"]=>
        string(19) "2018-12-10 11:49:28"
        ["modified_ip"]=>
        string(15) "220.241.212.211"
        ["approved_by"]=>
        NULL
        ["approved_date"]=>
        NULL
        ["approved_ip"]=>
        NULL
        ["submitted_by"]=>
        string(1) "1"
        ["submitted_date"]=>
        string(19) "2018-12-10 15:28:10"
        ["submitted_ip"]=>
        string(15) "220.241.212.211"
        ["commited"]=>
        string(1) "1"
        ["approval_status"]=>
        string(1) "3"
        ["active"]=>
        string(1) "1"
        ["deleted"]=>
        string(1) "0"
      }
      [3]=>
      array(41) {
        ["row_num"]=>
        string(1) "4"
        ["uid"]=>
        string(4) "9176"
        ["master_id"]=>
        string(1) "3"
        ["locale"]=>
        string(2) "tc"
        ["ranking"]=>
        string(1) "6"
        ["display_date"]=>
        string(19) "2018-11-27 00:00:00"
        ["store"]=>
        string(3) "cwb"
        ["title"]=>
        string(33) "環球美食巡禮及初見靜岡"
        ["event_period"]=>
        string(15) "28/11-4/12/2018"
        ["template"]=>
        string(1) "1"
        ["description"]=>
        string(0) ""
        ["pdf"]=>
        string(45) "/uploads/files/Pdf/e-book/b2cnyhpbl20171_.pdf"
        ["url_name"]=>
        string(14) "b2cnyhpbl20171"
        ["happening"]=>
        string(1) "1"
        ["highlight"]=>
        string(1) "1"
        ["show_at_index"]=>
        string(1) "1"
        ["thumbnail"]=>
        string(87) "/uploads/images/mainsite/event%26promotion/original_image/20181128/cwb_sogonews_b2s.jpg"
        ["thumb_alt"]=>
        string(14) "B2/F Food Fair"
        ["index_image"]=>
        string(67) "/uploads/images/mainsite/event%26promotion/theme201811/pc314_b2.jpg"
        ["index_alt"]=>
        string(22) "B2/F崇光超市通訊"
        ["link"]=>
        string(68) "http://www.sogo.com.hk/cwb/en/thankfulweek/site/index.php?section=26"
        ["popup_type"]=>
        string(1) "1"
        ["happening_end_date"]=>
        string(19) "2018-12-05 00:00:00"
        ["extracted_pdf"]=>
        string(1) "0"
        ["version"]=>
        string(3) "234"
        ["created_by"]=>
        string(1) "1"
        ["created_date"]=>
        string(19) "2014-05-07 14:58:11"
        ["created_ip"]=>
        string(9) "127.0.0.1"
        ["modified_by"]=>
        string(1) "1"
        ["modified_date"]=>
        string(19) "2018-11-27 12:59:45"
        ["modified_ip"]=>
        string(15) "220.241.212.211"
        ["approved_by"]=>
        NULL
        ["approved_date"]=>
        NULL
        ["approved_ip"]=>
        NULL
        ["submitted_by"]=>
        string(1) "1"
        ["submitted_date"]=>
        string(19) "2018-11-27 21:16:05"
        ["submitted_ip"]=>
        string(15) "124.244.243.141"
        ["commited"]=>
        string(1) "1"
        ["approval_status"]=>
        string(1) "3"
        ["active"]=>
        string(1) "1"
        ["deleted"]=>
        string(1) "0"
      }
    }
  }
  ["sql"]=>
  string(836) "
				SELECT * FROM (
					
				SELECT
					@row:=@row+1 as row_num, promotion.*
				FROM ms_promotion_master promotion
				INNER JOIN (
					SELECT master_id, max(version) currentVersion, commited FROM ms_promotion_master
					WHERE commited = 1
					GROUP BY master_id
				) versioning ON
					versioning.master_id = promotion.master_id
					AND versioning.currentVersion = promotion.version
				INNER JOIN (select @row:=0)r
				WHERE
					promotion.locale = :LOCALE AND
					promotion.active = 1 AND
					promotion.deleted = 0
					AND promotion.store = :store AND
					promotion.display_date <= NOW() AND
					highlight = :HIGHLIGHT AND
					template <> :TEMPLATE
				 ORDER BY ranking ASC, display_date DESC
			
				) RS
				WHERE row_num BETWEEN :START_RECORD AND :END_RECORD
				ORDER BY row_num ASC
			"
  ["dbParam"]=>
  array(6) {
    [0]=>
    array(2) {
      ["name"]=>
      string(7) ":LOCALE"
      ["value"]=>
      string(2) "tc"
    }
    [1]=>
    array(2) {
      ["name"]=>
      string(6) ":store"
      ["value"]=>
      string(3) "cwb"
    }
    [2]=>
    array(2) {
      ["name"]=>
      string(10) ":HIGHLIGHT"
      ["value"]=>
      int(1)
    }
    [3]=>
    array(2) {
      ["name"]=>
      string(9) ":TEMPLATE"
      ["value"]=>
      int(4)
    }
    [4]=>
    array(2) {
      ["name"]=>
      string(13) ":START_RECORD"
      ["value"]=>
      int(1)
    }
    [5]=>
    array(2) {
      ["name"]=>
      string(11) ":END_RECORD"
      ["value"]=>
      int(4)
    }
  }
}
SOGO

選項